The Movie Database Support

Hello, We are trying to fetch the data from the tv api "https://api.themoviedb.org/3/tv/{tv_id}?api_key=<>&language=en-US", using the giving api we are trying to fetch the data for tv, but the api needs to send tv_id along with request as an important parameter. Our problem is we want to fetch data tv, but we don't know the tv_id. Can you please tell us how can we get all the tv_id to fetch most of the data from tv api.

5 replies (on page 1 of 1)

Jump to last post

There are various ways to get the id of a TV show. The easiest is the Search itself where you pass a query (=title) for the show you want. If you want to search a show depending on some other DB such as IMDb there is the find endpoint.

Can you please share the API from where we can fetch the TV ID, In the developer account I am not able to find any API to get the TV ID. I am looking at Developer API here https://developers.themoviedb.org/3/tv/get-tv-details.

Please let me know API to find out the right way to get the TV ID as I tried to match it IMDB TV ID but it is not working for me.

Looking forward for your response.

Sure.

Search by title:

API reference: https://developers.themoviedb.org/3/search/search-tv-shows

Example: Gives a list of results of TV list objects with the (alternative) title "SomeTitle". The JSON object of every show has the key id which is the required tv_id you need.

https://api.themoviedb.org/3/search/tv?api_key=XXXX&query=SomeTitle

Search by external ID e.g. IMDb:

API reference: https://developers.themoviedb.org/3/find/find-by-id

Example: Returns a list of one or none result depending on the external id (if it was added here). You can also use other services like TVDb.

https://api.themoviedb.org/3/find/t12345?api_key=XXXX&external_source=imdb_id

The API pages provide a schema of the results and example outputs.

Thanks for providing the details, I checked this and it's working fine . Wanted to know the following further queries I have:

  • Is there any way to find all the movies/TV source imdb ID's via API , Fetching ID's via title will take quite long and manual effort, Can you please help me to find out all the ID or if you have any API for that as well, Please share.

Hi @swagle, really, the only way to do that workflow on TMDB would be use the daily ID exports, and then iterate over the ID's with append_to_response calling the external_ids method.

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