{
  "openapi": "3.0.1",
  "info": {
    "title": "AniList Scraper",
    "description": "Scrape anime and manga from AniList.co with title (romaji/english/native), description, score, episodes, status, genres, studios, streaming links, season + year. Public GraphQL API, no auth required.",
    "version": "1.0",
    "x-build-id": "oMXVTByEKMNdlHY6d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~anilist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-anilist-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/crawlerbros~anilist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-anilist-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/crawlerbros~anilist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-anilist-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byIds",
              "userProfile",
              "trending",
              "seasonal",
              "characters",
              "staff",
              "studios",
              "byUrl"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "mediaType": {
            "title": "Media type",
            "enum": [
              "ANIME",
              "MANGA"
            ],
            "type": "string",
            "description": "Anime or manga (used by `search`, `trending`, `seasonal`).",
            "default": "ANIME"
          },
          "searchQuery": {
            "title": "Search query (mode=search / characters / staff / studios)",
            "type": "string",
            "description": "Title query for `search`, or name query for `characters` / `staff` / `studios`. Leave empty in `search` to do a discovery query using only season/genre/year filters."
          },
          "ids": {
            "title": "AniList IDs (mode=byIds)",
            "type": "array",
            "description": "Numeric AniList media IDs (e.g. `[20, 21, 113415]`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "AniList URLs (mode=byUrl)",
            "type": "array",
            "description": "anilist.co URLs to resolve. Supports anime/manga/character/staff/studio/user (e.g. `https://anilist.co/anime/20/Naruto`, `https://anilist.co/character/17`, `https://anilist.co/staff/96870`, `https://anilist.co/studio/21`, `https://anilist.co/user/AniList`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "username": {
            "title": "Username (mode=userProfile)",
            "type": "string",
            "description": "AniList username."
          },
          "format": {
            "title": "Format filter",
            "enum": [
              "",
              "TV",
              "TV_SHORT",
              "MOVIE",
              "SPECIAL",
              "OVA",
              "ONA",
              "MUSIC",
              "MANGA",
              "NOVEL",
              "ONE_SHOT"
            ],
            "type": "string",
            "description": "Restrict to a specific format.",
            "default": ""
          },
          "status": {
            "title": "Status filter",
            "enum": [
              "",
              "FINISHED",
              "RELEASING",
              "NOT_YET_RELEASED",
              "CANCELLED",
              "HIATUS"
            ],
            "type": "string",
            "description": "Restrict to a specific status.",
            "default": ""
          },
          "season": {
            "title": "Season",
            "enum": [
              "",
              "WINTER",
              "SPRING",
              "SUMMER",
              "FALL"
            ],
            "type": "string",
            "description": "Anime season (mode=search uses with `seasonYear`; mode=seasonal defaults to current real-world season when empty).",
            "default": ""
          },
          "seasonYear": {
            "title": "Season year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Year for `season` filter (e.g. 2024)."
          },
          "genres": {
            "title": "Genre filter",
            "uniqueItems": true,
            "type": "array",
            "description": "AniList canonical genres. All requested genres must be present on a record (AND-match).",
            "items": {
              "type": "string",
              "enum": [
                "Action",
                "Adventure",
                "Comedy",
                "Drama",
                "Ecchi",
                "Fantasy",
                "Hentai",
                "Horror",
                "Mahou Shoujo",
                "Mecha",
                "Music",
                "Mystery",
                "Psychological",
                "Romance",
                "Sci-Fi",
                "Slice of Life",
                "Sports",
                "Supernatural",
                "Thriller"
              ],
              "enumTitles": [
                "Action",
                "Adventure",
                "Comedy",
                "Drama",
                "Ecchi",
                "Fantasy",
                "Hentai",
                "Horror",
                "Mahou Shoujo",
                "Mecha",
                "Music",
                "Mystery",
                "Psychological",
                "Romance",
                "Sci-Fi",
                "Slice of Life",
                "Sports",
                "Supernatural",
                "Thriller"
              ]
            },
            "default": []
          },
          "minScore": {
            "title": "Min average score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Drop media with `averageScore` below this (0-100)."
          },
          "isAdult": {
            "title": "Include adult content",
            "type": "boolean",
            "description": "Include 18+ content. Default: off.",
            "default": false
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "POPULARITY_DESC",
              "SCORE_DESC",
              "TRENDING_DESC",
              "FAVOURITES_DESC",
              "START_DATE_DESC",
              "TITLE_ROMAJI"
            ],
            "type": "string",
            "description": "Sort search results.",
            "default": "POPULARITY_DESC"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 25
          },
          "useProxy": {
            "title": "Use Apify proxy (rotates IP)",
            "type": "boolean",
            "description": "If true, routes GraphQL requests through Apify proxy and rotates IP every N requests + on every HTTP 429. AniList sometimes returns empty media for season+genre discovery queries from datacenter IPs even though the same query works from residential IPs — enabling this fixes that.",
            "default": false
          },
          "autoEscalateOnBlock": {
            "title": "Auto-escalate to Apify proxy on block",
            "type": "boolean",
            "description": "If true (default), the actor automatically engages Apify proxy and retries when it hits HTTP 403/429 from a raw datacenter IP. Set to false to disable (request fails fast instead of paying proxy cost).",
            "default": true
          },
          "proxyGroups": {
            "title": "Apify proxy groups",
            "type": "array",
            "description": "Apify proxy groups (e.g. `[\"RESIDENTIAL\"]` or `[\"DATACENTER\"]`). Leave empty to use the default auto group. Only used when `useProxy` is true.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "rotateEveryNRequests": {
            "title": "Rotate IP every N requests",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "When using a proxy, swap to a fresh IP after this many successful requests (in addition to rotating on 429).",
            "default": 25
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}