{
  "openapi": "3.0.1",
  "info": {
    "title": "Tabelog Scraper",
    "description": "Scrape Tabelog restaurants and reviews in Japan: ratings, review counts, address, coordinates, phone, opening hours, prices, seats, awards and photos. Search by keyword, prefecture or category, or paste links. Export JSON, CSV, Excel.",
    "version": "1.0",
    "x-build-id": "tgpWJRf3DysqPk2Vt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~tabelog-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-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/parsebird~tabelog-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-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/parsebird~tabelog-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-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": {
          "searchKeyword": {
            "title": "Search keyword",
            "type": "string",
            "description": "Enter a dish, cuisine, restaurant name or place, in English or Japanese, e.g. `ramen`, `寿司`, `Ichiran`. Leave empty to list every restaurant in the area and category below."
          },
          "searchArea": {
            "title": "Prefecture",
            "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"
            ],
            "type": "string",
            "description": "Pick one of Japan's 47 prefectures. Leave empty to search all of Japan. For a smaller area (a district or station), paste its Tabelog link into Tabelog links instead."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Enter a Tabelog category slug, the part after `/rstLst/` in a Tabelog category link: `ramen`, `sushi`, `yakiniku`, `izakaya`, `cafe`, `sweets`, `italian`, `french`, `chinese`, `curry`, `tempura`, `soba`, `udon`, `yakitori`, `tonkatsu`, `seafood`, `japanese`, or a genre code such as `RC0107` (sukiyaki) or `BC01` (bars). See the full list on <a href='https://tabelog.com/en/cat_lst/' target='_blank'>Tabelog's category page</a>."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "standard",
              "ranking"
            ],
            "type": "string",
            "description": "Pick Tabelog's order. Ranking lists the best-rated restaurants first.",
            "default": "standard"
          },
          "startUrls": {
            "title": "Tabelog links",
            "type": "array",
            "description": "Paste Tabelog links: restaurant pages (`https://tabelog.com/en/tokyo/A1311/A131102/13003699/`), searches (`https://tabelog.com/en/tokyo/rstLst/?sw=ramen`), areas and stations (`https://tabelog.com/en/tokyo/A1301/A130101/`), categories (`https://tabelog.com/en/osaka/rstLst/yakiniku/`) or rankings (`https://tabelog.com/en/kyoto/rank/`). Japanese links such as `https://tabelog.com/tokyo/A1301/A130101/13001234/` work too. Each link runs next to the search above, so clear the search fields to scrape only these links.",
            "items": {
              "type": "string"
            }
          },
          "maxRestaurants": {
            "title": "Max restaurants per search or link",
            "minimum": 0,
            "type": "integer",
            "description": "Set the most restaurants to save from each search or list link. 0 saves everything Tabelog shows, which is at most 1,200 per list unless you turn on the option below. Restaurant links are always saved.",
            "default": 20
          },
          "splitLargeSearches": {
            "title": "Get every result of large searches",
            "type": "boolean",
            "description": "Tabelog shows at most 1,200 restaurants per list. Turn this on to split a larger search into areas and genres and return all of its restaurants without duplicates (up to the maximum above).",
            "default": false
          },
          "includeDetails": {
            "title": "Scrape restaurant details",
            "type": "boolean",
            "description": "Open each restaurant page for the address, coordinates, phone, opening hours, seats, payment methods, facilities, awards and photos. Turn off to save only the search list fields, which is about 10 times faster at the same price.",
            "default": true
          },
          "includeReviews": {
            "title": "Scrape reviews",
            "type": "boolean",
            "description": "Save the reviews of each restaurant as extra rows (type `review`), with ratings, visit month, meal, spend per person, title, text and photos.",
            "default": false
          },
          "maxReviewsPerRestaurant": {
            "title": "Max reviews per restaurant",
            "minimum": 0,
            "type": "integer",
            "description": "Set the most reviews to save for each restaurant. 0 saves every review.",
            "default": 20
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "default",
              "newest"
            ],
            "type": "string",
            "description": "Pick Tabelog's default review order or newest visits first.",
            "default": "default"
          },
          "reviewMealType": {
            "title": "Meal",
            "enum": [
              "all",
              "lunch",
              "dinner"
            ],
            "type": "string",
            "description": "Keep only reviews of lunch or dinner visits.",
            "default": "all"
          },
          "fullReviewText": {
            "title": "Full review text",
            "type": "boolean",
            "description": "The review list shows the first ~110 characters of each review. Turn this on to open every long review for its full text (slower).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) works for Tabelog's English pages and is the default.",
            "default": {
              "useApifyProxy": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}