{
  "openapi": "3.0.1",
  "info": {
    "title": "Talabat Scraper - Restaurants, Menus, Prices & Leads",
    "description": "Scrape Talabat across UAE, Saudi, Kuwait, Qatar, Bahrain, Oman, Jordan & Egypt: restaurants, ratings, delivery fees, ETA, geo, full menus with item prices & discounts, customer reviews and merchant B2B leads. Monitoring mode for only-new data. No API key, no browser.",
    "version": "0.1",
    "x-build-id": "vTJmopJZprFm3DVOf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~talabat-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-talabat-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/scrapesage~talabat-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-talabat-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/scrapesage~talabat-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-talabat-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": {
          "country": {
            "title": "Country / market",
            "enum": [
              "uae",
              "ksa",
              "kuwait",
              "qatar",
              "bahrain",
              "oman",
              "jordan",
              "egypt"
            ],
            "type": "string",
            "description": "Talabat market to scrape. Talabat is the Middle East & North Africa food-delivery leader (Delivery Hero). Search, cities and area inputs all apply to this country.",
            "default": "uae"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search Talabat for matching restaurants/cuisines in the selected country, e.g. `burger`, `pizza`, `sushi`, `shawarma`, `breakfast`, `KFC`, `healthy`. No location needed — search covers the whole country. Each match is enriched with full restaurant data (and menu/reviews if enabled).",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (optional)",
            "type": "array",
            "description": "City names to discover restaurants by delivery area, e.g. `Dubai`, `Abu Dhabi`, `Riyadh`, `Jeddah`, `Doha`, `Kuwait City`, `Manama`, `Muscat`, `Amman`, `Cairo`. Each city is resolved to its Talabat delivery area(s); every restaurant delivering there is returned (richest data — ratings + delivery economics + geo). English names work best.",
            "items": {
              "type": "string"
            }
          },
          "areaSlugs": {
            "title": "Area slugs (optional)",
            "type": "array",
            "description": "Precise Talabat delivery-area slugs in the selected country, e.g. `dubai-marina`, `al-badaa`, `business-bay`, `jumeirah`. Returns every restaurant delivering to that area. Find slugs in any Talabat area URL: talabat.com/uae/restaurants/{areaId}/{slug}.",
            "items": {
              "type": "string"
            }
          },
          "areaIds": {
            "title": "Area IDs (optional)",
            "type": "array",
            "description": "Numeric Talabat area IDs (the number in talabat.com/{country}/restaurants/{areaId}/{slug}). Use when you already know the exact delivery area.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (optional)",
            "type": "array",
            "description": "Talabat URLs, auto-routed: an area URL (`/uae/restaurants/1172/al-badaa`) browses that area; a restaurant URL (`/uae/<restaurant-slug>`) scrapes that restaurant; a search URL (`/uae/restaurants?searchTerm=pizza`) runs that search.",
            "items": {
              "type": "string"
            }
          },
          "restaurantSlugs": {
            "title": "Restaurant slugs (optional)",
            "type": "array",
            "description": "Direct restaurant slugs in the selected country, e.g. `india-palace-restaurant`. Scrapes each restaurant (with menu/reviews if enabled).",
            "items": {
              "type": "string"
            }
          },
          "branchIds": {
            "title": "Branch IDs (optional)",
            "type": "array",
            "description": "Direct Talabat branch IDs. Fetches the menu and reviews for each branch without discovery (fastest, lowest-cost path when you already have IDs).",
            "items": {
              "type": "string"
            }
          },
          "maxRestaurants": {
            "title": "Max restaurants",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of restaurants to collect for this run (across all discovery sources). A single city/area can list thousands; the default keeps runs fast and cheap.",
            "default": 60
          },
          "includeMenu": {
            "title": "Include full menu (items + prices)",
            "type": "boolean",
            "description": "For each restaurant, extract its complete menu: every item with name (EN + Arabic), description, price, old price & discount %, highlights and images, grouped by menu section. The headline feature for price monitoring and menu analysis. One extra request per restaurant.",
            "default": true
          },
          "includeItemDetails": {
            "title": "Include item descriptions & images",
            "type": "boolean",
            "description": "When menus are included, also keep each item's description and image URL. Turn off for a leaner price-only menu.",
            "default": true
          },
          "includeReviews": {
            "title": "Include customer reviews",
            "type": "boolean",
            "description": "Emit recent customer reviews for each restaurant as separate records (reviewer name, rating, text, date). Great for reputation monitoring.",
            "default": false
          },
          "maxReviewsPerRestaurant": {
            "title": "Max reviews per restaurant",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on reviews collected per restaurant when reviews are included.",
            "default": 20
          },
          "includeMerchantLeads": {
            "title": "Output merchant B2B leads",
            "type": "boolean",
            "description": "Also output one deduplicated merchant lead record per restaurant (business name, city/area, geo, cuisines, rating, popularity, delivery economics, vertical and a 0–100 lead score) — ideal for food-tech, POS, delivery-SaaS, ghost-kitchen and supplier prospecting.",
            "default": true
          },
          "minRating": {
            "title": "Minimum rating (0–5)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only keep restaurants with a Talabat rating at or above this value. 0 = keep all.",
            "default": 0
          },
          "vendorType": {
            "title": "Vendor type",
            "enum": [
              "all",
              "restaurant",
              "grocery"
            ],
            "type": "string",
            "description": "Restrict to restaurants or to grocery/retail stores (Talabat Mart, pharmacies, etc.). `All` returns everything.",
            "default": "all"
          },
          "language": {
            "title": "Content language",
            "enum": [
              "en",
              "ar"
            ],
            "type": "string",
            "description": "Two-letter language code for content (menu item names, etc.): `en` (English) or `ar` (Arabic). Defaults to English.",
            "default": "en"
          },
          "monitorMode": {
            "title": "Monitoring mode — only new / changed",
            "type": "boolean",
            "description": "Remember restaurants & reviews seen in previous runs (in a named key-value store) and emit only NEW ones and restaurants whose rating, delivery fee, minimum order, status or menu price range changed (tagged with `changeType`). Perfect for tracking a city/cuisine on a schedule without re-paying for unchanged rows. Works alongside Apify Schedules — schedule the run, this controls what's emitted.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store holding the 'already seen' ids/fingerprints for monitoring mode. Use a different name per tracked feed to keep histories separate. Lowercase letters, digits and hyphens only.",
            "default": "talabat-monitor"
          },
          "maxAreaPages": {
            "title": "Max pages per area",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many result pages (15 restaurants each) to paginate per delivery area before moving on. Raise to exhaust a large area.",
            "default": 3
          },
          "maxAreasPerCity": {
            "title": "Max areas per city",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "When discovering by city, how many of that city's delivery areas to crawl (each area returns the restaurants delivering there). One central area usually covers most of a city.",
            "default": 2
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of menu/review/detail requests fetched in parallel.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Apify Proxy is recommended. The default datacenter proxy works with Talabat; switch to RESIDENTIAL (country AE/SA/etc.) only if you see rate-limiting/blocks on very large runs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "urlsFromFile": {
            "title": "Import URLs from a file",
            "type": "string",
            "description": "Paste a list of URLs (one per line), OR one link to a .txt/.csv file, Google Sheet or Google Drive file containing them. Lets you import many Start URLs at once instead of typing each. Google Sheet/Drive share links are handled automatically."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}