# AniList API

> AniList returns upcoming anime episodes and next-episode details, available as a workflow and API.

Get airing schedule returns upcoming episodes ordered by air time and uses a city or time zone, days ahead, and maximum results as inputs. Get next episode returns the next scheduled episode for an anime and accepts an anime name plus an optional city or time zone; it defaults to UTC.

- Page: https://fous.com/workflows/anilist
- Handle: `@anilist`
- Category: [Entertainment](https://fous.com/workflows/category/entertainment)
- Source website: https://anilist.co
- Last verified: Sep 29, 2026
- Fous is not affiliated with AniList.

## Methods

### Get airing schedule

Operation `get_airing_schedule`, version 1. 1 credit per call.

Get upcoming AniList anime episodes, ordered by air time, with local air times and available streaming links. City names use the best matching location; streaming links may be unavailable.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `time_zone` | string | no | `"America/New_York"` | City or time zone name for air times, for example New York or America/New_York. |
| `days_ahead` | integer | no | `2` | Number of days ahead to include, for example 7. |
| `max_results` | integer | no | `10` | Maximum number of upcoming episodes to return, for example 100. |

**Input schema**

```json
{
  "type": "object",
  "properties": {
    "time_zone": {
      "type": "string",
      "default": "UTC",
      "description": "City or time zone name for air times, for example New York or America/New_York.",
      "examples": [
        "America/New_York",
        "New York",
        "UTC"
      ]
    },
    "days_ahead": {
      "type": "integer",
      "default": 7,
      "maximum": 14,
      "minimum": 1,
      "description": "Number of days ahead to include, for example 7.",
      "examples": [
        2,
        7,
        14
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 100,
      "maximum": 500,
      "minimum": 1,
      "description": "Maximum number of upcoming episodes to return, for example 100.",
      "x-fous-developer": true,
      "examples": [
        10,
        100,
        70
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "time_zone": "America/New_York",
      "days_ahead": 2,
      "max_results": 10
    },
    {
      "time_zone": "New York",
      "days_ahead": 7,
      "max_results": 100
    },
    {
      "time_zone": "UTC",
      "days_ahead": 14,
      "max_results": 70
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `airing_episodes` | array |  |  |
| `airing_episodes[].format` | string or null | `"TV"` | Anime format such as TV or ONA. |
| `airing_episodes[].air_time` | string | `"2026-09-29T08:30:00-04:00"` | Scheduled episode time in the chosen time zone, with UTC offset. |
| `airing_episodes[].anilist_id` | integer | `187260` |  |
| `airing_episodes[].anime_title` | string | `"I Want to Love You Till Your Dying Day"` | English anime title, or romanized Japanese title. |
| `airing_episodes[].anilist_link` | string | `"https://anilist.co/anime/187260"` |  |
| `airing_episodes[].episode_number` | integer | `13` |  |
| `airing_episodes[].total_episodes` | integer or null | `13` |  |
| `airing_episodes[].streaming_links` | array |  |  |
| `airing_episodes[].cover_image_link` | string or null | `"https://s4.anilist.co/file/anilistcdn/media/anime/cover/medium/bx187260-WW5RBa5NINRP.jpg"` |  |

**Example input**

```json
{
  "time_zone": "America/New_York",
  "days_ahead": 2,
  "max_results": 10
}
```

**Example output**

```json
{
  "airing_episodes": [
    {
      "format": "TV",
      "air_time": "2026-09-29T08:30:00-04:00",
      "anilist_id": 187260,
      "anime_title": "I Want to Love You Till Your Dying Day",
      "anilist_link": "https://anilist.co/anime/187260",
      "episode_number": 13,
      "total_episodes": 13,
      "streaming_links": [
        {
          "link": "https://www.crunchyroll.com/series/GT00374354/i-want-to-love-you-till-your-dying-day",
          "site_name": "Crunchyroll"
        }
      ],
      "cover_image_link": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/medium/bx187260-WW5RBa5NINRP.jpg"
    },
    {
      "format": "TV",
      "air_time": "2026-09-29T12:35:00-04:00",
      "anilist_id": 207809,
      "anime_title": "Red River",
      "anilist_link": "https://anilist.co/anime/207809",
      "episode_number": 13,
      "total_episodes": 24,
      "streaming_links": [
        {
          "link": "https://www.crunchyroll.com/series/GT00378099/red-river",
          "site_name": "Crunchyroll"
        }
      ],
      "cover_image_link": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/medium/bx207809-cpS7CAyjN7iP.jpg"
    },
    {
      "format": "ONA",
      "air_time": "2026-09-29T19:00:00-04:00",
      "anilist_id": 204656,
      "anime_title": "mofusand",
      "anilist_link": "https://anilist.co/anime/204656",
      "episode_number": 39,
      "total_episodes": null,
      "streaming_links": [
        {
          "link": "https://www.youtube.com/playlist?list=PLRj9zPfLhyY2BfhHtx01IzU9UU3Thjrff",
          "site_name": "YouTube"
        }
      ],
      "cover_image_link": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/medium/b204656-KXjxVB4bBhl8.jpg"
    }
  ]
}
```

### Get next episode

Operation `get_next_episode`, version 1. 1 credit per call.

Get the most popular matching anime’s next scheduled episode, local air time, status, episode count, and streaming links. Air times and total episode counts may be unavailable on AniList.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `anime` | string | yes | `"One Piece"` | Anime name in English or Japanese, for example One Piece. |
| `time_zone` | string | no | `"London"` | City or time zone for the air time, for example London or Europe/London. Defaults to UTC. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "anime"
  ],
  "properties": {
    "anime": {
      "type": "string",
      "description": "Anime name in English or Japanese, for example One Piece.",
      "examples": [
        "One Piece",
        "Fullmetal Alchemist: Brotherhood",
        "鬼滅の刃"
      ]
    },
    "time_zone": {
      "type": "string",
      "default": "UTC",
      "description": "City or time zone for the air time, for example London or Europe/London. Defaults to UTC.",
      "examples": [
        "London",
        "America/New_York"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "anime": "One Piece",
      "time_zone": "London"
    },
    {
      "anime": "Fullmetal Alchemist: Brotherhood",
      "time_zone": "America/New_York"
    },
    {
      "anime": "鬼滅の刃"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `title` | object |  |  |
| `title.english` | string or null | `"ONE PIECE"` | English anime title, if available. |
| `title.japanese_romaji` | string or null | `"ONE PIECE"` | Japanese anime title in Latin letters, if available. |
| `status` | string or null | `"Releasing"` | Release status. |
| `anilist_id` | integer | `21` | AniList media identifier. |
| `anilist_link` | string | `"https://anilist.co/anime/21"` | AniList page for this anime. |
| `total_episodes` | integer or null | `64` | Total episode count, if known. |
| `streaming_links` | array |  |  |
| `streaming_links[].link` | string | `"http://www.crunchyroll.com/one-piece"` |  |
| `streaming_links[].site_name` | string | `"Crunchyroll"` |  |
| `next_air_datetime` | string or null | `"2027-01-03T14:16:00+00:00"` | Next air time as ISO 8601 with the chosen time zone offset. |
| `time_until_airing` | string or null | `"96 days 9 hours 50 minutes"` | Time remaining until the next episode. |
| `next_episode_number` | integer or null | `1181` | Number of the next scheduled episode. |

**Example input**

```json
{
  "anime": "One Piece",
  "time_zone": "London"
}
```

**Example output**

```json
{
  "title": {
    "english": "ONE PIECE",
    "japanese_romaji": "ONE PIECE"
  },
  "status": "Releasing",
  "anilist_id": 21,
  "anilist_link": "https://anilist.co/anime/21",
  "total_episodes": null,
  "streaming_links": [
    {
      "link": "http://www.crunchyroll.com/one-piece",
      "site_name": "Crunchyroll"
    },
    {
      "link": "http://www.hulu.com/one-piece",
      "site_name": "Hulu"
    },
    {
      "link": "https://www.netflix.com/title/80107103",
      "site_name": "Netflix"
    }
  ],
  "next_air_datetime": "2027-01-03T14:16:00+00:00",
  "time_until_airing": "96 days 9 hours 50 minutes",
  "next_episode_number": 1181
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@anilist",
  "visibility": "public",
  "operation": "get_airing_schedule",
  "version": 1,
  "input": {
    "time_zone": "America/New_York",
    "days_ahead": 2,
    "max_results": 10
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@anilist\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_airing_schedule\",\n  \"version\": 1,\n  \"input\": {\n    \"time_zone\": \"America/New_York\",\n    \"days_ahead\": 2,\n    \"max_results\": 10\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@anilist",
  "visibility": "public",
  "operation": "get_airing_schedule",
  "version": 1,
  "input": {
    "time_zone": "America/New_York",
    "days_ahead": 2,
    "max_results": 10
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@anilist","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Plan content around upcoming anime episode air times
- Find the next scheduled episode for a specific anime
- Check episode numbers and total episode counts
- Review available streaming links for scheduled episodes
- Display episode schedules in a chosen time zone

## FAQ

### Is Fous affiliated with AniList?

No. Fous is not affiliated with AniList. This workflow reads the public anilist.co website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a AniList account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from anilist.co when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What anime episodes are airing soon?

Get airing schedule returns upcoming episodes ordered by air time for the selected number of days.

### When does the next episode of an anime air?

Get next episode returns the next scheduled episode and its air time for the anime name you provide.

### Which streaming links are available for an episode?

Get airing schedule and Get next episode return streaming links when available.

## Related

- [MyAnimeList API](https://fous.com/workflows/myanimelist.md): MyAnimeList provides anime, manga, manhwa and light novel details, ratings, seasonal and top rankings; streaming follows its listings, and unannounced or unavailable details may be missing.
- [Crunchyroll API](https://fous.com/workflows/crunchyroll.md): Crunchyroll provides anime streaming and release schedules, showing scheduled episodes for a selected week when available, plus public series details by name or link.
- [TVmaze API](https://fous.com/workflows/tvmaze.md): TVmaze provides TV schedules, broadcast and streaming releases, and show status, ratings, and episode details; streaming times may be unavailable or shown in UTC.
- [Twitch API](https://fous.com/workflows/twitch.md): Twitch returns channel profiles, live status, up to 10 broadcasts, top streams, viewer-ranked categories, up to 100 public videos/clips, and 1–30-day schedules; counts change.
- [TMDB API](https://fous.com/workflows/tmdb.md): TMDB returns movie and TV details, cast, trailers, releases, viewing services, scheduled upcoming movies, and up to 20 homepage trending titles; future episode details depend on published schedules.
- [WEBTOON API](https://fous.com/workflows/webtoon.md): WEBTOON helps readers find comics and discover popular or trending series, with public series details and newest publicly listed episodes; app-only episodes and numeric series ratings aren’t shown.
- [IMDb API](https://fous.com/workflows/imdb.md): IMDb returns movie, TV, person, episode, chart and Parents Guide details, including available weekly rank changes; missing details are null, and unaired or unrated episodes lack ratings.
- [JustWatch API](https://fous.com/workflows/justwatch.md): JustWatch shows where movies and shows are available, including streaming, purchase, and cinema options, plus recent streaming arrivals and daily streaming charts based on its listings.
- [All Entertainment workflows](https://fous.com/workflows/category/entertainment)
