{
  "openapi": "3.0.1",
  "info": {
    "title": "Foodpanda Restaurant Discovery & Full Menu Scraper",
    "description": "Find Foodpanda restaurants near a point or city, or pull them by URL, with rating, cuisines, delivery fee, ETA and full nested menus with prices and dietary tags. Covers Singapore, Bangladesh, Pakistan, Hong Kong and Malaysia.",
    "version": "1.1",
    "x-build-id": "KUjiGbhEkosB5ycQw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~foodpanda-restaurant-discovery-and-full-menu/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-foodpanda-restaurant-discovery-and-full-menu",
        "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/crawlyth-forge~foodpanda-restaurant-discovery-and-full-menu/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-foodpanda-restaurant-discovery-and-full-menu",
        "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/crawlyth-forge~foodpanda-restaurant-discovery-and-full-menu/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-foodpanda-restaurant-discovery-and-full-menu",
        "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": {
          "restaurantUrls": {
            "title": "Restaurant URLs",
            "type": "array",
            "description": "URL mode: one or more Foodpanda restaurant page URLs. The country is detected from the domain. Example: https://www.foodpanda.sg/restaurant/m3jj/mcdonalds-ang-mo-kio",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Discovery mode: decimal latitude of the search centre. Requires 'longitude' and 'country' to also be set."
          },
          "longitude": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Discovery mode: decimal longitude of the search centre. Requires 'latitude' and 'country' to also be set."
          },
          "cityPageUrl": {
            "title": "City Page URL",
            "type": "string",
            "description": "Discovery mode: a Foodpanda city or listing URL (e.g. https://www.foodpanda.sg/restaurants/new/). Country and coordinates are extracted automatically."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Discovery mode: city name resolved via the built-in lookup table. Examples: Singapore, Karachi, Dhaka, Taipei, Manila, Phnom Penh, Yangon, Vientiane. Requires 'country' to also be set."
          },
          "country": {
            "title": "Country",
            "enum": [
              "sg",
              "bd",
              "pk",
              "hk",
              "my",
              "ph",
              "tw",
              "kh",
              "mm",
              "la"
            ],
            "type": "string",
            "description": "Required for Discovery mode with lat/lon or city name."
          },
          "radiusKm": {
            "title": "Search Radius (km)",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "Discovery mode: radius around the resolved location in kilometres.",
            "default": 3
          },
          "maxRestaurants": {
            "title": "Max Restaurants",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Discovery mode: maximum number of vendors to scrape. The actor keeps paging through Foodpanda results until it reaches this number or runs out of matches.",
            "default": 50
          },
          "cuisines": {
            "title": "Cuisines",
            "uniqueItems": true,
            "type": "array",
            "description": "Discovery mode: keep only vendors matching these cuisines. Use cuisine names, slugs or Foodpanda cuisine IDs (e.g. Asian, italian, 39). Multiple values are combined. Leave empty for all cuisines.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort Results By",
            "enum": [
              "recommended",
              "rating",
              "distance",
              "delivery_time"
            ],
            "type": "string",
            "description": "Discovery mode: order in which Foodpanda returns vendors.",
            "default": "recommended"
          },
          "deliveryProvider": {
            "title": "Delivery Provider",
            "enum": [
              "any",
              "platform",
              "vendor"
            ],
            "type": "string",
            "description": "Discovery mode: keep vendors delivered by Foodpanda riders, by the vendor's own fleet, or both.",
            "default": "any"
          },
          "hasDiscount": {
            "title": "Only With Discounts",
            "type": "boolean",
            "description": "Discovery mode: keep only vendors currently offering a discount.",
            "default": false
          },
          "hasFreeDelivery": {
            "title": "Only Free Delivery",
            "type": "boolean",
            "description": "Discovery mode: keep only vendors currently offering free delivery.",
            "default": false
          },
          "isNew": {
            "title": "Only New Vendors",
            "type": "boolean",
            "description": "Discovery mode: keep only vendors Foodpanda marks as new.",
            "default": false
          },
          "isSuperVendor": {
            "title": "Only Super Vendors",
            "type": "boolean",
            "description": "Discovery mode: keep only Foodpanda super vendors.",
            "default": false
          },
          "includeMenu": {
            "title": "Include Menu",
            "type": "boolean",
            "description": "Whether to fetch the full menu for each vendor. Defaults to true for URL mode and false for Discovery mode when not explicitly set."
          },
          "maxItemsPerRestaurant": {
            "title": "Max Items Per Restaurant",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of menu items to extract per vendor. Only applies when Include Menu is enabled.",
            "default": 200
          },
          "language": {
            "title": "Content Language",
            "enum": [
              "english",
              "local"
            ],
            "type": "string",
            "description": "Language for vendor and menu text where Foodpanda offers a localised version (for example Traditional Chinese in Taiwan, Khmer in Cambodia). English is the safe default everywhere.",
            "default": "english"
          },
          "vendorTypes": {
            "title": "Vendor Types",
            "uniqueItems": true,
            "type": "array",
            "description": "Discovery mode: filter by vendor type. Leave empty to include all types.",
            "items": {
              "type": "string",
              "enum": [
                "restaurant",
                "grocery",
                "convenience"
              ],
              "enumTitles": [
                "Restaurant",
                "Grocery",
                "Convenience Store"
              ]
            },
            "default": [
              "restaurant"
            ]
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}