{
  "openapi": "3.0.1",
  "info": {
    "title": "Talabat Scraper - Restaurants, Menus and Merchant Data",
    "description": "Extract Talabat restaurants, public merchant profiles, menu items and location directories across nine markets, including UAE, Kuwait and Saudi Arabia. Pay per delivered row plus a start fee.",
    "version": "0.2",
    "x-build-id": "n56aowAOhQ4ZhGzaf"
  },
  "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",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "catalog",
              "merchant",
              "sitemap",
              "area",
              "restaurant",
              "cuisine",
              "discoverAreas",
              "discoverCities",
              "discoverCuisines",
              "chain",
              "city",
              "cuisinesHub",
              "vertical",
              "home",
              "startUrls",
              "search"
            ],
            "type": "string",
            "description": "Leave on Auto and fill a target field to select its mode, or choose a mode explicitly. Empty input runs a billed example of up to 3 rows; use Merchant mode for public brand URLs and Restaurant mode for branch menus.",
            "default": "auto"
          },
          "country": {
            "title": "Country",
            "enum": [
              "uae",
              "kuwait",
              "ksa",
              "qatar",
              "bahrain",
              "egypt",
              "oman",
              "jordan",
              "iraq"
            ],
            "type": "string",
            "description": "Choose the Talabat country path. Use a country that matches all URLs in the run.",
            "default": "uae"
          },
          "areaId": {
            "title": "Area ID",
            "type": "string",
            "description": "Delivery area identifier, such as 1174 for Al Barsha 1 in Dubai. Supply the matching areaSlug for local listings."
          },
          "areaSlug": {
            "title": "Area slug",
            "type": "string",
            "description": "Area slug that goes with the area id (for example al-barsha-1)."
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Search term for restaurants in a delivery area. Use areaId and areaSlug to choose the location."
          },
          "restaurantUrl": {
            "title": "Restaurant URL",
            "pattern": "^https?://([A-Za-z0-9-]+\\.)*talabat\\.com(/.*)?$",
            "type": "string",
            "description": "Full menu URL for restaurant mode, or /country/slug brand URL for merchant mode"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Talabat links: area listings (/uae/restaurants/1174/al-barsha-1), restaurant menus, cuisine, city or brand pages. One country per run. Each URL gets its own maxResults row allowance. Leave empty to use the verified App API area example.",
            "items": {
              "type": "string"
            }
          },
          "cuisineSlug": {
            "title": "Cuisine slug",
            "type": "string",
            "description": "Cuisine path segment, such as pizza. Include areaId and areaSlug to request restaurants in that area."
          },
          "citySlug": {
            "title": "City slug",
            "type": "string",
            "description": "City path segment for city mode, such as dubai. City pages may return discovery links rather than restaurant rows."
          },
          "chainName": {
            "title": "Chain name filter",
            "type": "string",
            "description": "Restaurant name filter for chain mode. Matches names containing this text within the selected area."
          },
          "restaurantId": {
            "title": "Restaurant ID",
            "type": "string",
            "description": "Brand restaurant identifier for chain mode. This is different from a delivery branch ID."
          },
          "branchId": {
            "title": "Branch ID",
            "type": "string",
            "description": "Delivery branch identifier for restaurant mode. Alternatively, provide its full restaurantUrl."
          },
          "branchSlug": {
            "title": "Branch slug",
            "type": "string",
            "description": "Branch path segment used with branchId to form a restaurant URL."
          },
          "merchantSlug": {
            "title": "Merchant slug",
            "type": "string",
            "description": "Public merchant path segment for merchant mode, such as v-garden. Alternatively, supply a public brand restaurantUrl."
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most Dataset rows for each start URL or selected target, across every enabled row type. Default 70; larger numbers are collected in parts of 70. The whole run stops at your maximum total charge. Free plan capped at 200 rows/run.",
            "default": 70
          },
          "enrichDetails": {
            "title": "Enrich public merchant details",
            "type": "boolean",
            "description": "For catalog/sitemap/public startUrls: replace up to maxEnrich rows with brand profiles, not menus.",
            "default": false
          },
          "market": {
            "title": "Market (alias of country)",
            "type": "string",
            "description": "Alternative country field for saved inputs. Prefer country and keep it consistent with all URLs."
          },
          "lang": {
            "title": "Language path",
            "type": "string",
            "description": "Use en or ar for the requested language where available. This does not translate search terms."
          },
          "vertical": {
            "title": "Vertical hub",
            "enum": [
              "restaurants",
              "groceries",
              "pharmacies",
              "talabat-mart",
              "flowers",
              "donations"
            ],
            "type": "string",
            "description": "Category for vertical mode. Availability and row types vary by category and country.",
            "default": "restaurants"
          },
          "filters": {
            "title": "Listing filters",
            "type": "array",
            "description": "Listing filters such as free_delivery, top_rated or Offers. Availability depends on the selected area.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort slug",
            "type": "string",
            "description": "Listing sort value, such as rating, fastest_delivery, min_order, deliverycharges or a_z."
          },
          "groceryOnly": {
            "title": "Grocery vendors only",
            "type": "boolean",
            "description": "Keep grocery vendors in listing results when the source identifies them as grocery businesses.",
            "default": false
          },
          "includeMenuItems": {
            "title": "Include menu items",
            "type": "boolean",
            "description": "Add menu products as separate menuItem rows when available. These rows share maxResults with restaurants and all other row types.",
            "default": false
          },
          "includeChoices": {
            "title": "Include choices/modifiers",
            "type": "boolean",
            "description": "Include available menu choices when maxChoicesPerRestaurant is greater than zero. Choices are disabled by the default zero cap.",
            "default": true
          },
          "includePromotions": {
            "title": "Include promotions",
            "type": "boolean",
            "description": "Add available promotions as separate billed rows. Off by default; these rows share maxResults.",
            "default": false
          },
          "includePaymentMethods": {
            "title": "Include payment methods",
            "type": "boolean",
            "description": "Add available payment options as separate billed rows. Off by default; these rows share maxResults.",
            "default": false
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Add available restaurant reviews as separate billed rows. Off by default; these rows share maxResults.",
            "default": false
          },
          "maxReviewsPerRestaurant": {
            "title": "Max reviews per restaurant",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum review rows per restaurant, within the shared maxResults allowance.",
            "default": 20
          },
          "maxChoicesPerRestaurant": {
            "title": "Max choices fetches per restaurant",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum menu products per restaurant for which choices are requested. Zero disables choice collection.",
            "default": 0
          },
          "fetchChannel": {
            "title": "Collection compatibility setting",
            "enum": [
              "auto",
              "app_api",
              "ssr"
            ],
            "type": "string",
            "description": "Leave on auto for normal use. This compatibility setting is intended for developer testing.",
            "default": "auto"
          },
          "menuFetch": {
            "title": "Menu compatibility setting",
            "enum": [
              "app_api",
              "ssr",
              "auto"
            ],
            "type": "string",
            "description": "Leave at the default for normal use. This compatibility setting is intended for developer testing.",
            "default": "app_api"
          },
          "enrichMenus": {
            "title": "Enrich listing with menus",
            "type": "boolean",
            "description": "Request enabled menu or other detail rows for up to maxEnrich restaurants in supported listing modes. Off by default; additional rows are billed separately.",
            "default": false
          },
          "maxEnrich": {
            "title": "Max restaurants to enrich",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum restaurants eligible for detail, menu or review enrichment. Each enabled row type still shares maxResults.",
            "default": 5
          },
          "maxMenuItemsPerRestaurant": {
            "title": "Max menu items per restaurant",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Per-parent cap for menuItem rows. Menu items share the current input's maxResults allowance.",
            "default": 20
          },
          "fetchAllPages": {
            "title": "Fetch all listing pages",
            "type": "boolean",
            "description": "Expand listing pagination where supported. maxPages and maxResults still apply.",
            "default": false
          },
          "maxPages": {
            "title": "Max listing pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum listing pages to read; for sitemap mode, this counts XML documents including the index. Detail enrichment has a separate maxEnrich cap.",
            "default": 3
          },
          "page": {
            "title": "Listing page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "First listing page to request, starting at 1. Pagination support depends on the selected mode.",
            "default": 1
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Paste RUN_SUMMARY.nextCursor from an earlier run that stopped at its time limit to continue with the same target and settings. The site's own continuation object is pasted as JSON text (for example {\"version\":1,...}). Usually leave empty."
          },
          "proxyCountry": {
            "title": "Developer country setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          },
          "workerBaseUrl": {
            "title": "Developer endpoint setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}