Axuda de The Movie Database

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

10 respostas (na páxina 1 de 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/

Non podes atopar unha película ou serie? Inicia sesión para creala.

Global

s amosar a barra de procura
p abrir menú do perfil
esc pechar e abrir xanela
? abrir xanela de atallos do teclado

En páxinas de medios

b atrás (ou á principal se aplica)
e ir a editar páxina

En páxinas de tempadas de televisión

(flecha dereita) ir á tempada seguinte
(flecha esquerda) ir á tempada anterior

En páxinas de episodios de televisión

(flecha dereita) ir ao episodio seguinte
(flecha esquerda) ir ao episodio anterior

En todas as páxinas de imaxe

a abrir a xanela de engadir imaxe

En todas as páxinas de edición

t abrir selector de traducións
ctrl+ s enviar formulario

Nas páxinas de debate

n crear un novo debate
w amosar o estado do seguimento
p mudar público/privado
c mudar abrir/pechar
a abrir actividade
r responder no debate
l ir á última resposta
ctrl+ enter eviar a túa mensaxe
(flecha dereita) páxina seguinte
(flecha esquerda) ir á páxina anterior

Configuración

Queres valorar ou engadir o elemento a unha listaxe?

Iniciar sesión