The Movie Database Support Forum

I was just wondering if there was an easy way to find the tmdb id of a movie, using the api. I want to pass in the name of my movie and then get the tmdb id of the movie, not sure if there is a functionality like that in the api. Or is the only way to get the tmdb id of a movie is by using an external identifier, eg. imdb id?

Thanks

1 Antwort (Seite 1 von 1)

Jump to last post

@messi1234 said:
Finding TMDB Movie ID
I was just wondering if there was an easy way to find the tmdb id of a movie, using the api.
I want to pass in the name of my movie and then get the tmdb id of the movie, not sure if there is a functionality like that in the api.
Or is the only way to get the tmdb id of a movie is by using an external identifier, eg. imdb id?

Thanks

Well, you can search for your movie title using Search.
Filtering by years will give you a more accurate answer.
Once you find the movie, there will be the TMDb ID of your movie.
For example:
Barry Lyndon (1975)
https://www.themoviedb.org/movie/3175-barry-lyndon

https://api.themoviedb.org/3/search/movie?api_key=THE_KEY&query=Barry+Lyndon&include_adult=false&language=en-US&primary_release_year=1975&page=1

In the response we have the TMDb ID 3175

page    1
results 
0   
adult   false
backdrop_path   "/okdg55jhsr9k1F2lxsZoQncrLZL.jpg"
genre_ids   
0   18
1   10749
2   10752
id  3175
original_language   "en"
original_title  "Barry Lyndon"
overview    "An Irish rogue uses his …the noble Barry Lyndon."
popularity  28.991
poster_path "/dOJtBSyI30wWc08UmyEKLsu4Rfk.jpg"
release_date    "1975-12-18"
title   "Barry Lyndon"
video   false
vote_average    8.004
vote_count  2635
total_pages 1
total_results   1

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden