„The Movie Database“ palaikymas

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 atsakė (on page 1 iš 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

Negalite rasti filmo ar TV laidos? Prisijunkite, kad sukurtumėte.

Bendras

s susitelkti į paieškos juostą
p profilio meniu
esc uždarykite atidarytą langą
? spartieji klavišai

Medijų puslapiuose

b grįžkite atgal (arba tėvams leidus)
e į redagavimo puslapį

TV sezono puslapiuose

(dešinė rodyklė) sekantis sezonas
(kairė rodyklė) ankstesnis sezonas

TV epizodo puslapiuose

(dešinė rodyklė) sekantis epizodas
(kairė rodyklė) ankstesnis epizodas

Visuose atvaizdžio puslapiuose

a atverti atvaizdžio pridėjimo langą

Visuose redagavimo puslapiuose

t vertimo parinktys
ctrl+ s pateikti formą

Diskusijų puslapiuose

n sukurti naują diskusiją
w perjungti peržiūros būseną
p perjungti viešasis / privatus
c perjungti uždaryti / atidaryti
a peržiūrėti aktyvumą
r atsakyti į pokalbį
l į paskutinį atsakymą
ctrl+ enter pateikti pranešimą
(dešinė rodyklė) sekantis puslapis
(kairė rodyklė) ankstesnis puslapis

Nustatymai

Norite įvertinti ar įtraukti šį elementą į sąrašą?

Prisijungti