{
  "openapi": "3.0.1",
  "info": {
    "title": "Talabat Scraper | Menus Restaurants MENA + KSA",
    "description": "Scrape Talabat restaurants and full menus across UAE, Kuwait, KSA, Qatar, Bahrain, Egypt, Oman, Jordan, and Iraq. Area filters/sort/cuisine search, discover areas/cities/cuisines, chain filter, enrichMenus. Export Excel/CSV/JSON. Unofficial — not affiliated with Talabat or Delivery Hero.",
    "version": "0.1",
    "x-build-id": "S9TQ61LOHdW7dxlOC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~talabat-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~talabat-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~talabat-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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",
        "required": [
          "mode",
          "country"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "area",
              "restaurant",
              "cuisine",
              "discoverAreas",
              "discoverCities",
              "discoverCuisines",
              "chain",
              "city",
              "cuisinesHub",
              "vertical",
              "home",
              "startUrls"
            ],
            "type": "string",
            "description": "Scrape mode",
            "default": "area"
          },
          "country": {
            "title": "Country",
            "enum": [
              "uae",
              "kuwait",
              "ksa",
              "qatar",
              "bahrain",
              "egypt",
              "oman",
              "jordan",
              "iraq"
            ],
            "type": "string",
            "description": "Talabat country slug",
            "default": "uae"
          },
          "market": {
            "title": "Market (alias of country)",
            "type": "string",
            "description": "Alias of country"
          },
          "lang": {
            "title": "Language path",
            "type": "string",
            "description": "Optional ar path prefix"
          },
          "areaId": {
            "title": "Area ID",
            "type": "string",
            "description": "Numeric area id. Required for default area mode (Store Test / empty input).",
            "default": "1174"
          },
          "areaSlug": {
            "title": "Area slug",
            "type": "string",
            "description": "Area slug. Required for default area mode (Store Test / empty input).",
            "default": "al-barsha-1"
          },
          "branchId": {
            "title": "Branch ID",
            "type": "string",
            "description": "Branch id for restaurant mode"
          },
          "branchSlug": {
            "title": "Branch slug",
            "type": "string",
            "description": "Branch slug"
          },
          "restaurantId": {
            "title": "Restaurant ID",
            "type": "string",
            "description": "Brand restaurantId for chain mode"
          },
          "cuisineSlug": {
            "title": "Cuisine slug",
            "type": "string",
            "description": "e.g. burgers — with area for real vendors"
          },
          "citySlug": {
            "title": "City slug",
            "type": "string",
            "description": "For mode=city"
          },
          "chainName": {
            "title": "Chain name filter",
            "type": "string",
            "description": "Substring match for mode=chain"
          },
          "vertical": {
            "title": "Vertical hub",
            "enum": [
              "restaurants",
              "groceries",
              "pharmacies",
              "talabat-mart",
              "flowers",
              "donations"
            ],
            "type": "string",
            "description": "For mode=vertical",
            "default": "restaurants"
          },
          "filters": {
            "title": "Listing filters",
            "type": "array",
            "description": "e.g. free_delivery, top_rated, Offers",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort slug",
            "type": "string",
            "description": "rating | fastest_delivery | min_order | deliverycharges | a_z"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Listing ?q= search"
          },
          "groceryOnly": {
            "title": "Grocery vendors only",
            "type": "boolean",
            "description": "Filter listing rows by isGrocery/verticalType",
            "default": false
          },
          "restaurantUrl": {
            "title": "Restaurant URL",
            "type": "string",
            "description": "Full menu URL"
          },
          "includeMenuItems": {
            "title": "Include menu items",
            "type": "boolean",
            "description": "Include menu items",
            "default": true
          },
          "includeChoices": {
            "title": "Include hasChoices metadata",
            "type": "boolean",
            "description": "SSR flag only — option trees not in page HTML",
            "default": true
          },
          "includePromotions": {
            "title": "Include promotions",
            "type": "boolean",
            "description": "Emit promotion rows from menu state",
            "default": true
          },
          "includePaymentMethods": {
            "title": "Include payment methods",
            "type": "boolean",
            "description": "Emit payment method catalog row",
            "default": true
          },
          "enrichMenus": {
            "title": "Enrich listing with menus",
            "type": "boolean",
            "description": "After area/cuisine/chain list, fetch menus for up to maxEnrich restaurants",
            "default": true
          },
          "maxEnrich": {
            "title": "Max restaurants to enrich",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Max enrich count",
            "default": 5
          },
          "fetchAllPages": {
            "title": "Fetch all listing pages",
            "type": "boolean",
            "description": "Expand pages from totalVendors (capped by maxPages/maxResults)",
            "default": false
          },
          "maxPages": {
            "title": "Max listing pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Max pages for area listing",
            "default": 3
          },
          "page": {
            "title": "Listing page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Start from this listing page. Use page=2 for the verified pager surface.",
            "default": 1
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Free plan capped at 200. Store Test default is 1.",
            "default": 1
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "For mode=startUrls",
            "items": {
              "type": "string"
            }
          },
          "proxyCountry": {
            "title": "Proxy country override",
            "type": "string",
            "description": "Optional ISO country for worker proxy"
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Optional HTTPS Cloud Run override"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}