Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to get data for season and year through API? #175

Closed
daffychuy opened this issue Jun 15, 2018 · 1 comment
Closed

Possible to get data for season and year through API? #175

daffychuy opened this issue Jun 15, 2018 · 1 comment

Comments

@daffychuy
Copy link

daffychuy commented Jun 15, 2018

Is it possible to get the season and its year of a particular anime from the API? I see everything but the season.

@wopian
Copy link
Owner

wopian commented Jun 15, 2018

While you can filter by season (filter[season]=spring&filter[season_year]=2018 etc), there is no field specifically for it, as its simply generated from the startDate.

Winter: Dec-Feb
Spring: Mar-May
Summer: Jun-Aug
Autumn: Sep-Nov

Tests for Kitsu's API: https://github.com/hummingbird-me/hummingbird-server/blob/ed15fef20c044b0cd534dbc1ed054b10a5f821eb/spec/models/anime_spec.rb#L65
Kitsu's client implementation: https://github.com/hummingbird-me/hummingbird-client/blob/50e4bc467a575f6cef05a2d8393ff42cf5c51506/app/components/media/media-information.js#L24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants