Opening Main Site using Series ID Only

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
Forum rules
This forum is now read-only. Support for TheTVDB.com is now available at https://support.thetvdb.com/
Locked
User avatar
Prometheus
Posts: 13
Joined: Sun Mar 03, 2019 11:43 pm
Contact:

Wed May 20, 2020 5:17 am

It is easy enough to open TheTVDB to a series' page with a known slug, as follows: https://www.thetvdb.com/series/supergirl or https://www.thetvdb.com/series/the-vampire-diaries

However, I was wondering if something similar can be done when only the ID is known? In this example, I want to use the Series ID of Supergirl (295759) an compile a valid URL that can be used to open/redirect TheTVDB to the correct page, which is https://www.thetvdb.com/series/supergirl

The ability to do this is necessary, because some programs save the Series ID in their data files, but not the series slug, and being able to directly open TheTVDB website will be easier than first downloading the relevant JSON data with

Code: Select all

https://api.thetvdb.com/series/295759/filter?keys=id%2Cslug
and then extracting the slug.
Taloth Saldono
Posts: 76
Joined: Sun Apr 17, 2016 12:25 am

Thu May 21, 2020 2:07 am

I use 'https://www.thetvdb.com/dereferrer/series/295759' for that, which redirects to the actual url.

PS: I just have it set up as a search engine in chrome. so I can just type 'tvid {id}{enter}'
User avatar
Prometheus
Posts: 13
Joined: Sun Mar 03, 2019 11:43 pm
Contact:

Thu May 21, 2020 4:44 am

Taloth Saldono wrote:
Thu May 21, 2020 2:07 am
I use 'https://www.thetvdb.com/dereferrer/series/295759' for that, which redirects to the actual url.

PS: I just have it set up as a search engine in chrome. so I can just type 'tvid {id}{enter}'
Thank you, Taloth. Your solution is far more efficient than using the "GET /series/{id}/filter" route.
User avatar
Prometheus
Posts: 13
Joined: Sun Mar 03, 2019 11:43 pm
Contact:

Tue May 26, 2020 8:57 am

I've just learned of another method that works as well:
https://www.thetvdb.com/?tab=series&id=260586
frexuz

Sat Jul 18, 2020 2:09 am

Same question, but I would like to link straight to an episode overview, like so:

https://www.thetvdb.com/series/295759/episodes/5232057

Anyone knows how?
bluesquirrel
Posts: 404
Joined: Thu Jan 19, 2017 5:44 pm
Location: Australia

Sat Jul 18, 2020 3:23 pm

It would be nice if the IMDB method was implemented, where you can type the ID number directly into the search box and taken straight to the entry, whether it is TV Show, episode or movie.
Locked