# List home products

Fetch priced public Instamart SKU variations for a known store and follow the returned cursor.

- Platform: [Swiggy Instamart](https://docs.upscrape.com/docs/platforms/swiggy-instamart)
- Capability ID: `instamart.home.list`
- Cost: 1 credit per request
- Maximum runtime: 120 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": {
    "lat": 12.9716,
    "layout_id": "4987",
    "lng": 77.5946,
    "primary_store_id": "1392421",
    "store_id": "1392421"
  },
  "capability": "instamart.home.list"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `lat` | `number` | Yes | Delivery latitude in decimal degrees |
| `layout_id` | `string` | No | Layout identifier. |
| `lng` | `number` | Yes | Delivery longitude in decimal degrees |
| `offset` | `Not specified` | No | Opaque next_offset returned by the preceding page; legacy non-negative numeric offsets remain accepted |
| `primary_store_id` | `string` | No | Optional primary store ID from the location-specific Instamart session |
| `secondary_store_id` | `string` | No | Optional secondary store ID observed for the location-specific Instamart session |
| `store_id` | `string` | No | Optional store ID from the location-specific Instamart session |

### Example input

```json
{
  "lat": 12.9716,
  "layout_id": "4987",
  "lng": 77.5946,
  "primary_store_id": "1392421",
  "store_id": "1392421"
}
```

## 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
{
  "next_offset": "3",
  "products": [
    {
      "brand": "Amul",
      "category": "Ice Creams",
      "id": "6PSMFRDJ5M",
      "image": "NI_CATALOG/IMAGES/ciw/2026/5/13/bc3a887e-89b1-4a92-89a9-da340823233d_02 FoP_Amul Tru Berry Dazzle 1L_e0ee5d75-09db-4e32-965d-71c9bca20769.png",
      "in_stock": true,
      "mrp": "300",
      "name": "Amul Tru Berry Dazzle Ice Cream Tub",
      "offer_price": "264",
      "quantity": "1 ltr",
      "sku": "BRJ9KFOD5R"
    },
    {
      "brand": "Go Zero",
      "category": "Ice Creams",
      "id": "1L3QNYR63I",
      "image": "NI_CATALOG/IMAGES/CIW/2025/11/28/[redacted:token].png",
      "in_stock": true,
      "mrp": "380",
      "name": "Go Zero Mad Over Mango Guilt Free Ice Cream Tub",
      "offer_price": "277",
      "quantity": "500 ml",
      "sku": "NJQR6TDKM0"
    },
    {
      "brand": "The Brooklyn Creamery",
      "category": "Ice Creams",
      "id": "25JSNA1XIV",
      "image": "NI_CATALOG/IMAGES/ciw/2026/5/22/[redacted:token].png",
      "in_stock": true,
      "mrp": "349",
      "name": "The Brooklyn Creamery Chocolate Fudge Brownie Ice Cream Tub",
      "offer_price": "335",
      "quantity": "450 ml",
      "sku": "18WZ0HJMK9"
    }
  ]
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `next_offset` | `string` | 3 |
| `products` | `array` | 3 items |
| `products` | `array` | 3 items |

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