The Movie Database 支持

How can I request for all movies and also movies by genre or year

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

Jump to last post

@slimtee said:
Api request
How can I request for all movies

All 750,000 films? It's not possible.
Discover limit is 500 pages/10,000 items

and also movies by genre or year

By Genre
Use Discover by specifying one or more gender IDs in
&with_genres=
Genre IDs can be obtained here:
https://developer.themoviedb.org/reference/genre-movie-list
Supports "AND/OR Logic" feature
See explanation at the top of the page
https://developer.themoviedb.org/reference/discover-movie

By Year
Use Discover by specifying a year in
&primary_release_year=
Or a period specifying
&primary_release_date.gte
and
&primary_release_date.lte

But can I do filter from the 10,000 saying from 2000 to 2023? Also is there a way to filter for movies which status=released, not talking about release date or year, just once which the status=release, I am getting movies which are yet to be release from discover

@slimtee said:

But can I do filter from the 10,000 saying from 2000 to 2023?

You can filter using the filters I indicated. For example:

&primary_release_date.gte=2000-01-01
and
&primary_release_date.lte=2023-11-21 

Also is there a way to filter for movies which status=released,
not talking about release date or year, just once which the status=release,
I am getting movies which are yet to be release from discover

I do not think so. I don't know.

@slimtee said:

https://api.themoviedb.org/3/discover/movie?api_key=MY_API_KEY&with_genres=28&region=GB&sort_by=primary_release_date.desc&primary_release_date.gte=2000-01-01&primary_release_date.lte=2023-11-21&page=1

will look like this or I have to put something else between them?

Yes, I believe it works correctly.
In fact, considering that you filtered &with_genres=28&region=GB,
perhaps you can increase the period if you wish.
In this Request I only received :

total_pages 169
total_results   3380

Who knows, maybe start in 1990.
Approximately 6,600 more films fit into the Request. :-)

ok thanks much appreciated

can add with_poster_path=true ?

@slimtee said:
can add
with_poster_path=true
?

No. Discover does not have this filter.
Or at least I don't know.

In the past, about 8 years ago, there was a page that listed films without posters.
As a suggestion to users to add poster.
So there must be some internal filter for this, that is, films without posters.
But it was never reported in the Documentation.

Hello there, the Api as really been helpful and I am also done with first version if my site. When I tried to apply for the api key I read about it being free and giving credits to tmdb on the site, my question is how do I do that, are there like samples I can copy fro, I mean from other website or something. Thanks

@slimtee said:
Hello there, the Api as really been helpful and I am also done with first version if my site.
When I tried to apply for the api key I read about it being free and giving credits to tmdb on the site,
my question is how do I do that,

We have this page.
https://www.themoviedb.org/about/logos-attribution
If I'm not mistaken, Travis Bell, the administrator, asks that it be noted that the images and data are obtained from TMDb.
If your APP/Site has an "About" page, you can place the phrase "Images and Data" or "powered by" or "supplied by" and the TMDb logo on the bottom.
Or in the footer of the APP/Site home page.

are there like samples I can copy fro, I mean from other website or something.
Thanks

In the past, we had a page of APPs/Sites that were used.
But the number of APPs/Sites grew so much that it became impossible to maintain.
For examples, I suggest searching the APP stores searching for TMDb or Movie or something similar.
An example: https://letterboxd.com/about/film-data/

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

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区