TVmaze user API - I'm lost

GACHAPO wrote 7 days ago:

Hello,

When I click to your API Documentation I end up at TVmaze user API, where I click "Authorize" and log in with my credentials. I then go down to "followed network" for which I have followed 6 and expand GET/user/follows/networks, choose "networks" from the value drop down menu and click "Try it out!". The only response I get is "401" with "Invalid username or API key" in the response body. Please advise?


david wrote 7 days ago:

Did you make sure to use your API key and not your regular password?

GACHAPO wrote 7 days ago:

david wrote:
Did you make sure to use your API key and not your regular password?

Thanks David. I did use regular password. When I substitute for API key I get "403" "name": "Forbidden", "message": "TVmaze premium required". I thought the trial version was premium?


david wrote 7 days ago:

Yeah, if you get the free TVmaze Premium trial, you can use the API during that time. Did you mean to apply for that? Because if so, I think something in the process went wrong.

GACHAPO wrote 7 days ago:

david wrote:
Yeah, if you get the free TVmaze Premium trial, you can use the API during that time. Did you mean to apply for that? Because if so, I think something in the process went wrong.

I did, apologies how do I get the trial underway please David?


david wrote 7 days ago:

Hrm, what did you do so far? Did you click on one of the offered links and complete the whole process?

GACHAPO wrote 7 days ago:

david wrote:
Hrm, what did you do so far? Did you click on one of the offered links and complete the whole process?

Hi David, I just registered and received an API key. I have now taken up Bronze Premium. How do I merge the registered account?

GACHAPO wrote 7 days ago:

Hi David,

Working now.

Question - is it possible to get all the scheduled programs for a single followed network for a particular day via URL?


david wrote 6 days ago:

Good!

No, this isn't currently possible. It would be pretty simple to fetch the country's complete schedule though, then filter locally based on the followed networks that you retrieved from the user API.

GACHAPO wrote 6 days ago:

david wrote:
Good!

No, this isn't currently possible. It would be pretty simple to fetch the country's complete schedule though, then filter locally based on the followed networks that you retrieved from the user API.

Ok - how do fetch the complete schedule please?


Jan wrote 6 days ago:

GACHAPO wrote:
Ok - how do fetch the complete schedule please?

In case you're talking about your personal schedule. There is currently no endpoint for it. However you definitely could build something that does that using the current existing endpoints.

We've just added the 'personal schedule endpoint' as a pending feature to see if there is enough interest for it. https://www.tvmaze.com/threads/3755/user-schedule-api-endpoint

cheers,

Jan

GACHAPO wrote 6 days ago:

Jan wrote:
In case you're talking about your personal schedule. There is currently no endpoint for it. However you definitely could build something that does that using the current existing endpoints.

We've just added the 'personal schedule endpoint' as a pending feature to see if there is enough interest for it. https://www.tvmaze.com/threads/3755/user-schedule-api-endpoint

cheers,

Jan

Thanks Jan,

I have already tried this and I do not see how it can get what I want. If I follow BBC1, BBC2, ITV1 and Channel 4 and I want to get a full listing for 15th March 2019, there is nothing listed on the API's you have linked that allows this to my knowledge. The best I can do is GET/user/follows/networks which will simply give me a list of the channels I have followed above. If I use the public (free) API I seemingly can get a full list of schedules, but when you drill down you find that there are huge sections of schedules missing. Can you let me know if it is possible or not to get a FULL schedule of all channels I follow as listed on your wedsite and followed on a given day - if so how?

Thank you in advance

Glenn

GACHAPO wrote 4 days ago:

Please advise?


Jan wrote 4 days ago:

GACHAPO wrote:
Thanks Jan,

I have already tried this and I do not see how it can get what I want. If I follow BBC1, BBC2, ITV1 and Channel 4 and I want to get a full listing for 15th March 2019, there is nothing listed on the API's you have linked that allows this to my knowledge. The best I can do is GET/user/follows/networks which will simply give me a list of the channels I have followed above. If I use the public (free) API I seemingly can get a full list of schedules, but when you drill down you find that there are huge sections of schedules missing. Can you let me know if it is possible or not to get a FULL schedule of all channels I follow as listed on your wedsite and followed on a given day - if so how?

Thank you in advance

Glenn

Hi Gachapo,

The following endpoints should be enough to get you started for shows about to air.

http://api.tvmaze.com/schedule/full and https://api.tvmaze.com/v1/user/follows/networks + https://api.tvmaze.com/v1/user/follows/webchannels should be enough to get you started.

If you want to look for specific dates you can use the schedule endpoint. Example:http://api.tvmaze.com/schedule?country=US&date=2019-03-15

Could you clarify & provide some examples what you mean by sections of schedules missing?

eherberg wrote 4 days ago:

Jan wrote:
Could you clarify & provide some examples what you mean by sections of schedules missing?

I think he means that he's expecting the result to be more like a 'TV Guide' listing. Currently there are (for any network of any country) blocks of time where no entry exists. The OP may not realize the purpose of the site -- confusing it for a TV Listings site.