{
  "openapi": "3.0.1",
  "info": {
    "title": "TheFork Scraper – Restaurants, Menus, Reviews & Offers",
    "description": "Scrape every restaurant in a city from TheFork / LaFourchette / ElTenedor: menus with prices, ratings, multilingual reviews, discounts and a 90-day offer calendar. 11 countries, search by city name, no URLs needed.",
    "version": "0.0",
    "x-build-id": "Fxpnd9FtnT0kXEKwH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reviewly~the-fork-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reviewly-the-fork-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/reviewly~the-fork-scraper/runs": {
      "post": {
        "operationId": "runs-sync-reviewly-the-fork-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/reviewly~the-fork-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-reviewly-the-fork-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": "TheFork restaurant pages (any country site, e.g. thefork.com/restaurant/…-r814368 or thefork.it/ristorante/…) and/or listing pages on www.thefork.com (/restaurants/rome-c461789, /search?…). Listings are expanded into their restaurants.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchLocations": {
            "title": "Search locations",
            "type": "array",
            "description": "Free-text places to search, the way the site's \"Where\" box works (e.g. \"Rome\", \"Paris 11e\", \"Lisbon, Portugal\"). Each is resolved to a listing page and expanded into its restaurants.",
            "items": {
              "type": "string"
            }
          },
          "maxRestaurantsPerSearch": {
            "title": "Max restaurants per search",
            "minimum": 0,
            "type": "integer",
            "description": "How many restaurants to take from each listing page or search location. 0 = all.",
            "default": 20
          },
          "searchResultsOnly": {
            "title": "Search results only (fast)",
            "type": "boolean",
            "description": "Save the listing summary (name, rating, price, offers, address, coordinates) for each search result instead of opening every restaurant. Much faster and cheaper.",
            "default": false
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Scrape written reviews for each restaurant.",
            "default": true
          },
          "maxReviewsPerRestaurant": {
            "title": "Max reviews per restaurant",
            "minimum": 0,
            "type": "integer",
            "description": "0 = all reviews.",
            "default": 100
          },
          "reviewsLanguage": {
            "title": "Reviews language",
            "type": "string",
            "description": "\"all\" for every language, or an ISO code such as \"en\", \"fr\", \"it\". The record's reviewLanguages field shows what each restaurant has.",
            "default": "all"
          },
          "reviewsSortOrder": {
            "title": "Reviews order",
            "enum": [
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order reviews by meal date.",
            "default": "newest"
          },
          "reviewsSince": {
            "title": "Only reviews since",
            "type": "string",
            "description": "Skip reviews for meals before this date (YYYY-MM-DD). With newest-first order the scraper stops paging once it passes this date, which makes incremental runs cheap."
          },
          "includeMenu": {
            "title": "Include menu",
            "type": "boolean",
            "description": "À-la-carte menu with sections, dishes, descriptions and prices, plus set menus.",
            "default": true
          },
          "includeBookingInfo": {
            "title": "Include booking info",
            "type": "boolean",
            "description": "Bookable time windows, the ~90-day availability calendar with each day's best offer, and today's reservation count.",
            "default": true
          },
          "availabilityDays": {
            "title": "Days of bookable time windows",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "How many days ahead to read bookable time windows for.",
            "default": 7
          },
          "maxCustomerPhotos": {
            "title": "Max diner photos",
            "minimum": 0,
            "type": "integer",
            "description": "Diner-uploaded photos to collect per restaurant. Restaurant photos are always included.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "TheFork is protected by DataDome; residential proxies are strongly recommended. Leave the country empty and the actor picks it per restaurant: from the country site in the URL (thefork.it → Italy), the searched location, or the listing's results. On Apify, IPs with no country got a hard captcha, while IPs in the restaurant's own country cleared on the first try. Choosing a country here pins every request to it.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}