# Grabfood Merchant Search Scraper (`romy/grabfood-merchant-search-scraper`) Actor

Search GrabFood restaurants by keyword and extract merchant data via Grab's internal mobile API. Returns names, ratings, categories, delivery info, and IDs — ready for analysis or to feed downstream scrapers.

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

## Pricing

from $8.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 Search Scraper

Search **GrabFood restaurants by keyword** and extract merchant data via Grab's internal mobile API. Returns names, ratings, categories, delivery info, and IDs — ready for analysis or to feed downstream scrapers.

### What does GrabFood Merchant Search Scraper do?

This Actor calls GrabFood's authenticated search API (`p.grabtaxi.com`) with a keyword and location, returning up to 30 matching merchants per run. Each result includes the full merchant object: name, rating, estimated delivery time, cuisine tags, and the `merchantID` you need to fetch menus or reviews.

### Why use GrabFood Merchant Search Scraper?

- **Lead generation** — find all restaurants of a specific cuisine near a target location
- **Competitor mapping** — search by brand name to find outlets across a city
- **Price research** — discover merchants for downstream menu/detail scraping
- **Market analysis** — count restaurant density by food category per zone

### How to use

1. Open the **Input** tab in Apify Console
2. Enter a `keyword` (e.g. `"pizza"`, `"kfc"`, `"seafood"`) and a `lat_lng` coordinate
3. Click **Start** — results arrive in seconds
4. Download from **Output** tab in JSON, CSV, or Excel

### Input

```json
{
  "keyword": "pizza",
  "lat_lng": "-6.181356782387791,106.82522693654819",
  "max_items": 100
}
```

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keyword` | string | Yes | Search term (restaurant name, cuisine, dish) |
| `lat_lng` | string | Yes | Coordinates as `"lat,lng"` — center of the search area |
| `max_items` | integer | No | Maximum merchants to return (default: 100). Pagination is automatic. |

### Output

One item per merchant:

```json
{
  "id": "6-C6WKMB3DLAMTDE",
  "name": "Pizza Hut Delivery - Kemang",
  "rating": 4.6,
  "estimatedDeliveryTime": 25,
  "merchantBrief": {
    "cuisine": ["Pizza", "Fast Food"],
    "priceTag": 2,
    "distanceInKm": 1.2
  }
}
```

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

### Data fields

| Field | Description |
|-------|-------------|
| `id` | Merchant ID — use this with GrabFood Menu or Detail Scraper |
| `name` | Restaurant name |
| `rating` | Average rating (0–5) |
| `estimatedDeliveryTime` | Delivery time in minutes |
| `merchantBrief.cuisine` | List of cuisine tags |
| `merchantBrief.distanceInKm` | Distance from the search coordinates |

### Pricing

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

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

**Example:** 100 merchants = $0.05 start + $0.80 = **$0.85 total**

### Tips

- Pagination is automatic — set `max_items` to control how many results you want
- Pair with **GrabFood Merchant Detail Scraper** to enrich results with full merchant data
- Use **GrabFood Menu Scraper** with the returned `id` to fetch complete menus

### FAQ and support

**How many results per run?**
Set `max_items` to any number — the Actor pages automatically (30 per API call internally).

**Which countries?**
GrabFood is available in Indonesia, Singapore, Malaysia, Thailand, Vietnam, Philippines, Cambodia, and Myanmar. Provide the correct `lat_lng` for your target country.

**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

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

The keyword to search for (e.g., seafood, pizza, burger).

## `lat_lng` (type: `string`):

The latitude and longitude of the search location (e.g., -6.181356,106.825226).

## `max_items` (type: `integer`):

Maximum number of merchants to return. Pagination is handled automatically.

## Actor input object example

```json
{
  "keyword": "seafood",
  "lat_lng": "-6.181356782387791,106.82522693654819",
  "max_items": 100
}
```

# 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 = {
    "keyword": "seafood",
    "lat_lng": "-6.181356782387791,106.82522693654819"
};

// Run the Actor and wait for it to finish
const run = await client.actor("romy/grabfood-merchant-search-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 = {
    "keyword": "seafood",
    "lat_lng": "-6.181356782387791,106.82522693654819",
}

# Run the Actor and wait for it to finish
run = client.actor("romy/grabfood-merchant-search-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 '{
  "keyword": "seafood",
  "lat_lng": "-6.181356782387791,106.82522693654819"
}' |
apify call romy/grabfood-merchant-search-scraper --silent --output-dataset

```

## MCP server setup

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