The Movie Database Support

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 reply (on page 1 of 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

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login