Sample
https://www.thetvdb.com/series/fairy-gone
Code: Select all
curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer *****' 'https://api.thetvdb.com/series/359645'
Code: Select all
{
"Error": "ID: 359645 not found"
}
Code: Select all
curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer *****' 'https://api.thetvdb.com/series/359645'
Code: Select all
{
"Error": "ID: 359645 not found"
}
Normally you should be able to set the 'Accept' header with the correct version.imthedoctor12 wrote: ↑Sat Nov 16, 2019 7:12 pmI'm still unclear how to actually specify the API version using the accept header. Can anyone help me understand?
Code: Select all
$headers['Accept'] = 'application/vnd.thetvdb.v3.0.0';
The V1 API (via the URL) appears to be back up and running correctly for me.1) As people already noted, the V1 APIs have trouble. Searching series via the URL (which didn't even need an API key previously) appears to work, however some fields are no longer returned that way (like 'Network'), at least for the tests I ran. Trying to grab a specific series / episode dump .zipped XML file seems to no longer work at all. This is ok in my app because moving over to REST / JSON is something I realistically had to do anyway, so I did so, but IMHO it should all work or none should work.
The /series/{id} route also appears to be returning the correct results again. I have not tested this extensively but all requests I had been struggling with previously are now returning successfully.2) As people already noted the /series/<id> route appears to no longer work, and errors with 401 Not Found. A specific show that worked yesterday no longer works today, so it appears to be a not a static list of shows that are a problem. As a workaround, I'm now searching via name and returning the specific series info node that matches the ID I need. Hopefully, this will be addressed at some point because that's clunky.
The tokens are valid for 24 hours.This is mentioned in the introduction section on Authentication on the Swagger page.5) Random: can someone provide an idea or guidance on how long the tokens last for? Is that provided anywhere?
Code: Select all
{
"data": {
"id": 372402,
"seriesId": "",
"seriesName": null,
"aliases": [],
"season": "1",
"poster": "",
"banner": "",
"fanart": "/series/372402/backgrounds/62000563.jpg",
"status": "Continuing",
"firstAired": "2019-11-17",
"network": "SVT",
"networkId": "413",
"runtime": "30",
"language": "en",
"genre": [
"Crime",
"Documentary"
],
"overview": null,
"lastUpdated": 1574075558,
"airsDayOfWeek": "Sunday",
"airsTime": "10:00 PM",
"rating": null,
"imdbId": "",
"zap2itId": "",
"added": "2019-11-18 11:11:32",
"addedBy": 67298,
"siteRating": 0,
"siteRatingCount": 0,
"slug": "militarligan"
}
}
I found this to be the case also. If you figure out how to reach to older endpoints, let me know please.imthedoctor12 wrote: ↑Sun Nov 17, 2019 9:38 amThank you codegrabber. I was afraid I was doing something wrong. Now I'm more concerned that it's not working correctly on the API side. When I send Accept:application/vnd.thetvdb.v2.2.0 in postman, the response header still indicates it's coming from 3.0.0, which still seems to be having issues finding data.
Code: Select all
https://api.thetvdb.com/series/355730/images/query?keyType=poster
Code: Select all
{
"Error": "No results for your query"
}