{
  "openapi": "3.0.1",
  "info": {
    "title": "TableCheck Restaurants Scraper — Japan & Asia Dining Data",
    "description": "Scrape TableCheck restaurants in Japan, Singapore, Hong Kong, Thailand and more: name, address, map coordinates, phone, cuisines, lunch and dinner budgets, nearest stations, photos and set courses with prices. Filter the whole directory by country, city, cuisine or keyword. No login.",
    "version": "0.1",
    "x-build-id": "Oa9owNXrD3fsfutgE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~tablecheck-restaurants-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-tablecheck-restaurants-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~tablecheck-restaurants-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-tablecheck-restaurants-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~tablecheck-restaurants-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-tablecheck-restaurants-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": {
          "startUrls": {
            "title": "🔗 TableCheck URLs",
            "type": "array",
            "description": "Restaurant pages (https://www.tablecheck.com/en/<restaurant>, or its /shops/<restaurant>/reserve booking page) and/or TableCheck listing pages such as https://www.tablecheck.com/en/landing/buffet-tokyo, /en/promo/… or /en/japan. Restaurant slugs alone (e.g. \"thegrill-toranomon\") work too. Leave empty to search the whole TableCheck directory with the filters below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max restaurants",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of restaurants saved in this run. 0 = everything (the whole directory is about 11,000 restaurants).",
            "default": 50
          },
          "countries": {
            "title": "🌏 Countries",
            "type": "array",
            "description": "Only restaurants in these countries, as two-letter codes: JP (Japan), SG (Singapore), HK (Hong Kong), TH (Thailand), TW (Taiwan), KR (South Korea), MY (Malaysia), ID, PH, VN, AU, US, GB… Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "📍 Cities / areas",
            "type": "array",
            "description": "Only restaurants whose address or nearest station mentions one of these, e.g. \"Tokyo\", \"Shibuya\", \"Ginza\", \"Osaka\", \"Kyoto\", \"Singapore\", \"Bangkok\". English or local script. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "cuisines": {
            "title": "🍣 Cuisines",
            "type": "array",
            "description": "Only these cuisines, by TableCheck key or name, e.g. \"sushi\", \"ramen\", \"yakiniku\", \"kaiseki\", \"teppanyaki\", \"tempura\", \"french\", \"italian\", \"steak\", \"chinese\", \"buffet\", \"bar\". Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "🔎 Keywords",
            "type": "array",
            "description": "Only restaurants whose name, description, cuisine or tags contain one of these words, e.g. \"wagyu\", \"omakase\", \"hotel\", \"Hilton\".",
            "items": {
              "type": "string"
            }
          },
          "maxRestaurantsToCheck": {
            "title": "Max restaurants to check",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "When the filters run on the whole directory, stop after reading this many restaurant pages (each non-matching page is a small charge, see Pricing). 0 = no limit (the whole directory, about 11,000 pages). Not used for pasted URLs.",
            "default": 1000
          },
          "crawlDirectory": {
            "title": "Also search the whole directory",
            "type": "boolean",
            "description": "With URLs above, also walk the whole TableCheck directory (it is walked automatically when no URLs are given).",
            "default": false
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "th",
              "id",
              "ms",
              "vi",
              "de",
              "es",
              "fr",
              "it",
              "pt",
              "nl",
              "ru",
              "tr",
              "ar",
              "he",
              "hi",
              "tl",
              "lo",
              "km"
            ],
            "type": "string",
            "description": "Language of names, descriptions and course texts (when the restaurant provides it; otherwise English, then its own language).",
            "default": "en"
          },
          "includeCourses": {
            "title": "Include courses",
            "type": "boolean",
            "description": "Add the restaurant's bookable set courses and plans (name, description, price, meals, days, hours, party size). No extra requests.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Restaurant pages read at the same time (request starts stay at most 4 per second).",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and comes with every Apify plan. If TableCheck refuses datacenter IPs for a while, the run switches to residential proxies when your account has them.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}