Sprijin Bază de date filme (The Movie Database)

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

10 răspunsuri (pe pagina 1 din 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/

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Globale

s focalizează bara de căutare
p deschide meniul profilului
esc închide o fereastră deschisă
? deschide fereastra cu scurtături de la tastatură

Pe paginile media

b mergi înapoi (sau la părinte atunci când este cazul)
e mergi la pagina de editare

Pe paginile sezoanelor filmelor seriale

(săgeată dreapta) mergi la sezonul următor
(săgeată stânga) mergi la sezonul precedent

Pe paginile episoadelor filmelor seriale

(săgeată dreapta) mergi la episodul următor
(săgeată stânga) mergi la episodul precedent

Pe toate paginile de imagini

a deschide fereastra pentru adăugarea de imagini

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimite formularul

Pe paginile de discuții

n crează o discuție nouă
w comută starea de vizionare
p comută publică/privată
c comută închisă/deschisă
a deschide activitatea
r răspunde la discuție
l mergi la ultimul răspuns
ctrl+ enter trimite mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina precedentă

Setări

Doriți să evaluați sau să adăugați acest articol într-o listă?

Autentificare