{
  "openapi": "3.0.1",
  "info": {
    "title": "Jikan — MyAnimeList Anime & Manga Scraper",
    "description": "Scrapes anime and manga data from MyAnimeList via the Jikan REST API v4. No API key required.\nFeatures\n9 scrape modes — top rankings, keyword search, seasonal anime, weekly schedules, direct ID lookup, genre browsing.",
    "version": "0.0",
    "x-build-id": "6aR6FHinV4ZigdQzh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moving_beacon-owner1~jikan----myanimelist-anime-manga-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moving_beacon-owner1-jikan----myanimelist-anime-manga-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/moving_beacon-owner1~jikan----myanimelist-anime-manga-scraper/runs": {
      "post": {
        "operationId": "runs-sync-moving_beacon-owner1-jikan----myanimelist-anime-manga-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/moving_beacon-owner1~jikan----myanimelist-anime-manga-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-moving_beacon-owner1-jikan----myanimelist-anime-manga-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": "Scrape Mode",
            "enum": [
              "top_anime",
              "top_manga",
              "search_anime",
              "search_manga",
              "seasonal",
              "schedule",
              "anime_by_ids",
              "manga_by_ids",
              "genre_browse"
            ],
            "type": "string",
            "description": "Choose what type of data to fetch.",
            "default": "top_anime"
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Keyword to search for (used in Search Anime / Search Manga modes). E.g. 'Naruto', 'dragon', 'romance'."
          },
          "mediaType": {
            "title": "Media Type Filter",
            "enum": [
              "any",
              "tv",
              "movie",
              "ova",
              "special",
              "ona",
              "music",
              "cm",
              "pv",
              "tv_special",
              "manga",
              "novel",
              "lightnovel",
              "oneshot",
              "doujin",
              "manhwa",
              "manhua"
            ],
            "type": "string",
            "description": "Filter by media type.",
            "default": "any"
          },
          "status": {
            "title": "Status Filter",
            "enum": [
              "any",
              "airing",
              "complete",
              "upcoming",
              "publishing",
              "finished",
              "hiatus",
              "discontinued"
            ],
            "type": "string",
            "description": "Filter by airing/publishing status.",
            "default": "any"
          },
          "rating": {
            "title": "Age Rating Filter",
            "enum": [
              "any",
              "g",
              "pg",
              "pg13",
              "r17",
              "r",
              "rx"
            ],
            "type": "string",
            "description": "Filter by content rating (anime only).",
            "default": "any"
          },
          "minScore": {
            "title": "Minimum Score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Only include titles with a MAL score >= this value (0-10)."
          },
          "maxScore": {
            "title": "Maximum Score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Only include titles with a MAL score <= this value (0-10)."
          },
          "genres": {
            "title": "Genres (IDs)",
            "type": "string",
            "description": "Comma-separated MAL genre IDs to filter by. Common: 1=Action, 2=Adventure, 4=Comedy, 8=Drama, 10=Fantasy, 14=Horror, 22=Romance, 24=Sci-Fi, 36=Slice of Life, 37=Supernatural. See README for full list."
          },
          "orderBy": {
            "title": "Order By",
            "enum": [
              "score",
              "popularity",
              "rank",
              "favorites",
              "members",
              "title",
              "start_date",
              "end_date",
              "episodes",
              "mal_id"
            ],
            "type": "string",
            "description": "Sort field for top/search results.",
            "default": "score"
          },
          "sortDirection": {
            "title": "Sort Direction",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Ascending or descending order.",
            "default": "desc"
          },
          "seasonYear": {
            "title": "Season Year",
            "type": "integer",
            "description": "Year for seasonal anime mode (e.g. 2025). Leave empty for current year."
          },
          "season": {
            "title": "Season",
            "enum": [
              "winter",
              "spring",
              "summer",
              "fall",
              "now"
            ],
            "type": "string",
            "description": "Season quarter for seasonal mode.",
            "default": "winter"
          },
          "scheduleDay": {
            "title": "Schedule Day",
            "enum": [
              "any",
              "monday",
              "tuesday",
              "wednesday",
              "thursday",
              "friday",
              "saturday",
              "sunday",
              "unknown",
              "other"
            ],
            "type": "string",
            "description": "Day of the week for schedule mode. 'Any' fetches all days.",
            "default": "any"
          },
          "malIds": {
            "title": "MAL IDs",
            "type": "string",
            "description": "Comma-separated MyAnimeList IDs for direct lookup (e.g. '1,5,20,21'). Used in 'Anime by IDs' / 'Manga by IDs' modes."
          },
          "fetchExtras": {
            "title": "Fetch Extra Details",
            "type": "array",
            "description": "For each title, also fetch additional data. Adds extra API calls.",
            "items": {
              "type": "string",
              "enum": [
                "characters",
                "episodes",
                "recommendations",
                "reviews_summary",
                "statistics"
              ],
              "enumTitles": [
                "Characters & Voice Actors",
                "Episodes List",
                "Recommendations",
                "Reviews Summary",
                "Statistics (score distribution)"
              ]
            },
            "default": []
          },
          "maxPages": {
            "title": "Maximum Pages",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Maximum number of result pages to fetch (25 items per page). E.g. 4 pages = up to 100 items.",
            "default": 4
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "enriched",
              "raw",
              "minimal"
            ],
            "type": "string",
            "description": "How to structure each record.",
            "default": "enriched"
          },
          "addSequentialId": {
            "title": "Add Sequential ID",
            "type": "boolean",
            "description": "Add auto-incrementing ID to each record.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}