{
  "openapi": "3.0.1",
  "info": {
    "title": "Tabelog Scraper: Japan Restaurants, Scores & Hyakumeiten 百名店",
    "description": "Scrape Tabelog, Japan's top restaurant guide: score, reviews, lunch and dinner budget, genres, nearest station, address, coordinates, phone, hours, seats and booking info, with English and Japanese names. Also exports the Tabelog Hyakumeiten (百名店) Top 100 lists by category and year.",
    "version": "0.1",
    "x-build-id": "r2Do0OP9aKG5b7NAz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~tabelog-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-tabelog-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/yugenox~tabelog-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-tabelog-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/yugenox~tabelog-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-tabelog-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "restaurants",
              "hyakumeiten"
            ],
            "type": "string",
            "description": "\"Restaurants\" = Tabelog restaurant lists by prefecture, genre or any list URL. \"Hyakumeiten lists\" = the Tabelog Hyakumeiten (百名店) Top 100 shops per category and year.",
            "default": "restaurants"
          },
          "prefectures": {
            "title": "Prefectures",
            "type": "array",
            "description": "Japanese prefectures to list, in romaji (tokyo, osaka, kyoto, hokkaido …). Each gives up to 1,200 restaurants per genre (Tabelog shows 60 pages of 20); add genres to get more.",
            "items": {
              "type": "string",
              "enum": [
                "hokkaido",
                "aomori",
                "iwate",
                "miyagi",
                "akita",
                "yamagata",
                "fukushima",
                "ibaraki",
                "tochigi",
                "gunma",
                "saitama",
                "chiba",
                "tokyo",
                "kanagawa",
                "niigata",
                "toyama",
                "ishikawa",
                "fukui",
                "yamanashi",
                "nagano",
                "gifu",
                "shizuoka",
                "aichi",
                "mie",
                "shiga",
                "kyoto",
                "osaka",
                "hyogo",
                "nara",
                "wakayama",
                "tottori",
                "shimane",
                "okayama",
                "hiroshima",
                "yamaguchi",
                "tokushima",
                "kagawa",
                "ehime",
                "kochi",
                "fukuoka",
                "saga",
                "nagasaki",
                "kumamoto",
                "oita",
                "miyazaki",
                "kagoshima",
                "okinawa"
              ]
            },
            "default": [
              "tokyo"
            ]
          },
          "genres": {
            "title": "Genres (codes)",
            "type": "array",
            "description": "Optional Tabelog genre codes from the list URL, e.g. RC010201 = Sushi, MC = Ramen, RC21 = Izakaya, RC13 = Yakiniku, RC02 = Western, SC = Café / Bakery / Sweets, BC01 = Bar. Each prefecture is listed once per genre.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "popular",
              "rating"
            ],
            "type": "string",
            "description": "\"Popular\" is Tabelog's default order; \"Highest score\" lists the best-rated first (and lets the minimum score stop early).",
            "default": "popular"
          },
          "startUrls": {
            "title": "Tabelog URLs",
            "type": "array",
            "description": "Optional. Any Tabelog list page (area, station, genre, filters — English or Japanese URL), restaurant page, or award.tabelog.com/hyakumeiten/<list> page. Scraped in addition to the prefectures above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "minScore": {
            "title": "Minimum Tabelog score",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only save restaurants scored at least this (e.g. 3.5). 0 = no filter.",
            "default": 0
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Open each restaurant page for the Japanese name, full address, coordinates, phone, hours, holidays, seats, payment, website, reservation info and review-based budgets (charged per detail page).",
            "default": false
          },
          "hyakumeitenLists": {
            "title": "Hyakumeiten lists",
            "type": "array",
            "description": "Hyakumeiten mode: list slugs, or \"all\". Available: asia_ethnic_east, asia_ethnic_tokyo, asia_ethnic_west, bar, bread_east, bread_tokyo, bread_west, cafe_east, cafe_west, chinese_east, chinese_tokyo, chinese_west, creative_innovative, curry_east, curry_tokyo, curry_west, french_east, french_tokyo, french_west, gyoza, hamburger, ice_gelato, italian_east, italian_tokyo, italian_west, izakaya_east, izakaya_west, japanese_east, japanese_tokyo, japanese_west, kissaten, okonomiyaki, pizza, ramen_aichi, ramen_east, ramen_hokkaido, ramen_kanagawa, ramen_osaka, ramen_tokyo, ramen_west, shokudo, soba_east, soba_west, spanish, steak_east, steak_west, sukiyaki_shabushabu, sushi_east, sushi_tokyo, sushi_west, sweets_east, sweets_tokyo, sweets_west, tachinomi, tempura, tonkatsu, toriryori, udon_east, udon_kagawa, udon_west, unagi, wagashi_east, wagashi_tokyo, wagashi_west, yakiniku_east, yakiniku_tokyo, yakiniku_west, yakitori_east, yakitori_west, yoshoku_east, yoshoku_west.",
            "items": {
              "type": "string"
            },
            "default": [
              "ramen_tokyo"
            ]
          },
          "hyakumeitenYears": {
            "title": "Hyakumeiten years",
            "type": "array",
            "description": "Optional years (e.g. 2024, 2023). Empty = the latest list.",
            "items": {
              "type": "string"
            }
          },
          "maxRestaurants": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows in total.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy is the default and works for Tabelog.",
            "default": {
              "useApifyProxy": true
            }
          },
          "_noResidential": {
            "title": "Disable residential fallback (test)",
            "type": "boolean",
            "description": "Internal test switch: never use the residential fallback.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}