Suport de The Movie Database

what query we need to give in url ,to get the result of movie we search.

2 resposta (a les p脿gines 1 de 1)

Jump to last post

@SoundaryaSM said:
API Related
what query we need to give in url ,to get the result of movie we search.

In both cases there will be 2 API requests.

The first request, using the name of the artist or the title of the film,
must be made using get / search / person or get / search / movie.

https://developers.themoviedb.org/3/search/search-people
Example
https://api.themoviedb.org/3/search/person?api_key=THE_KEY&language=en-US&query=Tom+Cruise

https://developers.themoviedb.org/3/search/search-movies
Example
https://api.themoviedb.org/3/search/movie?api_key=THE_KEY&language=en-US&query=Fight+Club
This way you will obtain, among other data, the Person ID or the Movie ID.

Obtaining the ID you will make the second Request to obtain the details of the ID.
Tom Cruise: ID 500
Fight Club: ID 550

For People there are a few ways:
get / person / {person_id} / movie_credits
get / person / {person_id} / tv_credits
get / person / {person_id} / combined_credits
https://developers.themoviedb.org/3/people/get-person-combined-credits

Or basic search with the append_to_response feature
get / person / {person_id}
https://developers.themoviedb.org/3/people/get-person-details
Example
https://api.themoviedb.org/3/person/500?api_key=THE_KEY&language=en-US&append_to_response=combined_credits

For Movies it is similar.
get / movie / {movie_id} / credits
https://developers.themoviedb.org/3/movies/get-movie-credits

Or basic search with the append_to_response feature
get / movie / {movie_id}
https://developers.themoviedb.org/3/movies/get-movie-details
Example
https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=en-US&append_to_response=credits

Thank u so much .

No trobeu una pel路l铆cula o una s猫rie? Inicieu la sessi贸 per a crear-la.

Global

s centra la barra de cerca
p obre el men煤 del perfil
esc tanca una finestra oberta
? obre la finestra de dreceres de teclat

A les p脿gines de materials

b torna enrere (o la superior quan sigui aplicable)
e ves a la p脿gina d'edici贸

A les p脿gines de temporades

(fletxa dreta) ves a la temporada seg眉ent
(fletxa esquerra) ves a la temporada anterior

A les p脿gines d'episodis

(fletxa dreta) ves a l'episodi seg眉ent
(fletxa esquerra) ves a l'episodi anterior

A totes les p脿gines d'imatges

a obre la finestra d'afegir imatges

A totes les p脿gines d'edici贸

t obre el selector de traducci贸
ctrl+ s envia el formulari

A les p脿gines de debat

n crea un debat nou
w canvia l'estat de visualitzaci贸
p canvia p煤blic/privat
c tanca o obre
a obre activitat
r resposta al debat
l ves a la darrera resposta
ctrl+ enter envieu el vostre missatge
(fletxa dreta) p脿gina seg眉ent
(fletxa esquerra) p脿gina anterior

Configuracions

Desitgeu valorar o afegir aquest element a una llista?

Inicieu la sessi贸