{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Restaurant Budgets & Ratings by Area — Tabelog",
    "description": "Pick a Tabelog area like Ginza and get one summary of the restaurants listed there. Returns how many restaurants are listed, then dinner and lunch budget bands, score median and range, top genres and stations from 60 sampled across the area. $0.02 per area, no results = no charge. Unofficial.",
    "version": "0.1",
    "x-build-id": "0h7K970FD1GtUg6mz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpmarketdata~tabelog-restaurant-market-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpmarketdata-tabelog-restaurant-market-checker",
        "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/jpmarketdata~tabelog-restaurant-market-checker/runs": {
      "post": {
        "operationId": "runs-sync-jpmarketdata-tabelog-restaurant-market-checker",
        "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/jpmarketdata~tabelog-restaurant-market-checker/run-sync": {
      "post": {
        "operationId": "run-sync-jpmarketdata-tabelog-restaurant-market-checker",
        "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",
        "required": [
          "areas"
        ],
        "properties": {
          "areas": {
            "title": "Tabelog areas",
            "maxItems": 10,
            "type": "array",
            "description": "Tabelog area paths with all three parts, e.g. `tokyo/A1301/A130101` (Ginza), or full area URLs. Each valid area with results costs $0.02; unknown or mismatched areas fail without charge. Up to 10 areas; requests are 2 seconds apart and time limits can truncate pages. Maximum cost per run defaults to $3.00; raise it in run options or split runs.",
            "default": [
              "tokyo/A1301/A130101"
            ],
            "items": {
              "type": "string"
            }
          },
          "genre": {
            "title": "Genre slug (optional)",
            "type": "string",
            "description": "Restrict to a Tabelog genre slug copied from its URL, e.g. `sushi`, `ramen`, `izakaya`, `yakitori` or `seafood`. Empty includes all genres. Tabelog may silently ignore an unknown slug, so the Actor checks the filters shown on the page and fails that area without a charge if the requested genre was not applied."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "rating",
              "most-viewed",
              "most-reserved",
              "standard"
            ],
            "type": "string",
            "description": "Choose the site's list order. `rating` is the default, deterministic highest-score order. `most-viewed` and `most-reserved` use visitor rankings. `standard` uses Tabelog's ad/PR-weighted editorial order, which differs across language editions. Newest-first is unsupported because these pages ignore that setting.",
            "default": "rating"
          },
          "pagesPerArea": {
            "title": "List pages per area",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "List pages sampled across the result set, 20 restaurants per page; 3 pages cover up to 60 restaurants. More pages broaden the sample and add requests 2 seconds apart. Tabelog exposes at most 60 pages/1,200 restaurants even if its hit count is higher. At the time limit, remaining pages are skipped and `truncatedForTimeLimit` and actual page counts are reported.",
            "default": 3
          },
          "includeIndividualItems": {
            "title": "Include individual restaurants",
            "type": "boolean",
            "description": "Off by default: a run costs a flat $0.02 per area summary. Enable to also get one record per sampled restaurant (name, URL, Tabelog ID, score, review count, nearest station, distance, genres, dinner and lunch budget band) at +$0.002 per restaurant. Business facts only — no review text and no reviewer names are ever collected.",
            "default": false
          },
          "fetchDetails": {
            "title": "Restaurant details",
            "type": "boolean",
            "description": "Off by default. Enable to also read the detail page of the first N sampled restaurants and add address, postal code, phone, latitude/longitude, price range, cuisine, seats, opening hours, reservation policy and transport — the fields a lead list needs. +$0.002 per detail record, and one extra request (2 s) per restaurant.",
            "default": false
          },
          "maxDetails": {
            "title": "Max detail pages per area",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum sampled restaurants whose details are read per area when Restaurant details is enabled. Each adds a request 2 seconds apart and costs $0.002 per returned detail row. At the time limit, remaining pages are skipped and the area is marked `truncatedForTimeLimit`.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}