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.
Return series URI in GET /series/id
Re: Return series URI in GET /series/id
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.
Re: Return series URI in GET /series/id
Coco wrote:in the event the script failed
Well.
https://www.thetvdb.com/series/341985
https://www.thetvdb.com/series/343363
https://www.thetvdb.com/series/344076
https://www.thetvdb.com/series/340011
https://www.thetvdb.com/series/343237
https://www.thetvdb.com/series/344221
https://www.thetvdb.com/series/342349
https://www.thetvdb.com/series/341432
https://www.thetvdb.com/series/341425
https://www.thetvdb.com/series/344220
https://www.thetvdb.com/series/339277
Also these ones applied an unofficial name:
https://www.thetvdb.com/series/fairy-tale-girls
https://www.thetvdb.com/series/sword-user-shrine-maiden
https://www.thetvdb.com/series/love-is- ... r-the-rain
Re: Return series URI in GET /series/id
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!
-
- 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
That's actually not a bad idea.
Strangers are just the friends we haven't met yet.
Re: Return series URI in GET /series/id
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
It would be good when searching for a show to have to option to open up the webpage directly
tks
Re: Return series URI in GET /series/id
It's apparently nearly released (currently in dev): viewtopic.php?f=17&t=49405