Wsparcie The Movie Database

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 odpowied藕 (strona 1 z 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 鈥he 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

Nie mo偶esz znale藕膰 filmu lub serialu? Zaloguj si臋, aby go utworzy膰.

Globalny

s zaznacz pasek wyszukiwania
p otw贸rz menu profilu
esc Zamknij otwarte okno
? otw贸rz okno skr贸t贸w klawiszowych

On media pages

b go back (or to parent when applicable)
e przejd藕 do strony edycji

On TV season pages

(prawa strza艂ka) przejd藕 do nast臋pnego sezonu
(lewa strza艂ka) przejd藕 do poprzedniego sezonu

On TV episode pages

(prawa strza艂ka) przejd藕 do nast臋pnego odcinka
(lewa strza艂ka) przejd藕 do poprzedniego odcinka

On all image pages

a otw贸rz okno dodawania obrazu

On all edit pages

t open translation selector
ctrl+ s prze艣lij formularz

On discussion pages

n otw贸rz now膮 dyskusj臋
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r odpowiedz na dyskusj臋
l przejd藕 do ostatniej odpowiedzi
ctrl+ enter wy艣lij swoj膮 wiadomo艣膰
(prawa strza艂ka) nast臋pna strona
(lewa strza艂ka) poprzednia strona

Ustawienia

Want to rate or add this item to a list?

Zaloguj