{
  "openapi": "3.0.1",
  "info": {
    "title": "Bilibili Anime Catalog, Rankings & Calendar",
    "description": "Bilibili anime, Chinese animation, film, documentary and TV series: filterable catalog, Top 100 rankings, release calendar and season details with ratings and follower counts.",
    "version": "0.1",
    "x-build-id": "iNsLshehgmrP8Eon9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datagrit~bilibili-anime-series-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datagrit-bilibili-anime-series-tracker",
        "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/datagrit~bilibili-anime-series-tracker/runs": {
      "post": {
        "operationId": "runs-sync-datagrit-bilibili-anime-series-tracker",
        "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/datagrit~bilibili-anime-series-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-datagrit-bilibili-anime-series-tracker",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "ranking",
              "catalog",
              "calendar",
              "details"
            ],
            "type": "string",
            "description": "ranking = Top 100 charts (follower and play counts); catalog = filterable list of all titles with statistics; calendar = upcoming and recent episode releases; details = full record for the season IDs or URLs you list.",
            "default": "ranking"
          },
          "contentTypes": {
            "title": "Content types",
            "type": "array",
            "description": "Which Bilibili sections to read. Allowed values: anime, guochuang (Chinese animation), movie, documentary, tv, variety. Rankings exist for all but variety; the calendar only for anime and guochuang. Not used in details mode.",
            "default": [
              "anime"
            ],
            "items": {
              "type": "string"
            }
          },
          "rankingWindowDays": {
            "title": "Ranking window",
            "enum": [
              "3",
              "7"
            ],
            "type": "string",
            "description": "Ranking mode: rank by the last 3 days or the last 7 days.",
            "default": "7"
          },
          "sortBy": {
            "title": "Sort catalog by",
            "enum": [
              "follows",
              "views",
              "rating",
              "updated",
              "airDate",
              "danmaku"
            ],
            "type": "string",
            "description": "Catalog mode: sort order. If a content type does not offer the chosen order, the Actor sorts by play count and records this in the sortedBy field.",
            "default": "follows"
          },
          "isFinished": {
            "title": "Airing status",
            "enum": [
              "any",
              "finished",
              "ongoing"
            ],
            "type": "string",
            "description": "Catalog mode: only finished series, only series still airing, or both.",
            "default": "any"
          },
          "access": {
            "title": "Access",
            "enum": [
              "any",
              "free",
              "member"
            ],
            "type": "string",
            "description": "Catalog mode: titles free to watch, or titles that need a paid Bilibili membership.",
            "default": "any"
          },
          "year": {
            "title": "Release year",
            "enum": [
              "any",
              "2026",
              "2025",
              "2024",
              "2023",
              "2022",
              "2021",
              "2020",
              "2019",
              "2018",
              "2017",
              "2016",
              "2015",
              "2010-2014",
              "2005-2009",
              "2000-2004",
              "1990s",
              "1980s",
              "earlier"
            ],
            "type": "string",
            "description": "Catalog mode: premiere year (anime and guochuang from 2015, movies, documentaries and TV from 2016), a multi-year range or decade for older titles, or any. Years a content type does not offer are skipped with a log warning.",
            "default": "any"
          },
          "quarter": {
            "title": "Season of the year",
            "enum": [
              "any",
              "winter",
              "spring",
              "summer",
              "fall"
            ],
            "type": "string",
            "description": "Catalog mode: premiere quarter (winter = January, spring = April, summer = July, fall = October).",
            "default": "any"
          },
          "area": {
            "title": "Country or region",
            "enum": [
              "any",
              "japan",
              "usa",
              "china",
              "hongkong",
              "taiwan",
              "korea",
              "uk",
              "other"
            ],
            "type": "string",
            "description": "Catalog mode: production region. Each content type offers its own regions (anime: Japan, USA, other); combinations Bilibili does not offer are skipped with a log warning.",
            "default": "any"
          },
          "genres": {
            "title": "Genres",
            "type": "array",
            "description": "Catalog mode: one or more genre names in English (for example comedy, isekai, mecha, romance, slice of life, school, sports, idol) or in Chinese as shown on Bilibili. Each genre is read separately and a title is listed once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeStats": {
            "title": "Add statistics to catalog and details rows",
            "type": "boolean",
            "description": "Catalog mode: add play, follower, danmaku, coin, like and share counts, the rating count and the production regions to every row (two extra requests per title). Details mode: use the dedicated statistics endpoint. Turn off for the fastest listing.",
            "default": true
          },
          "calendarDaysBefore": {
            "title": "Calendar: days before today",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Calendar mode: how many past days to include (0 to 7).",
            "default": 0
          },
          "calendarDaysAfter": {
            "title": "Calendar: days after today",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Calendar mode: how many upcoming days to include (0 to 7).",
            "default": 7
          },
          "seasons": {
            "title": "Seasons (details mode)",
            "type": "array",
            "description": "Details mode: Bilibili season IDs, episode IDs or media IDs, or full URLs. Accepted forms: 33415, ss33415, ep323085, md28228813, https://www.bilibili.com/bangumi/play/ss33415.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many results in total. This also caps what a run can cost.",
            "default": 25
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy. Leave disabled unless Bilibili answers with errors from datacenter addresses; an Apify proxy in Asia raises the platform cost of the run.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}