{
  "openapi": "3.0.1",
  "info": {
    "title": "Tabelog Scraper — Japan Restaurants, Ratings & Addresses",
    "description": "Scrape Tabelog (食べログ), Japan's biggest restaurant guide. Search any prefecture by area, genre or keyword, in English or Japanese. Get rating, review count, price bands, genres, station and awards, plus address, phone, opening hours and coordinates.",
    "version": "1.0",
    "x-build-id": "tpJ9LjQoQjhy3gzTp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~tabelog-restaurant-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-tabelog-restaurant-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/sian.agency~tabelog-restaurant-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-tabelog-restaurant-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/sian.agency~tabelog-restaurant-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-tabelog-restaurant-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": {
          "operation": {
            "title": "🎯 What do you want to scrape?",
            "enum": [
              "search",
              "lookup"
            ],
            "type": "string",
            "description": "Search restaurants reads Tabelog's restaurant lists for a prefecture, area, genre or keyword, in rating order or Tabelog's own order. Look up restaurants opens the restaurant pages you already have (URL or id) and returns the full record. With details on, each search row also gets its restaurant page: Japanese name, address, phone, hours and coordinates.",
            "default": "search"
          },
          "areas": {
            "title": "📍 Areas",
            "type": "array",
            "description": "Where to search. A prefecture in English or Japanese (Tokyo, 東京, 大阪府, Hokkaido), a Tabelog area code (A1301, or tokyo/A1301/A130101 for Ginza) or a Tabelog list page URL. Add several to search each one. Leave empty for all of Japan. A value that cannot be matched stops the run before any restaurant is charged.",
            "items": {
              "type": "string"
            }
          },
          "genre": {
            "title": "🍱 Genre",
            "enum": [
              "any",
              "ramen",
              "sushi",
              "izakaya",
              "yakiniku",
              "yakitori",
              "washoku",
              "japanese",
              "tempura",
              "tonkatsu",
              "soba",
              "udon",
              "unagi",
              "syabusyabu",
              "nabe",
              "motsu",
              "okonomiyaki",
              "monjya",
              "kushiage",
              "horumon",
              "seafood",
              "teishoku",
              "yoshoku",
              "curry",
              "hamburgersteak",
              "steak",
              "hamburger",
              "french",
              "italian",
              "pasta",
              "pizza",
              "bistro",
              "spain",
              "chinese",
              "gyouza",
              "korea",
              "thai",
              "viking",
              "cafe",
              "sweets",
              "cake",
              "pan",
              "bar",
              "ryokan"
            ],
            "type": "string",
            "description": "Only restaurants in this Tabelog genre. For a genre that is not in the list, type it into Keyword instead (in English or Japanese, for example 焼き鳥 or vegan).",
            "default": "any"
          },
          "keyword": {
            "title": "🔤 Keyword",
            "type": "string",
            "description": "Optional. Matches restaurant names and dishes, in English or Japanese, for example Ichiran, 一蘭, ramen or ラーメン."
          },
          "searchUrls": {
            "title": "🔗 Tabelog list page URLs",
            "type": "array",
            "description": "Optional. Paste a Tabelog restaurant list page in Japanese or English, for example https://tabelog.com/tokyo/A1301/A130101/rstLst/ramen/ . Its area, genre and keyword are kept. Sort order below applies unless the address sets its own.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "↕️ Sort order",
            "enum": [
              "rating",
              "standard",
              "views",
              "reservedLocals"
            ],
            "type": "string",
            "description": "The order restaurants come back in. With a results limit, this decides which restaurants you get.",
            "default": "rating"
          },
          "maxResults": {
            "title": "🔢 Restaurants per search",
            "minimum": 1,
            "maximum": 1200,
            "type": "integer",
            "description": "The most restaurants to collect from each area or list page. One page holds 20; Tabelog shows at most 1,200 per search. Free plans are capped at 25 restaurants a run.",
            "default": 50
          },
          "includeDetails": {
            "title": "📋 Include restaurant details",
            "type": "boolean",
            "description": "Open each restaurant's page to add the Japanese name, address, postcode, phone, opening hours, closed days, seats, payment methods, smoking, parking and map coordinates. Billed as a small add-on per restaurant. Turn off for a faster, cheaper list.",
            "default": true
          },
          "restaurants": {
            "title": "🔗 Restaurant URLs or ids",
            "type": "array",
            "description": "Tabelog restaurant pages in Japanese or English (https://tabelog.com/tokyo/A1302/A130204/13018162/) or bare restaurant ids (13018162). Used by Look up restaurants. Free plans get up to 25 restaurants a run; paid plans have no limit.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}