{
  "openapi": "3.0.1",
  "info": {
    "title": "Tabelog Japan Restaurant Scraper",
    "description": "Scrape Tabelog (食べログ) restaurants by prefecture or all of Japan, keyword, search link or restaurant link: ratings, cuisine, budgets, station, awards, photos. Add address, phone, hours, coordinates and info rows, or reviews with category scores, spend and full text (Tabelog's English translation).",
    "version": "1.0",
    "x-build-id": "eCke8mqCir00SI1b7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/piquno~tabelog-japan-restaurant-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-piquno-tabelog-japan-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/piquno~tabelog-japan-restaurant-scraper/runs": {
      "post": {
        "operationId": "runs-sync-piquno-tabelog-japan-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/piquno~tabelog-japan-restaurant-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-piquno-tabelog-japan-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional. Paste Tabelog search result (listing) pages, for example https://tabelog.com/en/tokyo/rstLst/?SrtT=rt, including ones with filters already applied on the site, and/or restaurant pages, for example https://tabelog.com/en/tokyo/A1301/A130101/13300481/ (any page of a restaurant, such as its review list, counts as that restaurant). Each restaurant page gives one row, with details and reviews as set below, and counts towards Max Results. Links copied from Tabelog's Japanese site (tabelog.com/tokyo/...) are read on the English site: restaurant pages always, search pages only when they have no keyword or other search options (read from their first page); the others are skipped. Links that are skipped or refused are reported at the end: the first 3 are named in the run's status message, any others are counted there and named in the log. Overrides Area, Keyword and Sort.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "area": {
            "title": "Area (Prefecture)",
            "enum": [
              "tokyo",
              "osaka",
              "kyoto",
              "hokkaido",
              "fukuoka",
              "aichi",
              "kanagawa",
              "chiba",
              "saitama",
              "hyogo",
              "hiroshima",
              "miyagi",
              "niigata",
              "nagano",
              "shizuoka",
              "okinawa",
              "nara",
              "ishikawa",
              "kumamoto",
              "kagoshima",
              "nagasaki",
              "oita",
              "ehime",
              "okayama",
              "fukui",
              "tottori",
              "shimane",
              "saga",
              "kochi",
              "tokushima",
              "kagawa",
              "wakayama",
              "mie",
              "gifu",
              "toyama",
              "fukushima",
              "yamagata",
              "akita",
              "iwate",
              "aomori",
              "tochigi",
              "gunma",
              "ibaraki",
              "yamanashi",
              "shiga",
              "yamaguchi",
              "miyazaki",
              "all"
            ],
            "type": "string",
            "description": "Japanese prefecture to search, or All Japan to search the whole country (best with a keyword: one search still returns at most 1,200 restaurants). Ignored when Start URLs are given.",
            "default": "tokyo"
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Search keyword (cuisine type, restaurant name, etc.). Supports Japanese: e.g. ラーメン, 寿司, yakitori",
            "default": ""
          },
          "sort": {
            "title": "Sort By",
            "enum": [
              "highest_rated",
              "most_reviews",
              "most_reserved_travelers",
              "most_reserved_locals",
              "most_viewed"
            ],
            "type": "string",
            "description": "Which restaurants come first. One search returns at most 1,200 restaurants, so this also decides which 1,200 you get. Tabelog's English site no longer sorts by number of reviews, so Most Reviews now returns the Most Reserved (Travelers) order.",
            "default": "highest_rated"
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 1200,
            "type": "integer",
            "description": "Maximum number of restaurants, in total across all Start URLs. Review rows are not counted here: they come on top and are billed as rows too. Tabelog shows at most 1,200 restaurants per search, and a run returns at most 1,200; to get more, run several narrower searches (by area or keyword).",
            "default": 100
          },
          "includeDetails": {
            "title": "Include Detail Pages",
            "type": "boolean",
            "description": "Open each restaurant's own page for address, phone, opening hours, number of seats (when the restaurant lists it) and payment methods, plus coordinates, postal code, Japanese name, main photo, award history and the restaurant's information rows (average prices, service charge, private rooms, smoking, parking, drinks, website, remarks and more). Slower: about 3.4 s per restaurant instead of about 0.2 s, so 100 restaurants take about 6 minutes instead of about 25 seconds. For restaurant pages in Start URLs the page is open already, so details take no extra time.",
            "default": false
          },
          "includeReviews": {
            "title": "Include individual reviews",
            "type": "boolean",
            "description": "Also return individual reviews for each restaurant: reviewer, star rating, meal time, visit month, a preview of the review text (about the first 100 characters), review ID and link, and, when the reviewer gave them, the amount spent per person, the five category scores and photos. Each review is a separate row tagged recordType \"review\". Adds about 4-5 s per restaurant for every 20 reviews.",
            "default": false
          },
          "maxReviewsPerRestaurant": {
            "title": "Max reviews per restaurant",
            "minimum": 1,
            "maximum": 1200,
            "type": "integer",
            "description": "Most reviews returned per restaurant. Popular restaurants have hundreds or thousands, but Tabelog's English site shows at most 1,200 reviews per restaurant (60 pages of 20), so that is the highest useful value. Each 20 reviews adds one page (about 4-5 s) per restaurant.",
            "default": 20
          },
          "includeFullReviewText": {
            "title": "Include full review text",
            "type": "boolean",
            "description": "Only with individual reviews on. Opens each review's own page and adds the complete text in a new field, reviewTextFull (line breaks kept). reviewText stays the short preview. Much slower: about 3.2-4.6 s more per review, so 100 restaurants x 20 reviews take about 2-2.5 hours longer (raise the run timeout for runs like that). Does not add rows.",
            "default": false
          },
          "reviewMealTime": {
            "title": "Dinner or lunch reviews",
            "enum": [
              "all",
              "dinner",
              "lunch"
            ],
            "type": "string",
            "description": "Only with individual reviews on. All reviews, or only dinner or lunch reviews, using Tabelog's own Dinner reviews and Lunch reviews lists.",
            "default": "all"
          },
          "reviewOrder": {
            "title": "Review order",
            "enum": [
              "default",
              "newest_visit"
            ],
            "type": "string",
            "description": "Only with individual reviews on. Which reviews come first, and so which ones you get when a restaurant has more than Max reviews per restaurant. Tabelog's default order is the one earlier versions used. Newest visit first uses the site's own Sort by visit month; together with Visited since it also stops reading a restaurant's reviews as soon as it reaches older visits. Tabelog's English site cannot sort reviews by rating.",
            "default": "default"
          },
          "reviewVisitedSince": {
            "title": "Visited since (YYYY-MM)",
            "pattern": "^(\\d{4}-(0[1-9]|1[0-2]))?$",
            "type": "string",
            "description": "Optional, only with individual reviews on. Only reviews of visits in this month or later, for example 2025-06. Reviews that show no visit month (some older ones) are left out when this is set. Leave empty for all."
          },
          "minReviewRating": {
            "title": "Minimum review rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Optional, only with individual reviews on. Only reviews whose overall rating is at least this, for example 4 or 3.5. Unrated reviews are left out when this is set. Leave empty (or 0) for all."
          },
          "onlyReviewsWithPhotos": {
            "title": "Only reviews with photos",
            "type": "boolean",
            "description": "Only with individual reviews on. Only reviews that show at least one photo.",
            "default": false
          },
          "maxReviewPagesPerRestaurant": {
            "title": "Max review pages per restaurant (with filters)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Only used when Visited since, Minimum review rating or Only reviews with photos is set. Those filters can skip most reviews, so this caps how many review pages (20 reviews each, about 4-5 s) are read per restaurant. Reviews that do not match are never saved and never billed; the restaurant's own row is saved as usual.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave off. Turn on Apify Proxy only if the log or the run's status message shows blocked or empty pages.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}