The Movie Database 支持

Hi

With thiis Request i get a total page count that is over 1000. http://api.themoviedb.org/3/discover/movie?with_genres=&language=de&vote_average.gte=1&vote_average.lte=10&with_cast=&api_key=

If i set the page to a value over 1000 i get this error.
Invalid page: Pages start at 1 and max at 1000. They are expected to be an integer.

Is there anything wrong with my requests or is this an error in the API?

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

Jump to last post

Hi GehirnschneckenBob,

We don't support paging past page 1000. All of our results are limited to the first 20,000 items.

Cheers.

And how it is possible to retrieve the results past the 20.000 Items ?

Hi GehirnschneckenBob,

We can't fathom a useful reason anyone would actually page through 1000 pages. We've always told people who want more data like this that they should probably bring all of the data in house and build out the schema and DB internally for their own needs.

I dont want to page through 1000 pages I just want to present a random movie to the user. What do you mean with "bring all the data inhouse" ? Did you mean to downlaod all movies on my own server and build a webservice at my own ?

I just want to present a random movie to the user.

I'd go about this a different way, grab the id from the /movie/latest method and then randomize a number between 1 and the result. You will of course have to deal with deleted ids, but it's easy enough to loop through trying the id until you get a 200 status back (as opposed to a deleted movie which will return a 404).

Alternative, if you need the filters you have above in your discover filter, you'll just have to randomize a page between 1 and 1000, and then randomize which item you show from the 20 results on that page.

Did you mean to downlaod all movies on my own server and build a webservice at my own ?

Yes, that's what I meant.

Actualy i randomize a page between 1 and 1000 and this works. Thanks for the fast answers.

I Dont think you mean that i can download all the data from your Webservice and update this every month, or ?

Actualy i randomize a page between 1 and 1000 and this works

Perfect.

Thanks for the fast answers

You're welcome.

I Dont think you mean that i can download all the data from your Webservice and update this every month, or ?

We don't provide a dump of any sort but you are free to cache the data locally.

Cheers.

Can't we have a list of all movies present. It says in the api that you have around 2,50,000 movies.

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

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区