{
  "openapi": "3.0.1",
  "info": {
    "title": "VNDB Scraper: Visual Novels, Characters & Releases",
    "description": "Scrape VNDB, the Visual Novel Database: rank 66,000+ visual novels by rating, votes or date with tags, developers and platforms, plus every character and release edition per title. Filter by minimum votes. Export CSV, Excel, JSON. No login or API key.",
    "version": "0.2",
    "x-build-id": "2k2c2rAxVhh9wpYuK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~vndb-visual-novel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-vndb-visual-novel-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/recordsdata~vndb-visual-novel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-vndb-visual-novel-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/recordsdata~vndb-visual-novel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-vndb-visual-novel-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": {
          "searchQuery": {
            "title": "Search by title (optional)",
            "type": "string",
            "description": "Title keyword, alias or release title. Example: Fate or Steins;Gate. Leave empty to browse the whole database with the sort order and filters.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "rating",
              "votecount",
              "released",
              "title",
              "id",
              "searchrank"
            ],
            "type": "string",
            "description": "Which order to return results in. Rating = best Bayesian score first. \"Search rank\" needs a search query.",
            "default": "rating"
          },
          "sortDirection": {
            "title": "Sort direction",
            "enum": [
              "auto",
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Auto keeps each sort natural direction (best, most and newest first; A-Z). Pick ascending or descending to flip it, for example oldest release first.",
            "default": "auto"
          },
          "minVotes": {
            "title": "Minimum votes (count, 0 = no filter)",
            "minimum": 0,
            "type": "integer",
            "description": "Only visual novels with at least this many user votes. Example: 100. Raising it hides obscure entries with unreliable ratings.",
            "default": 100
          },
          "releasedAfter": {
            "title": "Released on or after (YYYY-MM-DD)",
            "type": "string",
            "description": "Example: 2020-01-01. Leave empty for no date filter.",
            "default": ""
          },
          "language": {
            "title": "Available in language",
            "enum": [
              "any",
              "ar",
              "eu",
              "be",
              "bg",
              "bs",
              "ca",
              "ck",
              "zh",
              "zh-Hans",
              "zh-Hant",
              "hr",
              "cs",
              "da",
              "nl",
              "en",
              "eo",
              "et",
              "fi",
              "fr",
              "gl",
              "de",
              "el",
              "he",
              "hi",
              "hu",
              "ga",
              "id",
              "it",
              "iu",
              "ja",
              "kk",
              "ko",
              "la",
              "lv",
              "lt",
              "mk",
              "ms",
              "ne",
              "no",
              "fa",
              "pl",
              "pt-br",
              "pt-pt",
              "ro",
              "ru",
              "gd",
              "sr",
              "sk",
              "sl",
              "es",
              "sv",
              "ta",
              "th",
              "tr",
              "uk",
              "ur",
              "vi"
            ],
            "type": "string",
            "description": "Only visual novels with a release in this language. Example: English or Japanese. Machine translations are not counted. \"Any language\" adds no filter.",
            "default": "any"
          },
          "originalLanguage": {
            "title": "Originally written in",
            "enum": [
              "any",
              "ar",
              "eu",
              "be",
              "bg",
              "bs",
              "ca",
              "ck",
              "zh",
              "zh-Hans",
              "zh-Hant",
              "hr",
              "cs",
              "da",
              "nl",
              "en",
              "eo",
              "et",
              "fi",
              "fr",
              "gl",
              "de",
              "el",
              "he",
              "hi",
              "hu",
              "ga",
              "id",
              "it",
              "iu",
              "ja",
              "kk",
              "ko",
              "la",
              "lv",
              "lt",
              "mk",
              "ms",
              "ne",
              "no",
              "fa",
              "pl",
              "pt-br",
              "pt-pt",
              "ro",
              "ru",
              "gd",
              "sr",
              "sk",
              "sl",
              "es",
              "sv",
              "ta",
              "th",
              "tr",
              "uk",
              "ur",
              "vi"
            ],
            "type": "string",
            "description": "Only visual novels originally written in this language. Example: Japanese finds the Japanese originals, most of VNDB. \"Any language\" adds no filter.",
            "default": "any"
          },
          "platform": {
            "title": "Available on platform",
            "enum": [
              "any",
              "win",
              "lin",
              "mac",
              "web",
              "tdo",
              "ios",
              "and",
              "bdp",
              "dos",
              "dvd",
              "drc",
              "nes",
              "sfc",
              "fm7",
              "fm8",
              "fmt",
              "gba",
              "gbc",
              "msx",
              "nds",
              "swi",
              "sw2",
              "wii",
              "wiu",
              "n3d",
              "p88",
              "p98",
              "pce",
              "pcf",
              "psp",
              "ps1",
              "ps2",
              "ps3",
              "ps4",
              "ps5",
              "psv",
              "smd",
              "scd",
              "sat",
              "vnd",
              "x1s",
              "x68",
              "xb1",
              "xb3",
              "xbo",
              "xxs",
              "mob",
              "oth"
            ],
            "type": "string",
            "description": "Only visual novels with a release on this platform. Example: Windows, Nintendo Switch, PlayStation 4, Android. \"Any platform\" adds no filter.",
            "default": "any"
          },
          "vnIds": {
            "title": "VN IDs (one per line)",
            "type": "array",
            "description": "IDs of the visual novels to fetch in detail. Example: v11 or 11 (the number in a vndb.org/v11 URL). Up to 50 IDs per request.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "extraFields": {
            "title": "Extra columns on each visual novel (free)",
            "type": "array",
            "description": "Heavier columns in the same row: titles in every language, related novels, screenshots, staff, voice actors, editions. They cost no extra rows; they only make the rows bigger. Leave empty for lean rows.",
            "items": {
              "type": "string",
              "enum": [
                "titles",
                "relations",
                "screenshots",
                "staff",
                "voiceActors",
                "editions"
              ],
              "enumTitles": [
                "Titles in every language",
                "Related visual novels",
                "Screenshots",
                "Staff credits",
                "Voice actors",
                "Translation and platform editions"
              ]
            },
            "default": []
          },
          "includeCharacters": {
            "title": "Add every character (billed, one row each)",
            "type": "boolean",
            "description": "For each visual novel found or listed in VN IDs, add its characters: name, role, sex, age, birthday, traits and portrait. Counts toward Max rows.",
            "default": false
          },
          "includeReleases": {
            "title": "Add every release (billed, one row each)",
            "type": "boolean",
            "description": "For each visual novel found or listed in VN IDs, add its releases: date, languages, platforms, age rating, patch flags, engine, publishers and store links. Counts toward Max rows.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows (billed)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Total rows across visual novels, characters and releases. Example: 10 for a test, 5000 for a large export. Free Apify users are capped at 10 rows per run; paid users can go up to 1,000,000.",
            "default": 10
          },
          "filters": {
            "title": "Raw VNDB filter (JSON)",
            "type": "array",
            "description": "A VNDB Kana API filter as a JSON array. Single condition: [\"tag\",\"=\",\"g50\"]. Combined: [\"and\",[\"lang\",\"=\",\"en\"],[\"released\",\">=\",\"2020\"]]. Names: lang, olang, platform, released, rating, votecount, length, devstatus, tag, developer, release, character. Reference: https://api.vndb.org/kana#filters. Unknown names end the run with one free error row.",
            "default": []
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}