Try 30 days of free premium.

Anime countdown website

Ashukr5876 wrote a year ago: 1

Hi,

I want to create a anime countdown website that will contain only next-releasing episodes of only anime category.

How can i fetch the details(episode releasing date) of anime episode releasing today, tomorrow, this week, and next week?


JuanArango wrote a year ago: 1

@Ashukr5876 wrote:
Hi,

I want to create a anime countdown website that will contain only next-releasing episodes of only anime category.

How can i fetch the details(episode releasing date) of anime episode releasing today, tomorrow, this week, and next week?

I think @gazza911 is able to answer this.


gazza911 wrote a year ago: 1

You'll have to do some of the filtering locally after you retrieve the data as the endpoints have limited filtering so that we can maintain performance with caches.

You should use the schedule with country and date filter:

https://api.tvmaze.com/schedule?country=JP&date=2023-10-30

You'd want to call that once for each day you're requesting

This returns an array, and you'd filter it by the genres array in each of those episodes.

e.g. episodes.filter(ep => { return ep.genres.includes("Anime"); });

Ashukr5876 wrote a year ago: 1

Hi,

I have confusion regarding airdate, airtime and airstamp.

To create a countdown website of next episode of only anime category, which should i use airdate, airtime or airstamp?

The countdown will contain no. of days,hours,minutes and seconds left for the next episode to come.

 


gazza911 wrote a year ago: 2

@Ashukr5876 wrote:
Hi,

I have confusion regarding airdate, airtime and airstamp.

To create a countdown website of next episode of only anime category, which should i use airdate, airtime or airstamp?

The countdown will contain no. of days,hours,minutes and seconds left for the next episode to come.

Airdate + Airtime are in the network/web channel's timezone.

Airstamp is in UTC.

If you used airdate + airtime, you would have to explicitly tell your date library that it's in the Japanese timezone.

The "+00:00" of airstamp signifies that it's in UTC time.

Try 30 days of free premium.