# Yelp Business Menu API Documentation

Retrieve the public Yelp menu of a business by its alias or business id: menu name, sections, items with description, price, every size price, currency, photo, review count and photo count, the names of other menus of the business, popular dishes with rating and photo and the menu url of the owner. A business without a Yelp menu answers a non-billable 404. Costs 1 credit.

- **Documentation:** [https://scrappa.co/docs/yelp-api/yelp_menu](https://scrappa.co/docs/yelp-api/yelp_menu)
- **API group:** Yelp API
- **Endpoint:** `GET https://scrappa.co/api/yelp/menu`

## 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 |
| --- | --- | --- | --- |
| `business_id` | string | Yes | Yelp business alias (the last part of the yelp.com/biz URL) or the 22 character business id. Example: katzs-delicatessen-new-york. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/yelp/menu?business_id=katzs-delicatessen-new-york"
```

## Example response

```json
{
    "success": true,
    "data": {
        "business": {
            "encid": "V7lXZKBDzScDeGB8JmnzSA",
            "alias": "katzs-delicatessen-new-york",
            "name": "Katz's Delicatessen",
            "url": "https://www.yelp.com/biz/katzs-delicatessen-new-york"
        },
        "menu": {
            "name": "Katz's Delicatessen Menu - Katz's Delivery Menu (app)",
            "url": "https://www.yelp.com/menu/katzs-delicatessen-new-york",
            "sections": [
                {
                    "name": "Sandwiches",
                    "items": [
                        {
                            "name": "Katz's Pastrami",
                            "description": "Legendary for a reason",
                            "price": "32.95",
                            "currency": "USD",
                            "prices": [
                                {
                                    "price": "$32.95"
                                }
                            ],
                            "url": "https://www.yelp.com/menu/katzs-delicatessen-new-york/item/katzs-pastrami",
                            "photo": "https://s3-media0.fl.yelpcdn.com/bphoto/y2Drqv3Fgtl1ZJ63LxHwlA/o.jpg",
                            "photo_thumbnail": "https://s3-media0.fl.yelpcdn.com/bphoto/y2Drqv3Fgtl1ZJ63LxHwlA/60s.jpg",
                            "review_count": 178,
                            "photo_count": 238
                        }
                    ]
                }
            ],
            "other_menus": [
                "Katz's Delicatessen  (Storefront)"
            ]
        },
        "popular_items": [
            {
                "name": "Pastrami Sandwich",
                "rating": 4.3,
                "review_count": 4312,
                "photo_count": 1014,
                "photo_url": "https://s3-media0.fl.yelpcdn.com/bphoto/BLN6uPuENDgUxVEZImB8SQ/258s.jpg",
                "caption": "Katz's Pastrami Sandwich (~$29)"
            }
        ],
        "owner_menu_url": "https://katzsdelicatessen.com/store-menu"
    },
    "meta": {
        "endpoint_family": "business_menu",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 404 | Not Found | This Yelp business has no menu. This response is not billable. |
| 502 | Invalid Source Response | The upstream answered with a shape that no longer matches the documented contract. This response is not billable. |
| 503 | Service Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## 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)
