# Foodpanda Scraper (`tortuga/foodpanda-scraper`) Actor

Foodpanda restaurants by country and city: name, cuisines, rating and review count, minimum order, delivery fee and time, price range, address, coordinates, opening status and promotions, plus optional menus with item names, descriptions, prices, categories and images. JSON or CSV, no login.

- **URL**: https://apify.com/tortuga/foodpanda-scraper.md
- **Developed by:** [Trevor Ortega](https://apify.com/tortuga) (community)
- **Categories:** E-commerce, Travel
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 restaurants

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Foodpanda Scraper: Restaurants and Menus in Asia

Scrape restaurants from [Foodpanda](https://www.foodpanda.com) by country and city: Pakistan, Bangladesh, Taiwan and other Foodpanda countries. For every restaurant you get the name, cuisines, rating and review count, minimum order, price range, address, coordinates, opening status and promotions. Turn on `includeMenu` for the menu with item names, descriptions, prices, categories and images. It reads the public page data, so no login is needed.

### What data do you get?

| Field | Example |
| --- | --- |
| `id`, `vendorId`, `url`, `name`, `chain` | `a2jf`, `108358`, `Quetta Shaheen Cafe` |
| `cuisineTags` | `["Paratha", "Pakistani", "Tea & Coffee"]` |
| `rating`, `ratingCount` | `3.8` (of 5), `231` |
| `minimumOrder`, `minimumOrderAmount`, `currency`, `priceRange` | `299 PKR`, `299`, `PKR`, `$` |
| `deliveryFee`, `deliveryFeeAmount`, `deliveryTime`, `deliveryTimeMinutes`, `pickupTimeMinutes` | shown by Foodpanda only when delivery is open |
| `address`, `city`, `postalCode`, `country`, `latitude`, `longitude`, `distanceKm` | |
| `isOpen`, `isDeliveryAvailable`, `isPickupAvailable`, `availableAt` | opening status and next opening |
| `promotions`, `hasDiscount`, `isNew`, `isPremium`, `vertical`, `image` | `["20% off Rs. 300"]` |
| With `includeMenu`: `menu`, `menuItemCount` | list of `{id, name, description, price, originalPrice, category, image, isSoldOut, isVegetarian}` |

### Input example

```json
{
  "country": "pk",
  "location": [
    "lahore",
    "karachi"
  ],
  "keywords": [
    "pizza",
    "biryani"
  ],
  "includeMenu": false,
  "maxItems": 100
}
```

`country` picks the Foodpanda site (`pk`, `bd`, `tw` were checked) and `location` takes city slugs as in Foodpanda's city page URLs (`lahore`, `karachi`, `dhaka`, `taipei-city`). You can also paste foodpanda city pages or restaurant pages into `startUrls`. Each city page request returns 48 restaurants and the Actor pages through as many as `maxItems` needs.

### Output example

```json
{
  "id": "a2jf",
  "vendorId": 108358,
  "url": "https://foodpanda.pk/restaurant/a2jf/quetta-shaheen-cafe",
  "name": "Quetta Shaheen Cafe",
  "chain": null,
  "cuisineTags": [
    "Paratha",
    "Pakistani",
    "Tea & Coffee"
  ],
  "rating": 3.8,
  "ratingCount": 231,
  "deliveryTime": null,
  "deliveryTimeMinutes": null,
  "pickupTimeMinutes": 15,
  "deliveryFee": null,
  "deliveryFeeAmount": 0,
  "serviceFeePercent": null,
  "minimumOrder": "299 PKR",
  "minimumOrderAmount": 299,
  "currency": "PKR",
  "priceRange": "$",
  "address": "speedo bus station Aray bazaar near qasr e noor marriage hall array bazaar Lahore Cantt",
  "city": "Lahore",
  "postalCode": "54000",
  "country": "PK",
  "latitude": 31.5057886,
  "longitude": 74.3845967,
  "distanceKm": 1.04,
  "isOpen": false,
  "isDeliveryAvailable": false,
  "isPickupAvailable": true,
  "availableAt": "2026-11-21T07:38:54+0500",
  "promotions": [
    "20% off Rs. 300"
  ],
  "hasDiscount": true,
  "isNew": false,
  "isPremium": false,
  "vertical": "restaurants",
  "image": "https://images.deliveryhero.io/image/fd-pk/LH/a2jf-listing.jpg",
  "menu": [
    {
      "id": "82635552",
      "name": "Anda Half Fry",
      "description": "1 egg half fry",
      "price": 80,
      "originalPrice": 100,
      "category": "Breakfast",
      "image": "https://foodpanda.dhmedia.io/image/fd-pk/Products/82635552.jpg",
      "isSoldOut": false,
      "isVegetarian": null
    }
  ],
  "menuItemCount": 29,
  "menuFetched": true
}
```

### Monitor changes on a schedule

Turn on `onlyNewOrChanged` and put the run on a Schedule. Each run remembers the restaurants it returned before and outputs only new restaurants or restaurants whose rating, opening status or fees changed. Unchanged restaurants are not charged. Each item gets `changeType` (`new` or `changed`) and `previousValues`. Use `monitoringKey` to keep several schedules on similar searches apart. A ready-made input is in `monitor-task.json`.

### Pricing

| Event | Price |
| --- | --- |
| Restaurant (one result) | $3.00 per 1,000 |
| Menu (only with `includeMenu`, one restaurant) | $2.50 per 1,000 |

Volume tiers (Silver, Gold and above) get 10 to 20 percent off. Platform usage (proxy transfer and compute) is billed to you on top, as Apify shows in your usage.

### Proxy note

Foodpanda sits behind Cloudflare, which refused Apify datacenter IPs in Pakistan and Taiwan but served residential IPs of the country, so the default proxy is residential for the chosen country. Residential transfer is billed to you as Apify platform usage: a city page of 48 restaurants and a restaurant page with its menu are each about 1 MB.

### FAQ

#### Which countries work?

Pakistan (lists and menus), Bangladesh (lists and menus) and Taiwan (lists) were tested with residential IPs of the country. Philippines, Malaysia, Cambodia, Laos, Singapore and Hong Kong are selectable but were not tested.

#### Why do some menus come back empty?

Foodpanda's Cloudflare protection refuses part of the restaurant page requests (HTTP 403) even from residential IPs: in tests roughly half of the Pakistani pages came through at the polite default rate, all six of a Bangladeshi test did. The Actor retries on fresh IPs, skips a menu it cannot get and does not charge the Menu event for it; the restaurant itself is still returned. Run it again for the missing ones.

#### How many restaurants can I get per city?

All of them, 48 per request (about 5,000 for Lahore or Karachi). `maxItems` controls how many pages are read.

#### Why are delivery fee and delivery time often empty?

Foodpanda's list only carries them while delivery is available for the location, and often shows 0 otherwise. Empty means not shown; `isDeliveryAvailable` tells you why.

#### Does it need a login or API key?

No. It reads the public pages foodpanda serves to logged-out visitors.

#### Is scraping Foodpanda legal?

The Actor collects public restaurant data that the site shows to any visitor. You are responsible for using it in line with applicable law and the site's terms.

# Actor input Schema

## `country` (type: `string`):

Foodpanda country. pk (Pakistan), bd (Bangladesh) and tw (Taiwan) are checked; ph, my, kh, la, sg and hk use the same site layout but are not verified.

## `location` (type: `array`):

City slugs as in Foodpanda's city page URLs, for example lahore, karachi, dhaka, taipei-city or manila. A plain text value is accepted too. Ignored for URLs in Start URLs.

## `cuisine` (type: `string`):

Optional cuisine page of the city, as in Foodpanda's links (for example pizza or burgers).

## `startUrls` (type: `array`):

foodpanda city pages (https://www.foodpanda.pk/city/lahore/) or restaurant pages (https://www.foodpanda.pk/restaurant/a2jf/quetta-shaheen-cafe). Added to the cities above.

## `keywords` (type: `array`):

Keep only restaurants whose name, chain or cuisines contain one of these words, for example pizza or biryani.

## `minRating` (type: `number`):

Keep only restaurants rated at least this high on Foodpanda's 5-star scale (for example 4).

## `maxItems` (type: `integer`):

Stop after this many restaurants. Keeps cost predictable.

## `onlyOpen` (type: `boolean`):

Keep only restaurants that currently accept orders.

## `includeMenu` (type: `boolean`):

Add the restaurant's menu as a menu array (item name, description, price, category, image). One extra request (the restaurant page) and one menu charge per restaurant.

## `onlyNewOrChanged` (type: `boolean`):

Remember what earlier runs of this search returned and output only new restaurants or restaurants whose watched values changed. Use with a Schedule; unchanged items are not charged.

## `monitoringKey` (type: `string`):

Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input.

## `proxyConfiguration` (type: `object`):

Foodpanda's Cloudflare protection refuses datacenter IPs in most countries; residential IPs of the country get the pages, so the default is residential for the chosen country. Residential transfer is billed to you through Apify platform usage.

## Actor input object example

```json
{
  "country": "pk",
  "location": [
    "lahore"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PK"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "country": "pk",
    "location": [
        "lahore"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "PK"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tortuga/foodpanda-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "country": "pk",
    "location": ["lahore"],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "PK",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("tortuga/foodpanda-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "country": "pk",
  "location": [
    "lahore"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PK"
  }
}' |
apify call tortuga/foodpanda-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tortuga/foodpanda-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/TGc7ysj2tKfoBqrE7/builds/elRcnNc7TiLN8IkEx/openapi.json
