# Grabfood Merchant Detail Scraper (`romy/grabfood-merchant-detail-scraper`) Actor

Fetch full merchant details for a batch of GrabFood restaurants in one run. Accepts up to hundreds of merchant IDs and returns the complete detail object for each — including rating breakdown, delivery config, operating hours, and cuisine tags.

- **URL**: https://apify.com/romy/grabfood-merchant-detail-scraper.md
- **Developed by:** [Romy](https://apify.com/romy) (community)
- **Categories:** Developer tools, Automation, E-commerce
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.00 / 1,000 merchant scrapeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## GrabFood Merchant Detail Scraper

Fetch **full merchant details** for a batch of GrabFood restaurants in one run. Accepts up to hundreds of merchant IDs and returns the complete detail object for each — including rating breakdown, delivery config, operating hours, and cuisine tags.

### What does GrabFood Merchant Detail Scraper do?

This Actor calls GrabFood's merchant detail API (`p.grabtaxi.com/api/passenger/v4/grabfood/merchants/:id`) for each merchant ID you provide. Requests run with 5 concurrent workers for speed. Each merchant returns as a separate dataset item with the full detail payload.

### Why use GrabFood Merchant Detail Scraper?

- **Enrich search results** — add full details to merchant IDs from Nearby or Search scrapers
- **Bulk data collection** — fetch details for hundreds of merchants in a single run
- **Rating monitoring** — track rating changes over time for a list of restaurants
- **Operational data** — get delivery radius, min order, operating hours

### How to use

1. Collect merchant IDs via **GrabFood Nearby Scraper** or **GrabFood Merchant Search Scraper**
2. Open the **Input** tab and paste your list of merchant IDs
3. Click **Start** — runs 5 merchants in parallel
4. Download results from the **Output** tab in JSON, CSV, or Excel

### Input

```json
{
  "merchant_ids": [
    "6-C6WKMB3DLAMTDE",
    "4-CZCTJUB3TPUBWA",
    "6-ABCD1234EFGH"
  ]
}
```

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `merchant_ids` | array | Yes\* | List of GrabFood merchant IDs |
| `merchant_id` | string | Yes\* | Single merchant ID (backward-compatible alternative) |

\*Provide either `merchant_ids` (array) or `merchant_id` (single string).

### Output

One item per merchant:

```json
{
  "id": "6-C6WKMB3DLAMTDE",
  "name": "Domino's Pizza - Kemang",
  "rating": 4.4,
  "reviewCount": 1823,
  "estimatedDeliveryTime": 30,
  "deliveryFee": 5000,
  "minOrderAmount": 50000,
  "merchantBrief": {
    "cuisine": ["Pizza", "Western"],
    "openHours": "10:00 - 22:00"
  }
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Data fields

| Field | Description |
|-------|-------------|
| `id` | GrabFood merchant ID |
| `name` | Restaurant name |
| `rating` | Average rating (0–5) |
| `reviewCount` | Total number of reviews |
| `estimatedDeliveryTime` | Delivery ETA in minutes |
| `deliveryFee` | Delivery fee in smallest currency unit |
| `merchantBrief.cuisine` | Cuisine categories |

### Pricing

This Actor uses **Pay-Per-Event** billing:

| Event | Price |
|-------|-------|
| Actor start | $0.05 (once per run) |
| Per merchant detail returned | $0.025 |

**Example:** 50 merchants = $0.05 start + $1.25 = **$1.30 total**

### Tips

- Batch all your merchant IDs into one run — no limit on list size
- Concurrency is set to 5 to respect API rate limits; very large batches run automatically
- Failed merchant IDs (not found, wrong region) are skipped with a warning log

### FAQ and support

**Can I scrape hundreds of merchants?**
Yes — pass them all in `merchant_ids`. The Actor processes them concurrently in groups.

**Which countries?**
All GrabFood markets: Indonesia, Singapore, Malaysia, Thailand, Vietnam, Philippines, Cambodia, Myanmar.

**Is this legal?**
For research and analysis purposes. Respect GrabFood's Terms of Service.

Open an issue on the **Issues** tab or contact the author for custom solutions.

# Actor input Schema

## `merchant_ids` (type: `array`):

List of GrabFood merchant IDs to scrape. Get IDs from the GrabFood Merchant Search or Nearby actor.

## Actor input object example

```json
{
  "merchant_ids": [
    "6-C6MXT65DHBKKAA",
    "4-CZCTJUB3TPUBWA"
  ]
}
```

# 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 = {
    "merchant_ids": [
        "6-C6MXT65DHBKKAA",
        "4-CZCTJUB3TPUBWA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("romy/grabfood-merchant-detail-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 = { "merchant_ids": [
        "6-C6MXT65DHBKKAA",
        "4-CZCTJUB3TPUBWA",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("romy/grabfood-merchant-detail-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 '{
  "merchant_ids": [
    "6-C6MXT65DHBKKAA",
    "4-CZCTJUB3TPUBWA"
  ]
}' |
apify call romy/grabfood-merchant-detail-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,romy/grabfood-merchant-detail-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/0BjdiNPP2yhknPpkq/builds/MHzsJQpTiyOreShsi/openapi.json
