{
  "openapi": "3.0.1",
  "info": {
    "title": "MyAnimeList Scraper",
    "description": "Scrape MyAnimeList via the Jikan unofficial REST API with anime, manga, characters, voice actors, seasons, top charts, public user profiles, and lists. No login or proxy required.",
    "version": "1.0",
    "x-build-id": "apCjT63GtMSEXJ5ct"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~myanimelist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-myanimelist-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~myanimelist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-myanimelist-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~myanimelist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-myanimelist-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": [
              "searchAnime",
              "byAnime",
              "searchManga",
              "byManga",
              "topAnime",
              "topManga",
              "seasonNow",
              "seasonUpcoming",
              "season",
              "searchPerson",
              "byPerson",
              "searchCharacter",
              "byCharacter",
              "userProfile",
              "userAnimeList",
              "userMangaList",
              "byUrl"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "topAnime"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text query for any `search*` mode. Example: `attack on titan`."
          },
          "type": {
            "title": "Anime / manga type filter",
            "enum": [
              "",
              "tv",
              "movie",
              "ova",
              "special",
              "ona",
              "music",
              "cm",
              "pv",
              "tv_special",
              "manga",
              "novel",
              "lightnovel",
              "oneshot",
              "doujin",
              "manhwa",
              "manhua"
            ],
            "type": "string",
            "description": "Format filter. For anime: tv/movie/ova/special/ona/music/cm/pv/tv_special. For manga: manga/novel/lightnovel/oneshot/doujin/manhwa/manhua. Applied to anime modes when picking anime values, and to manga modes when picking manga values."
          },
          "status": {
            "title": "Status filter",
            "enum": [
              "",
              "airing",
              "complete",
              "upcoming",
              "publishing",
              "hiatus",
              "discontinued"
            ],
            "type": "string",
            "description": "Airing/publication status. Anime: airing/complete/upcoming. Manga: publishing/complete/hiatus/discontinued/upcoming."
          },
          "rating": {
            "title": "Anime rating filter",
            "enum": [
              "",
              "g",
              "pg",
              "pg13",
              "r17",
              "r",
              "rx"
            ],
            "type": "string",
            "description": "MPAA-style age rating (anime only). Use `pg13` to exclude adult content; `rx` is hentai."
          },
          "genres": {
            "title": "Genre IDs (numeric)",
            "type": "array",
            "description": "MAL genre IDs as integers (comma-separated in URL). Common: 1=Action, 2=Adventure, 4=Comedy, 8=Drama, 10=Fantasy, 7=Mystery, 22=Romance, 24=Sci-Fi, 36=Slice of Life, 30=Sports, 37=Supernatural, 41=Suspense, 14=Horror.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "orderBy": {
            "title": "Order by",
            "enum": [
              "",
              "mal_id",
              "title",
              "start_date",
              "end_date",
              "score",
              "scored_by",
              "rank",
              "popularity",
              "members",
              "favorites",
              "episodes",
              "chapters",
              "volumes"
            ],
            "type": "string",
            "description": "Field to order results by (search modes)."
          },
          "sort": {
            "title": "Sort direction",
            "enum": [
              "",
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Ascending / descending order (used with `orderBy`)."
          },
          "filter": {
            "title": "Top-chart filter (mode=topAnime / topManga)",
            "enum": [
              "",
              "airing",
              "upcoming",
              "bypopularity",
              "favorite",
              "publishing"
            ],
            "type": "string",
            "description": "Which top chart to fetch.",
            "default": "bypopularity"
          },
          "season": {
            "title": "Season (mode=season)",
            "enum": [
              "",
              "winter",
              "spring",
              "summer",
              "fall"
            ],
            "type": "string",
            "description": "Season name. Used together with `seasonYear` for `mode=season`."
          },
          "seasonYear": {
            "title": "Season year (mode=season)",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Year for seasonal browse."
          },
          "malIds": {
            "title": "MAL IDs (mode=byAnime / byManga / byPerson / byCharacter)",
            "type": "array",
            "description": "Numeric MyAnimeList IDs to look up. Each ID is fetched via the appropriate `/{resource}/{id}/full` endpoint.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "username": {
            "title": "Username (mode=userProfile / userAnimeList / userMangaList)",
            "type": "string",
            "description": "Public MyAnimeList username (e.g. `Xinil`)."
          },
          "userListStatus": {
            "title": "User list status filter",
            "enum": [
              "",
              "watching",
              "completed",
              "onhold",
              "dropped",
              "plantowatch",
              "reading",
              "plantoread"
            ],
            "type": "string",
            "description": "Filter the user's anime/manga list to a single status bucket."
          },
          "urls": {
            "title": "MyAnimeList URLs (mode=byUrl)",
            "type": "array",
            "description": "MyAnimeList URLs to auto-route. Supported: `/anime/<id>`, `/manga/<id>`, `/people/<id>`, `/character/<id>`, `/profile/<username>`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minScore": {
            "title": "Min score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Drop records with score below this (0–10)."
          },
          "maxScore": {
            "title": "Max score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Drop records with score above this (0–10)."
          },
          "sfw": {
            "title": "Safe-for-work only",
            "type": "boolean",
            "description": "If on, exclude adult / hentai entries (`sfw=true` query param).",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records. Example: `100`.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}