Συντομεύσεις πληκτρολογίου
Προχωρημένη αναζήτηση
what query we need to give in url ,to get the result of movie we search.
@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 .
Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.
Σύνδεση
Εγγραφή
Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;
Δεν είσαι μέλος;
Εγγραφείτε και γίνετε μέλος της κοινότητας
Απάντηση από τον/την ticao2 🇧🇷 pt-BR
στις 22 Οκτώβριος 2021 στις 09:34 ΕΊΜΑΙ
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
Απάντηση από τον/την SoundaryaSM
στις 22 Οκτώβριος 2021 στις 09:57 ΕΊΜΑΙ
Thank u so much .