# Menu Items

Stream Swiggy menu items by restaurant ID.

- Platform: [Swiggy](https://docs.upscrape.com/docs/platforms/swiggy)
- Capability ID: `swiggy.menu.items`
- Cost: 1 credit per request
- Maximum runtime: 60 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "latitude": 12.9716,
    "limit": 5,
    "longitude": 77.5946,
    "restaurant_id": "5938"
  },
  "capability": "swiggy.menu.items"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `latitude` | `number` | No | Latitude of the location. |
| `limit` | `integer` | No | Maximum number of menu items. |
| `longitude` | `number` | No | Longitude of the location. |
| `restaurant_id` | `string` | Yes | Swiggy restaurant ID. |

### Example input

```json
{
  "latitude": 12.9716,
  "limit": 5,
  "longitude": 77.5946,
  "restaurant_id": "5938"
}
```

## Response

Successful output is returned in `results[0].data`. Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This redacted fixture is an example, not a fixed response schema.

```json
{
  "items": [
    {
      "addon_group_count": 4,
      "addon_group_names": [
        "Choose Your Burger",
        "Choose Your Side",
        "Choose Your_Beverage"
      ],
      "addon_group_names_text": "Choose Your Burger | Choose Your Side | Choose Your_Beverage | Best Seller Add-ons",
      "category": "Mix'N'Match- Your Way (upto 50% OFF)",
      "default_price_minor": 25500,
      "description": "Build Your Own Meal. Save upto 38%..",
      "final_price_minor": 15900,
      "image_id": "FOOD_CATALOG/IMAGES/CMS/2025/12/15/[redacted:token].jpg_compressed",
      "image_url": "https://media-assets.swiggy.com/swiggy/image/upload/FOOD_CATALOG/IMAGES/CMS/2025/12/15/[redacted:token].jpg_compressed",
      "in_stock": true,
      "is_veg": true,
      "item_id": "189380929",
      "name": "Value Meal for 1- Make it Your Way (Veg)",
      "offer_ids": [
        "de772201-cfe9-4ac8-9657-f922c7131c68"
      ],
      "offer_ids_text": "de772201-cfe9-4ac8-9657-f922c7131c68",
      "price_minor": 25500,
      "rating": 3.8,
      "rating_count": "3 ratings",
      "restaurant_area_name": "Shivaji Nagar",
      "restaurant_city": "Bangalore",
      "restaurant_cuisines": [
        "Burgers",
        "American"
      ],
      "restaurant_cuisines_text": "Burgers, American",
      "restaurant_id": "5938",
      "restaurant_locality": "Tasker Town",
      "restaurant_name": "Burger King",
      "restaurant_rating": 4.2,
      "restaurant_rating_text": "4.2",
      "restaurant_url": "https://www.swiggy.com/city/bangalore/burger-king-central-bangalore-rest5938",
      "source_url": "[redacted:acquisition_url]"
    },
    {
      "addon_group_count": 11,
      "addon_group_names": [
        "Say Cheese",
        "Selected - Grill Chicken Whopper Deluxe",
        "Selected - Grill_Chicken_Whopper_Deluxe"
      ],
      "addon_group_names_text": "Say Cheese | Selected - Grill Chicken Whopper Deluxe | Selected - Grill_Chicken_Whopper_Deluxe | Choose Your Side (Any) | Choose Your Beverage (Any) | Best Seller Add-on | Choose_Your_Side | Choose_Your_Beverage | Choose Your_Beverage (Any 1) | Choose Your Dessert | Best Seller Add_ons",
      "category": "New Whopper Deluxe",
      "default_price_minor": 19900,
      "description": "Reg. Size premium glaze bun with 7 layers of taste: Flame Grill Chicken patty, fresh onion, crispy lettuce, juicy tomatoes (seasonal), tangy gherkins, creamy & smoky sauces.\nQty: 168 gms| Kcal: 327 | Carbs: 35 gms| Sugar: 1 gms| Fat: 14 gms| Saturated fat: 3 gms| Protein: 15 gms|",
      "final_price_minor": 15900,
      "image_id": "FOOD_CATALOG/IMAGES/CMS/2025/7/5/[redacted:token].jpg",
      "image_url": "https://media-assets.swiggy.com/swiggy/image/upload/FOOD_CATALOG/IMAGES/CMS/2025/7/5/[redacted:token].jpg",
      "in_stock": true,
      "item_id": "175726657",
      "name": "Grill Chicken Whopper Deluxe.",
      "offer_ids": [
        "de772201-cfe9-4ac8-9657-f922c7131c68"
      ],
      "offer_ids_text": "de772201-cfe9-4ac8-9657-f922c7131c68",
      "price_minor": 19900,
      "rating": 3.3,
      "rating_count": "12 ratings",
      "restaurant_area_name": "Shivaji Nagar",
      "restaurant_city": "Bangalore",
      "restaurant_cuisines": [
        "Burgers",
        "American"
      ],
      "restaurant_cuisines_text": "Burgers, American",
      "restaurant_id": "5938",
      "restaurant_locality": "Tasker Town",
      "restaurant_name": "Burger King",
      "restaurant_rating": 4.2,
      "restaurant_rating_text": "4.2",
      "restaurant_url": "https://www.swiggy.com/city/bangalore/burger-king-central-bangalore-rest5938",
      "source_url": "[redacted:acquisition_url]",
      "variant_group_count": 1,
      "variant_group_names": [
        "Customized"
      ],
      "variant_group_names_text": "Customized"
    },
    {
      "addon_group_count": 11,
      "addon_group_names": [
        "Selected - Cheese Whopper Deluxe",
        "Say Cheese",
        "Selected - Cheese_Whopper_Deluxe"
      ],
      "addon_group_names_text": "Selected - Cheese Whopper Deluxe | Say Cheese | Selected - Cheese_Whopper_Deluxe | Choose Your Side (Any) | Choose Your Beverage (Any) | Best Seller Add-on | Choose_Your_Side | Choose_Your_Beverage | Choose Your_Beverage (Any 1) | Choose Your Dessert | Best Seller Add_ons",
      "category": "New Whopper Deluxe",
      "default_price_minor": 19900,
      "description": "Reg. Size premium glaze bun with 7 layers of taste: Molten Cheese Lava patty, fresh onion, crispy lettuce, juicy tomatoes (seasonal), tangy gherkins, creamy & smoky sauces.\nQty: 230 gms| Kcal: 765 | Carbs: 35 gms| Sugar: 10 gms| Fat: 54 gms| Saturated fat: 20 gms| Protein: 35 gms|",
      "final_price_minor": 15900,
      "image_id": "FOOD_CATALOG/IMAGES/CMS/2025/7/5/[redacted:token].jpg",
      "image_url": "https://media-assets.swiggy.com/swiggy/image/upload/FOOD_CATALOG/IMAGES/CMS/2025/7/5/[redacted:token].jpg",
      "in_stock": true,
      "is_veg": true,
      "item_id": "175726656",
      "name": "Cheese Whopper Deluxe.",
      "offer_ids": [
        "de772201-cfe9-4ac8-9657-f922c7131c68"
      ],
      "offer_ids_text": "de772201-cfe9-4ac8-9657-f922c7131c68",
      "price_minor": 19900,
      "rating": 3.3,
      "rating_count": "6 ratings",
      "restaurant_area_name": "Shivaji Nagar",
      "restaurant_city": "Bangalore",
      "restaurant_cuisines": [
        "Burgers",
        "American"
      ],
      "restaurant_cuisines_text": "Burgers, American",
      "restaurant_id": "5938",
      "restaurant_locality": "Tasker Town",
      "restaurant_name": "Burger King",
      "restaurant_rating": 4.2,
      "restaurant_rating_text": "4.2",
      "restaurant_url": "https://www.swiggy.com/city/bangalore/burger-king-central-bangalore-rest5938",
      "source_url": "[redacted:acquisition_url]",
      "variant_group_count": 1,
      "variant_group_names": [
        "Customized"
      ],
      "variant_group_names_text": "Customized"
    }
  ],
  "summary": {
    "restaurant_id": "5938",
    "source_url": "[redacted:acquisition_url]",
    "total_items": 5
  }
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `items` | `array` | 3 items |
| `items` | `array` | 3 items |
| `summary` | `object` | 3 fields |
| `summary.restaurant_id` | `string` | 5938 |
| `summary.source_url` | `string` | [redacted:acquisition_url] |
| `summary.total_items` | `integer` | 5 |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
