{
  "openapi": "3.0.1",
  "info": {
    "title": "Bilibili Bangumi Catalog & Hot Search Scraper",
    "description": "Collect Bilibili's licensed anime, Chinese animation, film, documentary, TV and variety catalog with official filters, sort orders, pagination, full episode lists, Top 100 rankings, the release calendar and the live hot-search board.",
    "version": "1.0",
    "x-build-id": "rU3g42vKcdV1zzeXP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~bilibili-bangumi-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-bilibili-bangumi-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/crawlyth-forge~bilibili-bangumi-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-bilibili-bangumi-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/crawlyth-forge~bilibili-bangumi-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-bilibili-bangumi-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": [
              "catalog",
              "details",
              "episodes",
              "ranking",
              "calendar",
              "hotSearch",
              "filterOptions"
            ],
            "type": "string",
            "description": "What to collect: the filterable PGC catalog, full details for specific seasons, episode lists, Top 100 rankings, the release calendar, the hot-search board, or the official filter values for each content type.",
            "default": "catalog"
          },
          "contentTypes": {
            "title": "Content types",
            "uniqueItems": true,
            "type": "array",
            "description": "Bilibili sections to read. Catalog and ranking support all six; calendar supports anime and guochuang only. maxItems is split fairly across the selected types.",
            "items": {
              "type": "string",
              "enum": [
                "anime",
                "movie",
                "documentary",
                "guochuang",
                "tv",
                "variety"
              ],
              "enumTitles": [
                "Anime / bangumi (番剧)",
                "Film (电影)",
                "Documentary (纪录片)",
                "Chinese animation (国创)",
                "TV series (电视剧)",
                "Variety show (综艺)"
              ]
            },
            "default": [
              "anime"
            ]
          },
          "rankingWindowDays": {
            "title": "Ranking window",
            "enum": [
              "3",
              "7"
            ],
            "type": "string",
            "description": "Ranking period (mode=ranking). Bilibili publishes a 3-day and a 7-day Top 100 for every content type.",
            "default": "3"
          },
          "region": {
            "title": "Region",
            "enum": [
              "all",
              "china",
              "hong_kong_taiwan",
              "japan",
              "usa",
              "uk",
              "south_korea",
              "france",
              "germany",
              "thailand",
              "italy",
              "spain",
              "other"
            ],
            "type": "string",
            "description": "Production region (mode=catalog). Each section offers its own regions; a region Bilibili does not offer for the selected content type is skipped and logged.",
            "default": "all"
          },
          "genre": {
            "title": "Genre",
            "enum": [
              "all",
              "original",
              "manga_adaptation",
              "novel_adaptation",
              "game_adaptation",
              "motion_comic",
              "puppetry",
              "action",
              "isekai",
              "fantasy",
              "xuanhuan",
              "battle",
              "comedy",
              "slice_of_life",
              "sci_fi",
              "moe",
              "healing",
              "school",
              "kids",
              "short_form",
              "romance",
              "shoujo",
              "magic",
              "adventure",
              "history",
              "alternate_world",
              "mecha",
              "supernatural",
              "voice",
              "sports",
              "inspirational",
              "music",
              "detective",
              "club",
              "mind_games",
              "tearjerker",
              "food",
              "idol",
              "otome",
              "workplace",
              "ancient_style",
              "drama",
              "comedy_film",
              "romance_film",
              "action_film",
              "horror",
              "crime",
              "thriller",
              "mystery",
              "war",
              "animation",
              "biography",
              "family",
              "musical",
              "documentary_style",
              "disaster",
              "humanities",
              "technology",
              "exploration",
              "space",
              "pets",
              "society",
              "animals",
              "nature",
              "medical",
              "military",
              "true_crime",
              "paranormal",
              "travel",
              "wuxia",
              "youth",
              "urban",
              "costume",
              "emotion",
              "interview",
              "talk_show",
              "reality_show",
              "talent_show",
              "travel_variety",
              "concert",
              "parent_child",
              "gala",
              "idol_training",
              "culture",
              "tokusatsu",
              "short_drama",
              "short_film",
              "comic_drama",
              "documentary_film"
            ],
            "type": "string",
            "description": "Genre / style filter (mode=catalog). The actor validates the genre against the selected content type and skips it if Bilibili does not offer it there.",
            "default": "all"
          },
          "genreId": {
            "title": "Genre ID override",
            "type": "string",
            "description": "Advanced (mode=catalog). Exact Bilibili style_id from the filterOptions mode, e.g. 10010. Overrides the Genre dropdown."
          },
          "year": {
            "title": "Year",
            "enum": [
              "all",
              "2028",
              "2027",
              "2026",
              "2025",
              "2024",
              "2023",
              "2022",
              "2021",
              "2020",
              "2019",
              "2018",
              "2017",
              "2016",
              "2015",
              "2010-2014",
              "2005-2009",
              "2000-2004",
              "1990s",
              "1980s",
              "earlier"
            ],
            "type": "string",
            "description": "Premiere year or year range (mode=catalog). Bilibili groups older titles into ranges; a year the selected content type does not offer is skipped and logged.",
            "default": "all"
          },
          "finishStatus": {
            "title": "Airing status",
            "enum": [
              "all",
              "finished",
              "ongoing"
            ],
            "type": "string",
            "description": "Finished or ongoing (mode=catalog; anime and guochuang only).",
            "default": "all"
          },
          "payment": {
            "title": "Free / paid / VIP",
            "enum": [
              "all",
              "free",
              "paid",
              "vip"
            ],
            "type": "string",
            "description": "Access tier (mode=catalog). Bilibili offers free, paid and VIP-member titles per section.",
            "default": "all"
          },
          "copyright": {
            "title": "Copyright",
            "enum": [
              "all",
              "exclusive",
              "other"
            ],
            "type": "string",
            "description": "Exclusive or other licensing (mode=catalog; anime and guochuang only).",
            "default": "all"
          },
          "seasonMonth": {
            "title": "Premiere quarter",
            "enum": [
              "all",
              "january",
              "april",
              "july",
              "october"
            ],
            "type": "string",
            "description": "January, April, July or October season (mode=catalog; anime only).",
            "default": "all"
          },
          "contentTypeVersion": {
            "title": "Version",
            "enum": [
              "all",
              "main",
              "movie",
              "other"
            ],
            "type": "string",
            "description": "Main feature, film or other (mode=catalog; anime and guochuang only).",
            "default": "all"
          },
          "dub": {
            "title": "Dub",
            "enum": [
              "all",
              "original",
              "chinese_dub"
            ],
            "type": "string",
            "description": "Original audio or Chinese dub (mode=catalog; anime only).",
            "default": "all"
          },
          "producer": {
            "title": "Producer",
            "enum": [
              "all",
              "cctv",
              "bbc",
              "discovery",
              "natgeo",
              "nhk",
              "history",
              "satellite",
              "self_produced",
              "itv",
              "sky",
              "zdf",
              "co_production",
              "domestic_other",
              "foreign_other",
              "sony",
              "universal",
              "disney"
            ],
            "type": "string",
            "description": "Production company (mode=catalog; documentaries only).",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "followers",
              "plays",
              "score",
              "updated",
              "releaseDate",
              "danmaku"
            ],
            "type": "string",
            "description": "Catalog ordering (mode=catalog). Bilibili sorts every section by these keys; the actor records the sort used in sortedBy.",
            "default": "followers"
          },
          "sortOrder": {
            "title": "Sort direction",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Ascending or descending (mode=catalog). Rating sort is descending-only upstream and is reported in the run log when adjusted.",
            "default": "desc"
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "First catalog page to read, 1-based (mode=catalog). Use it to resume a long catalog walk.",
            "default": 1
          },
          "includeDetails": {
            "title": "Include season statistics",
            "type": "boolean",
            "description": "Fetch the season detail record for every catalog title (mode=catalog) to add rating count, follower count, play counts, synopsis, cast, staff, regions and styles. Disable for the fastest listing.",
            "default": true
          },
          "seasonIds": {
            "title": "Season IDs or URLs",
            "type": "array",
            "description": "Seasons to read (modes=details, episodes). Accepts season IDs (835), ss IDs (ss835), episode IDs (ep15014) and full bilibili.com/bangumi/play URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeSections": {
            "title": "Include extras and previews",
            "type": "boolean",
            "description": "Add PVs, previews, clips and behind-the-scenes sections to episode lists (mode=episodes). Main episodes are always included.",
            "default": true
          },
          "calendarDaysBefore": {
            "title": "Calendar days before today",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "How many past days to include in the release calendar (mode=calendar). 0-7.",
            "default": 0
          },
          "calendarDaysAfter": {
            "title": "Calendar days after today",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "How many upcoming days to include in the release calendar (mode=calendar). 0-7.",
            "default": 7
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many records in total. In catalog mode the cap is split fairly across the selected content types.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Leave disabled unless Bilibili blocks your region or datacenter IP. Bilibili decides the catalog by request region, so a proxy in another region can change which titles are listed.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}