{
  "openapi": "3.0.1",
  "info": {
    "title": "AniList Scraper — Anime & Manga Scores and Trends",
    "description": "Scrape AniList anime and manga with average scores, popularity, favourites, episodes, chapters, genres and season data. Search by title or filter by genre, sort by popularity or score, and export clean JSON or CSV for tracking, trend analysis and media research. Ideal for fans and data teams.",
    "version": "0.1",
    "x-build-id": "JmjbitkIfF0fE86pe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~anilist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-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/haketa~anilist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-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/haketa~anilist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-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",
        "properties": {
          "mediaType": {
            "title": "Media type",
            "enum": [
              "ANIME",
              "MANGA"
            ],
            "type": "string",
            "description": "What to collect: anime (series, films, OVAs) or manga (manga, light novels, one-shots).",
            "default": "ANIME"
          },
          "search": {
            "title": "Search",
            "type": "string",
            "description": "A single title or keyword to search for, e.g. \"frieren\" or \"one piece\". Leave empty to browse by the filters below."
          },
          "searchTerms": {
            "title": "Search keywords (batch)",
            "type": "array",
            "description": "Several titles or keywords at once. Each keyword runs as its own search and results are merged without duplicates. Combined with the single Search field above.",
            "items": {
              "type": "string"
            }
          },
          "genre": {
            "title": "Genre",
            "enum": [
              "",
              "Action",
              "Adventure",
              "Comedy",
              "Drama",
              "Ecchi",
              "Fantasy",
              "Horror",
              "Mahou Shoujo",
              "Mecha",
              "Music",
              "Mystery",
              "Psychological",
              "Romance",
              "Sci-Fi",
              "Slice of Life",
              "Sports",
              "Supernatural",
              "Thriller"
            ],
            "type": "string",
            "description": "Only return titles tagged with one genre. Leave on Any genre to search across all genres.",
            "default": ""
          },
          "season": {
            "title": "Season (anime)",
            "enum": [
              "",
              "WINTER",
              "SPRING",
              "SUMMER",
              "FALL"
            ],
            "type": "string",
            "description": "Airing season to filter anime by. Pair with Season year for a specific cour, e.g. WINTER 2024. Mostly relevant for anime.",
            "default": ""
          },
          "seasonYear": {
            "title": "Season / release year",
            "minimum": 1940,
            "maximum": 2100,
            "type": "integer",
            "description": "Year to filter by (used with Season for a specific anime cour, or on its own as a release-year filter)."
          },
          "format": {
            "title": "Format",
            "enum": [
              "",
              "TV",
              "TV_SHORT",
              "MOVIE",
              "SPECIAL",
              "OVA",
              "ONA",
              "MUSIC",
              "MANGA",
              "NOVEL",
              "ONE_SHOT"
            ],
            "type": "string",
            "description": "Release format. Anime: TV, TV short, movie, special, OVA, ONA, music. Manga: manga, novel, one-shot.",
            "default": ""
          },
          "status": {
            "title": "Release status",
            "enum": [
              "",
              "FINISHED",
              "RELEASING",
              "NOT_YET_RELEASED",
              "CANCELLED",
              "HIATUS"
            ],
            "type": "string",
            "description": "Filter by release status: finished, releasing, not yet released, cancelled or on hiatus.",
            "default": ""
          },
          "sort": {
            "title": "Sort results by",
            "enum": [
              "POPULARITY_DESC",
              "SCORE_DESC",
              "TRENDING_DESC",
              "FAVOURITES_DESC",
              "START_DATE_DESC",
              "TITLE_ROMAJI"
            ],
            "type": "string",
            "description": "Which titles come first: most popular, highest scored, trending now, most favourited, newest or alphabetical.",
            "default": "POPULARITY_DESC"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of entries to collect across all searches. Set to 0 for unlimited collection within the targeted slice (governed by available results). Prefill 50 for fast preview.",
            "default": 0
          },
          "maxPages": {
            "title": "Max pages per search",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum pages (50 entries each) to fetch per search slice. Set to 0 (default) for automatic / unlimited pagination governed by Max results.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy. The AniList API is public, so datacenter is enough and is enabled by default (rotating IPs help pacing at scale).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}