Return series URI in GET /series/id

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
blodan
Posts: 19
Joined: Wed May 08, 2013 10:54 am

Return series URI in GET /series/id

Postby blodan » Sun May 20, 2018 2:45 pm

Currently there is no way to get the proper URI for a series, some series are using slugs while some series are using the id in the URI, and there is nothing in the series response that says what should be used.

Here are two examples of different urls:
https://www.thetvdb.com/series/ncis
https://www.thetvdb.com/series/337842

So if the api at GET /series/id could include the param "uri" with the correct uri, that would be great, or even the param "url" with the full thetvdb.com url.

Coco
Site Admin
Posts: 2671
Joined: Tue Mar 13, 2007 10:16 pm
Location: Canada

Re: Return series URI in GET /series/id

Postby Coco » Mon May 21, 2018 7:46 pm

All series use slugs. The slugs were automatically assigned and in the event the script failed to apply an obvious slug the series ID was set as a temporary slug. If you want you can also use the ID by using https://www.thetvdb.com/dereferrer/series/SERIESID although that may not be avaliable forever. Once all slugs are assigned that may become deprecated.
Please don't PM me. Post in the forums instead unless there is a very good reason for a PM or I won't respond.


sharkykh
Posts: 9
Joined: Wed Apr 19, 2017 10:53 pm

Re: Return series URI in GET /series/id

Postby sharkykh » Mon Jun 04, 2018 5:25 pm

Coco wrote:If you want you can also use the ID by using https://www.thetvdb.com/dereferrer/series/SERIESID although that may not be avaliable forever. Once all slugs are assigned that may become deprecated.


If I may ask, what about adding the series slug to the (data returned by the) /search/series and /series/{id} API endpoints?
This is a better option long term, in my opinion.
That way app developers can plan ahead and use the slugs already being used on the site.
Thanks in advance!

DarklightIndigo
Just zis guy, you know?
Posts: 7657
Joined: Sun Apr 27, 2014 9:16 am
Location: San Francisco
Contact:

Re: Return series URI in GET /series/id

Postby DarklightIndigo » Tue Jun 05, 2018 2:59 pm

That's actually not a bad idea.
Strangers are just the friends we haven't met yet.

k_zeon
Posts: 16
Joined: Mon Nov 23, 2015 1:17 pm

Re: Return series URI in GET /series/id

Postby k_zeon » Sat Jun 16, 2018 1:23 pm

Hi. Just wondered if this will be implemented soon. Or if there is a planned date.
It would be good when searching for a show to have to option to open up the webpage directly
tks

sharkykh
Posts: 9
Joined: Wed Apr 19, 2017 10:53 pm

Re: Return series URI in GET /series/id

Postby sharkykh » Sat Jun 16, 2018 4:34 pm

https://gitlab.thetvdb.com/site/thetvdb_api/issues/40
We'll just have to patiently wait and see :)

wayned42
Posts: 306
Joined: Thu Jul 18, 2013 5:18 pm

Re: Return series URI in GET /series/id

Postby wayned42 » Tue Jul 17, 2018 5:47 pm

It's apparently nearly released (currently in dev): viewtopic.php?f=17&t=49405