{
  "openapi": "3.0.1",
  "info": {
    "title": "Foodpanda Restaurant & Menu Scraper - 10 Countries",
    "description": "Scrape foodpanda in 10 countries (Pakistan, Bangladesh, Taiwan, Malaysia, Philippines, Singapore, Hong Kong, Cambodia, Laos, Myanmar): restaurants for any delivery point, or full menus with one row per item size, local-currency prices, discounts, sold-out flags and priced option groups.",
    "version": "0.1",
    "x-build-id": "7eyHZP16OdTaiNbiD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teodor_banea~foodpanda-restaurant-menu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teodor_banea-foodpanda-restaurant-menu-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/teodor_banea~foodpanda-restaurant-menu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-teodor_banea-foodpanda-restaurant-menu-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/teodor_banea~foodpanda-restaurant-menu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-teodor_banea-foodpanda-restaurant-menu-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": "What to extract",
            "enum": [
              "restaurants",
              "menus"
            ],
            "type": "string",
            "description": "\"Restaurant list\" returns one row per restaurant that delivers to your point (rating, delivery time, fees, minimum order, offers, open state). \"Full menus with prices\" opens each restaurant and returns one row per menu item size, with option groups and option prices — a typical restaurant has 30–300 rows.",
            "default": "restaurants"
          },
          "country": {
            "title": "Country",
            "enum": [
              "pk",
              "bd",
              "tw",
              "my",
              "ph",
              "sg",
              "hk",
              "kh",
              "la",
              "mm"
            ],
            "type": "string",
            "description": "Pick the foodpanda country of your delivery points (and of bare restaurant codes). Restaurant URLs carry their own country, so URLs from several countries can be mixed in one run. Thailand is not offered: foodpanda has closed there.",
            "default": "ph"
          },
          "locations": {
            "title": "Delivery points (latitude,longitude)",
            "type": "array",
            "description": "Enter delivery points in the chosen country as \"latitude,longitude\", e.g. \"14.5547,121.0244\" (Makati), \"1.2840,103.8510\" (Singapore) or \"25.0418,121.5436\" (Taipei). Each point returns the restaurants that deliver there, in the platform's order.",
            "items": {
              "type": "string"
            }
          },
          "restaurantUrls": {
            "title": "Restaurant URLs or codes",
            "type": "array",
            "description": "Enter foodpanda restaurant pages from any of the 10 countries (https://www.foodpanda.ph/restaurant/ab12/example-kitchen) or just their codes (ab12; codes use the chosen country). These are scraped directly, in addition to any delivery points.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "local"
            ],
            "type": "string",
            "description": "Pick the language of cuisine names, deal titles and (where the restaurant provides translations) menu texts: English, or the country's own language (Chinese in Taiwan, Hong Kong and Singapore, Malay, Bangla, Khmer, Lao, Burmese; English in Pakistan and the Philippines). For Taiwan pick the local language: in English mode many Taiwanese names come back romanised.",
            "default": "en"
          },
          "searchQuery": {
            "title": "Search text",
            "type": "string",
            "description": "Keep only restaurants whose name, chain or cuisine contains this text. Case- and accent-insensitive: \"cafe\" matches \"Café\"."
          },
          "cuisines": {
            "title": "Cuisines",
            "type": "array",
            "description": "Keep only restaurants with one of these cuisines, e.g. \"Pizza\", \"Burgers\", \"Chinese\" (same matching as the search text; use the names of the chosen language).",
            "items": {
              "type": "string"
            }
          },
          "onlyOpen": {
            "title": "Only restaurants open now",
            "type": "boolean",
            "description": "Keep only restaurants that take delivery orders at the time of the run.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "pattern": "^\\s*$|^[0-5]([.,][0-9]+)?$",
            "type": "string",
            "description": "Keep only restaurants rated at least this (1–5), e.g. \"4.2\". Unrated restaurants are dropped when this is set."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "platform",
              "distance",
              "rating",
              "deliveryFee",
              "minimumOrder"
            ],
            "type": "string",
            "description": "Order of the restaurants before the limit applies. Any order other than the platform's reads the full restaurant list of every point first (one or two extra seconds per point).",
            "default": "platform"
          },
          "maxRestaurants": {
            "title": "Maximum restaurants",
            "minimum": 0,
            "maximum": 3000,
            "type": "integer",
            "description": "Limit the restaurants scraped in the whole run (restaurant rows, or menus opened). Set 0 for all restaurants of your points (up to 3,000). In menus mode, restaurants with an empty menu are skipped and do not count.",
            "default": 50
          },
          "maxItemsPerRestaurant": {
            "title": "Maximum menu rows per restaurant",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "In menus mode, keep only the first N rows (item sizes) of each menu, in menu order. Set 0 for complete menus.",
            "default": 0
          },
          "maxItemsTotal": {
            "title": "Maximum results",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Set a hard ceiling on billed rows for the whole run; the run stops as soon as it is reached. Set 0 for no ceiling (a safety guard of 50,000 rows still applies).",
            "default": 0
          },
          "includeModifiers": {
            "title": "Include option groups",
            "type": "boolean",
            "description": "In menus mode, attach each item size's option groups (toppings, sides, drink choices) with option prices. Switch off for smaller, CSV-friendly rows.",
            "default": true
          },
          "includeDetails": {
            "title": "Include restaurant details",
            "type": "boolean",
            "description": "In restaurants mode, open each restaurant once more for opening hours, deals, topic ratings, legal entity and description. Slower (one more request per restaurant); restaurant URLs always get these details.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}