I'm fetching the latest popular movies using the https://api.themoviedb.org/3/movie/popular?language=en-US&page=1
API endpoint.
However, the results object in the response doesn't include the IMDB ID.
I understand that I can retrieve the imdb id by making the call to the /find
endpoint,
but in my use case it would be an overhead to make an additional call.
Is there any way to efficiently get the IMDB ID for each movie in the results object? TIA.
cc @TravisBell
Negalite rasti filmo ar TV laidos? Prisijunkite, kad sukurtumėte.
Norite įvertinti ar įtraukti šį elementą į sąrašą?
Nesate narys?
Atsakė ticao2 🇧🇷 pt-BR
2024 rugpjūčio 9, 12:14 PM
Correct. The answer does not provide an External ID, the IMDB ID.
No. It's exactly the opposite.
Use Find with an External ID to find a movie, series, etc... here on TMDb.
For example, with IMDB ID tt0054331
To obtain the IMDB ID of an item, simply make an API Request for the item's details.
For example the movie Spartacus, TMDb ID 967
The response will contain the following data: imdb_id "tt0054331"
The only way I know is the one I provided above.
There is no way to get all IMDB IDs from a Popular API Request.
Atsakė tim_cook
2024 rugpjūčio 11, 12:29 PM
Ok, got it. Thanks for the clarification.
I'm facing issues when hitting the
find
endpoint. I'm getting:I tried using different IDs but still got the same response. ENDPOINT:
https://api.themoviedb.org/3/find/<IMDB_ID>?api_key=API_KEY&append_to=externals_ids
I'm curious if the
append_to
query param is now replaced withexternal_source
?Atsakė ticao2 🇧🇷 pt-BR
2024 rugpjūčio 12, 8:18 AM
Find does not accept Append To Response.
But you need to inform which system the ID is from using &external_source=imdb
Compare your Request with my example:
I suggest you read the documentation carefully.
https://developer.themoviedb.org/reference/find-by-id
It was not replaced.
Using Find you need &external_source= informing which system the ID is from. In this case imdb.
Only using Detail (Movie, TV or Person) you can use &append_to_response=
See here https://developer.themoviedb.org/docs/append-to-response