Suporte do 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 resposta (na página 1 de 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

Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em páginas de temporadas de séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade