# List Category Products

List Blinkit products from an exact category and subcategory with location-aware pricing, stock, and pagination.

- Platform: [Blinkit](https://docs.upscrape.com/docs/platforms/blinkit)
- Capability ID: `blinkit.category.products`
- 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": {
    "category_id": 14,
    "latitude": 28.4583,
    "limit": 5,
    "longitude": 77.0728,
    "subcategory_id": "922"
  },
  "capability": "blinkit.category.products"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category_id` | `integer` | Yes | Top-level Blinkit category ID (the first ID after /cid/ in a category URL). |
| `latitude` | `number` | No | Latitude for location-aware assortment and pricing; defaults to Gurugram when omitted. |
| `limit` | `integer` | No | Maximum products returned. |
| `longitude` | `number` | No | Longitude for location-aware assortment and pricing; defaults to Gurugram when omitted. |
| `max_pages` | `integer` | No | Maximum upstream pages fetched to satisfy offset and limit. |
| `offset` | `integer` | No | Number of deduplicated products to skip. |
| `subcategory_id` | `string` | Yes | Blinkit subcategory ID (the second ID after /cid/; top-deal IDs may end in _td). |

### Example input

```json
{
  "category_id": 14,
  "latitude": 28.4583,
  "limit": 5,
  "longitude": 77.0728,
  "subcategory_id": "922"
}
```

## 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
{
  "category_id": 14,
  "count": 5,
  "has_more": true,
  "limit": 5,
  "results": [
    {
      "brand": "Amul",
      "group_id": 2056955,
      "image_url": "https://cdn.grofers.com/da/cms-assets/cms/product/628c97e0-5ed4-425d-a667-1d3bfa6f0bde.png",
      "inventory": 12,
      "merchant_id": "34218",
      "merchant_type": "express",
      "mrp": 36,
      "name": "Amul Gold Full Cream Milk",
      "price": 36,
      "product_id": 12872,
      "product_url": "https://blinkit.com/prn/amul-gold-full-cream-milk/prid/12872",
      "rank": 1,
      "source_url": "https://blinkit.com/v1/layout/listing_widgets?l0_cat=14&l1_cat=922",
      "variant": "500 ml"
    },
    {
      "brand": "Amul",
      "group_id": 2056959,
      "image_url": "https://cdn.grofers.com/da/cms-assets/cms/product/5734b087-3ad9-485f-bbe2-52079cd9e35d.png",
      "inventory": 12,
      "merchant_id": "34218",
      "merchant_type": "express",
      "mrp": 30,
      "name": "Amul Taaza Toned Milk",
      "price": 30,
      "product_id": 19512,
      "product_url": "https://blinkit.com/prn/amul-taaza-toned-milk/prid/19512",
      "rank": 2,
      "source_url": "https://blinkit.com/v1/layout/listing_widgets?l0_cat=14&l1_cat=922",
      "variant": "500 ml"
    },
    {
      "brand": "Amul",
      "group_id": 2056984,
      "image_url": "https://cdn.grofers.com/da/cms-assets/cms/product/rc-upload-1770981407245-4.png",
      "inventory": 12,
      "merchant_id": "34218",
      "merchant_type": "express",
      "mrp": 31,
      "name": "Amul Cow Milk",
      "price": 31,
      "product_id": 160704,
      "product_url": "https://blinkit.com/prn/amul-cow-milk/prid/160704",
      "rank": 3,
      "source_url": "https://blinkit.com/v1/layout/listing_widgets?l0_cat=14&l1_cat=922",
      "variant": "500 ml"
    }
  ],
  "source_url": "https://blinkit.com/v1/layout/listing_widgets?l0_cat=14&l1_cat=922",
  "subcategory_id": "922"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `category_id` | `integer` | 14 |
| `count` | `integer` | 5 |
| `has_more` | `boolean` | true |
| `limit` | `integer` | 5 |
| `results` | `array` | 3 items |
| `results` | `array` | 3 items |
| `source_url` | `string` | https://blinkit.com/v1/layout/listing_widgets?l0_cat=14&l1_cat=922 |
| `subcategory_id` | `string` | 922 |

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