# GrabFood Restaurant API Documentation

<p><strong>GrabFood Restaurant API Documentation</strong> Open one GrabFood restaurant. Send the market as country (SG or PH), the id from the restaurants endpoint unchanged, and a delivery point. The answer has the merchant, promotions and the full menu as categories of items. Every item has a price as a number with the currency. An original price is returned only when it is greater than the price, with the discount percent. Cost: 1 credit per successful request. Failed requests are not billed. Filters and sort are applied to the fetched page; a page can hold fewer rows than the page size while more pages remain.</p>

- **Documentation:** [https://scrappa.co/docs/grabfood-api/grabfood_restaurant](https://scrappa.co/docs/grabfood-api/grabfood_restaurant)
- **API group:** GrabFood API
- **Endpoint:** `GET https://scrappa.co/api/grabfood/restaurant`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `country` | string | Yes | Market: SG or PH. Required. |
| `id` | string | Yes | Restaurant id from the restaurants endpoint, unchanged. Required. |
| `lat` | number | Yes | Latitude of the delivery point, for example 1.3521. Required. |
| `lng` | number | Yes | Longitude of the delivery point, for example 103.8198. Required. |

## Example response

```json
{
    "data": {
        "restaurant": {
            "id": "abc123",
            "currency": "SGD",
            "merchant": {
                "id": "abc123",
                "name": "Example Pizza",
                "rating": 4.5,
                "review_count": 210
            },
            "categories": [
                {
                    "id": "cat-1",
                    "name": "Pizza",
                    "items": [
                        {
                            "id": "item-1",
                            "name": "Margherita",
                            "price": 12.5,
                            "currency": "SGD",
                            "original_price": 15,
                            "discount_percent": 16.67
                        }
                    ]
                }
            ],
            "promotions": [
                {
                    "title": "Free delivery"
                }
            ]
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "restaurant"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 502 | Upstream Unavailable | The site did not answer or sent data Scrappa cannot read. This response is not billable. Retry in a moment. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
