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 пошаљи поруку
(стрелица надесно) следећа страница
(лева стрелица) претходна страница

Подешавања

Желите ли да оцените или додате ову ставку у листу?

Пријави се