# GrabFood Scraper: Restaurants, Menus and Delivery Prices (`s-r/grabfood-scraper`) Actor

Collect GrabFood restaurants and menu items across Singapore, Malaysia, Indonesia, the Philippines and Vietnam, with delivery times, fees, ratings, promotions and numeric prices per location.

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

## Pricing

from $2.00 / 1,000 delivered restaurants

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## GrabFood Scraper: Restaurants, Menus and Delivery Prices

GrabFood Scraper collects restaurant listings and menu items for delivery locations in Singapore,
Malaysia, Indonesia, the Philippines and Vietnam. Compare coverage, delivery times, menu prices,
promotions and availability across the points that matter to your analysis.

### What GrabFood Scraper returns

Each restaurant appears as a `place` row for each delivery point where it is found. Its delivery
time, distance and fee describe that particular delivery location. Menu items appear as separate
`menu_item` rows linked by `place_id`. The same restaurant found at several points has several
restaurant rows and one set of menu items within the collection.

Restaurant fields include the merchant ID, name, chain and branch names, cuisines, displayed
rating, rating count, opening hours, current opening status, delivery estimate, distance,
delivery fee, promotion labels, price level and a halal indicator when explicitly supplied.
Address details are included when restaurant details are retrieved. Menu fields include the item
ID, name, description, section, price, currency, discounted price when present, image URL and
availability. Both row types include a retrieval timestamp and a stable row identity.

This structure supports location coverage studies, restaurant assortment comparisons, FMCG and
food brand monitoring, menu price research and recurring delivery market snapshots. Join menu
items to restaurants using `place_id`. Keep the delivery point with each restaurant record when
comparing delivery times, because the same branch can have different estimates across a city.

### Input

Choose a country using `country`: `SG`, `MY`, `ID`, `PH` or `VN`. Supply `locations` as an array
of coordinate strings or addresses. For one coordinate pair, `latitude` and `longitude` are
also supported. Coordinates avoid ambiguity in address lookup. An address lookup resolves the
place in the selected country before collecting restaurants nearby.

Use `keyword` for a restaurant name, food term or cuisine. Leave it empty to collect nearby
restaurant listings without a search term. GrabFood uses fuzzy search, so a returned restaurant
does not necessarily contain your exact keyword in its name. Apply your own exact matching
after collection when that is required by your study.

Alternatively, provide `merchant_urls` containing full GrabFood restaurant URLs or merchant IDs.
A URL identifies its own country. A bare merchant ID uses the selected country, with one
correction attempt if the source explicitly identifies a different supported market.

`include_menu` defaults to true. Set it to false for restaurant coverage without menu rows.
`max_places_per_location` defaults to 32 and accepts up to 1000 unique restaurants per point.
`max_items_per_merchant` defaults to zero, meaning all items exposed by the source. A positive
value limits each restaurant menu. Up to twenty delivery locations and one thousand direct
merchant entries are accepted. Duplicate direct merchant entries are collected once.

For example, the measured Singapore search uses:

```json
{"country":"SG","locations":["1.287953,103.851784"],"keyword":"pizza","max_places_per_location":10}
```

### Output and downloads

The dataset contains restaurant and menu item rows. Use `row_type` or `_type` to distinguish
them. The run output contains `items`, a summary, warnings and a continuation cursor when more
records remain. The Actor follows continuation responses while collecting a larger request.
Dataset exports can then be processed as JSON, CSV or other formats available in Apify.

Prices are numeric amounts in the accompanying ISO currency. Indonesian rupiah prices use
`IDR`, and Vietnamese dong amounts retain their whole-currency scale. A missing availability
field in a source item means orderable; only an explicit unavailable flag produces false.
Promotional copies of menu items are deduplicated, with the ordinary menu section taking
precedence over an offer section.

Restaurant coordinates are not exposed by this source. The `lat` and `lng` restaurant fields
remain null; `search_point` contains the delivery coordinates you supplied. Direct merchant
input does not provide delivery estimates, distance or delivery fees. Missing halal data is
unknown, represented by null, and must not be treated as a negative certification.

### Completeness and supported markets

Some guest menus stop after approximately two hundred item appearances. When the source marks
the menu as truncated, the restaurant has `menu_is_partial: true` and a warning explains the
limitation. A requested item limit is also reported as partial. Menu markers are excluded from
the dataset and never counted as food items. Opening hours and menu wording retain the source
language and formatting. Delivery prices and promotions can change between observations.

Thailand is not supported because its guest ordering website is unavailable. Requests for
Thailand receive an input error. A location outside a delivery area may return no restaurants.
Unknown merchant IDs and unresolved addresses are reported clearly. If one entry cannot be
collected in a larger request, warnings identify the affected entry where other results can
still be returned.

### Pricing

Charging uses separate restaurant and menu item events. A restaurant event counts one delivered
`place` row, and a menu item event counts one delivered `menu_item` row. A merchant appearing
at two delivery points therefore has two restaurant events and one set of menu item events.
Only delivered rows count. Empty results and failures without delivered rows have no result
charge. Current event prices are shown in the Actor pricing panel.

Users on Apify's free plan receive at most ten delivered rows per run. With menus enabled,
this includes a restaurant and up to nine menu items. Current event rates still apply to
delivered rows. This gives a small sample of both record types; it does not imply that the
restaurant has only nine items in its full menu.

### FAQ

#### Can I compare one restaurant across several delivery locations?

Yes. Each point has its own restaurant row and delivery metrics. Use the merchant ID to join
those rows, and retain `search_point` to distinguish the measurements.

#### Are all restaurant menus complete?

The Actor returns what the guest menu exposes. Some source menus are truncated. Check
`menu_is_partial` and warnings before treating an assortment as complete.

#### Can I collect menus without searching for a delivery location?

Yes. Provide merchant URLs or IDs. Restaurant details and menu items are available, while
location-dependent delivery estimates and fees remain empty.

#### Does a missing halal flag mean the restaurant is not halal?

No. A true flag reflects an explicit source indication. Null means the source supplied no
usable halal indication, and should remain unknown in your downstream analysis.

# Actor input Schema

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

GrabFood market. Thailand has no guest web ordering. Lowercase is normalized by the handler.

## `locations` (type: `array`):

Delivery points as latitude,longitude strings or addresses. Addresses use a public geocoder.

## `latitude` (type: `number`):

Single delivery latitude; provide longitude as well.

## `longitude` (type: `number`):

Single delivery longitude; provide latitude as well.

## `keyword` (type: `string`):

Search term or cuisine. Empty searches all nearby merchants. GrabFood search is fuzzy.

## `merchant_urls` (type: `array`):

GrabFood restaurant URLs or merchant IDs. URL country overrides country; IDs use country.

## `include_menu` (type: `boolean`):

Return menu_item rows as well as place rows. Direct merchant input still retrieves restaurant details.

## `max_places_per_location` (type: `integer`):

Unique restaurants per delivery point across all continuation requests, not a global row cap.

## `max_items_per_merchant` (type: `integer`):

Unique menu items per restaurant; zero returns all items exposed by the guest web menu.

## `cursor` (type: `string`):

Signed next_cursor from a previous response; repeat the same input. Expires after seven days.

## Actor input object example

```json
{
  "country": "SG",
  "locations": [
    "1.287953,103.851784"
  ],
  "keyword": "",
  "include_menu": true,
  "max_places_per_location": 32,
  "max_items_per_merchant": 0
}
```

# Actor output Schema

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

One place row per merchant per delivery point and one menu_item row per merchant menu item.

## `output` (type: `string`):

OUTPUT record with the run's counts and status flags.

## `errors` (type: `string`):

Failures with a code and a redacted message. Absent when the run had none.

# 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 = {
    "locations": [
        "1.287953,103.851784"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/grabfood-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 = { "locations": ["1.287953,103.851784"] }

# Run the Actor and wait for it to finish
run = client.actor("s-r/grabfood-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 '{
  "locations": [
    "1.287953,103.851784"
  ]
}' |
apify call s-r/grabfood-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/grabfood-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/hgBY0XJdcixl9uBmZ/builds/jdx2EoNarv7zxAXNv/openapi.json
