I coded a basic movie collection management system in python, for my own use. It's based on the tmdb API but mostly on cinemagoer (which fetches data from the imdb). Everything in my database is stored using imdb-ids (both for persons and for movies).
One of the most important features in my little software is the ability to find a person, and list all movies by that person in a specific capacity ("director", "screenwriter", "cast"). The ability to do that has been broken in cinemagoer for a few months, so I was thinking I was going to rewrite that using the TMDB api. I can neatly convert the imdb-id nm.... of a person to the tmdb-id of that person, and retrieve all movies by that person from tmdb, with his/her capacity, that's nice. But the trouble is that the list comes with only the tmdb-ids of the movies, and I have to make a separate call to the tmdb-api to convert these tmdb-ids to imdb-ids , which can take a little too long for people with long filmographies.
Do you know if there's a way to request the filmography of a person in tmdb and receive a list directly with the imdb-ids of the movies.
Thank you
(And thank you for providing us with a stable reliable API !!!)
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Waffiq
on April 1, 2025 at 9:51 AM
The TMDB API provides a convenient
/find
endpoint that allows you to search for:All you need is the IMDb ID and your API key.
Endpoint
Examples
1. Finding a Movie
Request:
Response:
2. Finding a TV Series
Request:
Response:
3. Finding a Person
Request:
Response:
Additional Resources
For more information, check out the original discussion: TMDB Talk
Full API documentation: TMDB Developer Reference
Reply by grocovid
on April 1, 2025 at 2:05 PM
Unless I'm mistaken, this does not answer my question, which is basically : how do I obtain the imdb-ids (not tmdb-ids) of all N movies by Orson Welles, without having to resort to at least N API calls?
In my local database (simplifying it a little bit), I have a table containing one row per video file in my collection, with a field containing the path and another field containing the imdb-id. I have a functionality (now broken due to cinemagoer not being able to parse imdb data) that lets you query for a director, list all movies by that director with a green flag if I have the movie in my collection and a red flag if I don't. But I only have the imdb-id of my movies, not the tmdb-id. So, if I want to replicate this functionality, I'll have to call the API for each movie by that director (then I can store the tmdb-id alongside the imdb-id in my database, and I won't need to do it the next time, ok, but my collection is... let's say on the heavy side and calling the API for every single movie in my collection would be somewhat lengthy).
Reply by ticao2 š§š· pt-BR
on April 1, 2025 at 7:18 PM
3 days ago I looked into your issue.
I didn't find a solution.
I don't think there is an API request with this data together.
The response for "Combined Credits" doesn't have an IMDB ID.
I checked "Discover Movie" using the filter "with_cast" and then "with_crew", but the response is the same, without an IMDB ID.
My collection only has 3,000 movies.
All with NFO generated by MediaElch.
The program, MediaElch, has a good data export feature.
It would be a solution to generate a list with both IDs.