{
  "openapi": "3.0.1",
  "info": {
    "title": "Gurunavi Scraper ぐるなび: Japan Restaurants, Budgets & Access",
    "description": "Scrape Gurunavi (ぐるなび, gnavi.co.jp), Japan's major restaurant directory, by keyword, prefecture, cuisine, budget or feature. Get name, cuisine, lunch and dinner budgets, station access, phone, address, map coordinates, hours and photos. Filter, sort and monitor new listings. No login.",
    "version": "0.1",
    "x-build-id": "LzcFLf9pxWejZhejm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~gurunavi-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-gurunavi-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/getascraper~gurunavi-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-gurunavi-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/getascraper~gurunavi-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-gurunavi-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": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Dish, cuisine or restaurant names to search on Gurunavi, one per row (for example ramen, 焼肉, sushi). Each keyword runs its own search. Leave empty to browse a whole area or cuisine using the filters below.",
            "default": [
              "ramen"
            ],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Gurunavi search result pages or individual restaurant pages (r.gnavi.co.jp). Restaurant pages are collected with full detail fields. Use this to target an exact area, station or restaurant without rebuilding the filters.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "prefecture": {
            "title": "Prefecture",
            "enum": [
              "japan",
              "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": "Limit the search to one of Japan's 47 prefectures. Leave empty to search nationwide. Competing Gurunavi scrapers force you to paste raw area codes, this dropdown accepts plain prefecture names."
          },
          "cuisine": {
            "title": "Cuisine",
            "enum": [
              "izakaya",
              "japanese",
              "sushi",
              "yakiniku",
              "western",
              "buffet",
              "curry",
              "chinese",
              "continental",
              "hotpot",
              "ethnic",
              "ramen",
              "bar",
              "cafe",
              "entertainment",
              "casual",
              "others"
            ],
            "type": "string",
            "description": "Restrict results to one Gurunavi cuisine category, for example izakaya, sushi or ramen. Leave empty to include every cuisine."
          },
          "characteristic": {
            "title": "Restaurant feature",
            "enum": [
              "private-room",
              "all-you-can-eat",
              "all-you-can-drink",
              "takeout",
              "anniversary",
              "date",
              "girls-night",
              "kids-welcome",
              "pets-allowed",
              "solo-friendly",
              "parking",
              "open-24-hours",
              "smoking-allowed",
              "night-view",
              "birthday-perk"
            ],
            "type": "string",
            "description": "Keep only restaurants that have a specific Gurunavi feature, such as a private room or all-you-can-eat. This exposes more feature filters as a simple dropdown than competing Gurunavi scrapers do."
          },
          "minBudget": {
            "title": "Minimum budget (yen)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Only include restaurants whose average spend per person is at least this many Japanese yen."
          },
          "maxBudget": {
            "title": "Maximum budget (yen)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Only include restaurants whose average spend per person is at most this many Japanese yen."
          },
          "lunchBudget": {
            "title": "Match budget against lunch prices",
            "type": "boolean",
            "description": "Apply the budget filter to the lunch band instead of the dinner band. Useful for finding affordable daytime options, a filter competing Gurunavi scrapers do not offer.",
            "default": false
          },
          "onlineReservation": {
            "title": "Online reservation only",
            "type": "boolean",
            "description": "Keep only restaurants that accept an online reservation through Gurunavi.",
            "default": false
          },
          "withCoupon": {
            "title": "Has a coupon",
            "type": "boolean",
            "description": "Keep only restaurants that currently offer a Gurunavi coupon.",
            "default": false
          },
          "newlyOpened": {
            "title": "Newly opened only",
            "type": "boolean",
            "description": "Keep only restaurants marked as newly opened on Gurunavi.",
            "default": false
          },
          "openNow": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Keep only restaurants that Gurunavi shows as open at the moment the run starts.",
            "default": false
          },
          "sortResultsBy": {
            "title": "Sort results by",
            "enum": [
              "relevance",
              "budgetAsc",
              "budgetDesc"
            ],
            "type": "string",
            "description": "Order the collected restaurants before they are saved. Budget sorting is not offered by competing Gurunavi scrapers.",
            "default": "relevance"
          },
          "scrapeDetails": {
            "title": "Fetch full restaurant details",
            "type": "boolean",
            "description": "Open each restaurant page to add phone number, full address, map coordinates, opening hours, closed days, seats, payment and a bilingual Japanese and English description. Off is faster and cheaper; the search listing fields are always collected either way.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Give this search a name to turn on monitor mode. The Actor remembers which restaurants it saw under this name between runs and flags new, reopened, suspended and budget-changed restaurants. Leave empty for a one-off scrape."
          },
          "onlyChanges": {
            "title": "Only output changed restaurants",
            "type": "boolean",
            "description": "When monitor mode is on, save only restaurants that are new, reopened, suspended or have a changed budget since the previous run. Requires a monitor name.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum restaurants",
            "minimum": 1,
            "maximum": 6000,
            "type": "integer",
            "description": "Stop after collecting this many restaurants across all searches. Keep it modest for quick, low-cost runs and raise it when you need wider coverage.",
            "default": 20
          },
          "maxPagesPerSearch": {
            "title": "Maximum pages per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Cap how many result pages each search follows. Gurunavi shows 30 restaurants per page, so 10 pages reaches about 300 restaurants per search.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Gurunavi only serves visitors from Japanese IP addresses, so the Actor defaults to Apify Residential proxy in Japan. Keep this default unless you have your own Japan proxy.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}