Forum - View topic
api descriptions




Anime News Network Forum Index -> Site-related -> Bugs & Technical Questions
View previous topic :: View next topic  
Author Message
JPat



Joined: 18 Jul 2018
Posts: 7
PostPosted: Sun Aug 05, 2018 9:38 pm Reply with quote
Hello,

Is there any document that explains all possible values for an api response? Like <anime> the full listing of attributes, attribute values, children nodes (with their explanations). This would be much better than the trial and error that I am currently doing with the api.

Thanks
Back to top
View user's profile Send private message
JPat



Joined: 18 Jul 2018
Posts: 7
PostPosted: Sun Aug 05, 2018 9:42 pm Reply with quote
like what does 'precision="TV 1/1968" ' exactly mean?
Back to top
View user's profile Send private message
Dan42
Chief Encyclopedist


Joined: 02 Jan 2002
Posts: 3588
Location: Montreal
PostPosted: Tue Aug 07, 2018 9:58 am Reply with quote
Sorry, we don't have such a document. But the example given on the api page has every datatype I believe.

The "precision" is the part in parentheses after the name that you can see on the anime page.
Back to top
View user's profile Send private message Visit poster's website AIM Address My Anime My Manga
JPat



Joined: 18 Jul 2018
Posts: 7
PostPosted: Fri Aug 10, 2018 9:30 pm Reply with quote
is there a reliable way to find out what season an anime is from the api?
Back to top
View user's profile Send private message
Tempest
ANN Publisher & CEO


Joined: 29 Dec 2001
Posts: 9478
Location: Do not message me for support.
PostPosted: Wed Aug 15, 2018 8:19 am Reply with quote
JPat wrote:
is there a reliable way to find out what season an anime is from the api?


What do you mean "what season?" Do you means "Season 1," "season 2," or do you mean "summer 2018" ?
Back to top
View user's profile Send private message Send e-mail My Anime My Manga
JPat



Joined: 18 Jul 2018
Posts: 7
PostPosted: Sat Aug 18, 2018 11:10 pm Reply with quote
Thanks for the response. I am looking for something like season 1, 2, ..., 6. However, if this is not possible just let me know how the seasons are given according to the api. Thanks.
Back to top
View user's profile Send private message
hugonun



Joined: 15 Oct 2018
Posts: 15
Location: Luxembourg
PostPosted: Mon Oct 15, 2018 2:40 am Reply with quote
Hey JPat,

The API doesn't include the season number, but it tells you the id of the next/previous season inside the <related-prev> and <related-next> tag as an attribute.

Here is an example: cdn.animenewsnetwork.com/encyclopedia/api.xml?anime=15804

You could use it to find the season number, but I can't tell if it's reliable.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    Anime News Network Forum Index -> Site-related -> Bugs & Technical Questions All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group