The Movie Database 支持

I need to get a few things cleared up in regards to tokens and api access. I am working on a movie application as a side project that is meant to provide not only movie information but act as a kind of social hub for this kind of content to help build upon what the awesome folks here at TMDB offer. Atm i am not looking to get people logged in to do ratings and whatnot so am wondering about the rate limiting on the regular tokens. As it stands just getting into the main menu of the app should fire off 7 requests that represent the home menu offerings of the various trending details as well as shows and theater movies. and it grows from there as soon as u start pulling information for individual movies/shows/people when u want to see specific information on each. while this is great as a single user as the 40 requests a second is just not even something that is feasible . . . all it takes is 7 to 10 people using the app to start hitting the limits, and i would love to start spreading it around to my family to get feedback on their thoughts which even that would cause rate limiting to happen per my calculations (making the assumption everyone opens and interacts quickly at the same time). So my question is this . . . does the session information as a guest act as an individual user that also has those request limits or is it tied back to the original caller? Like does each user having their own session have their own 40 requests a second limit or is it still shared across all the sessions since my key would have generated it? and also am i thinking about this wrong to begin with . . . are guest sessions strictly for rating and whatnot or is it also to consume the api as a whole?

2 回复(第 1 页,共 1 页)

Jump to last post

ok so after reading a bit more like i should have done in the start guest sessions are purely an account related thing. the api key is indeed the sole access to consume the rest of the api not related to account management. So then the question still remains about the rate limiting per user. is the rate limiting per user or just over the api key as a whole? i saw somewhere someone mention its per IP address so wanted to make sure i get this correct if i need to build out a backend first before continuing the main app as i do plan on a rudimentary backend that can cache requests as i want to keep something in sync with the trending scores each day to be able to have a general measurement to display but not there yet.

man i am terrible at reading first before asking questions. ok so rate limiting is per ip address and not token specific. there was another topic where it was mentioned to use the XFF header in order to pass the ip of the client to the server. It was never expanded upon if this was indeed supported as admin was going to check but never gave a final confirmation on that. so . . . in using a backend can i pass the XFF header and that should keep the backend from hitting limits on individual user requests that would be proxied through it (obviously request caching would also help with this) . . . or does the api not accept the header and only respond to the backend as a single entity and therefore have the limit to it instead of the proxied user

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区