# Products List

List products for a Nana store category.

- Platform: [Nana Express](https://docs.upscrape.com/docs/platforms/nana)
- Capability ID: `nana.products.list`
- Cost: 1 credit per request
- Maximum runtime: 30 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": "COL2581000813",
    "store_id": "STR00002232"
  },
  "capability": "nana.products.list"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category_id` | `string` | Yes | The category ID obtained from nana.categories.list |
| `category_name` | `string` | No | Optional category display name from nana.categories.list, preserved in normalized output. |
| `store_id` | `string` | Yes | Known Nana store ID supplied by the caller; this temporary release does not dynamically resolve store IDs. |

### Example input

```json
{
  "category_id": "COL2581000813",
  "store_id": "STR00002232"
}
```

## 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
{
  "products": [
    {
      "brand": "Activia",
      "currency": "SAR",
      "dynamics_product_id": "DPID0040682",
      "id": "[redacted:token]",
      "image_url": "https://storage.googleapis.com/catalog-pim/catalog/c/f/3/5/[redacted:token].jpg",
      "in_stock": true,
      "item_unit": "PCs",
      "max_quantity": 14,
      "name": "Activia Kefir Milk Full Fat - 280ml",
      "pid": "PID10309625",
      "price": 6.5,
      "selling_unit": "ML"
    },
    {
      "brand": " Galaxy",
      "currency": "SAR",
      "dynamics_product_id": "DPID0039325",
      "id": "[redacted:token]",
      "image_url": "https://storage.googleapis.com/catalog-pim/catalog/c/1/e/5/[redacted:token].jpg",
      "in_stock": true,
      "item_unit": "PCs",
      "max_quantity": 41,
      "name": "Galaxy Chocolate With Hazelnut Minis - 11 Bars - 137.5g",
      "pid": "PID10308268",
      "price": 21,
      "selling_unit": "Gram"
    },
    {
      "brand": "Nunu",
      "currency": "SAR",
      "dynamics_product_id": "DPID0038028",
      "id": "[redacted:token]",
      "image_url": "https://storage.googleapis.com/catalog-pim/catalog/4/c/9/8/[redacted:token].jpg",
      "in_stock": true,
      "item_unit": "PCs",
      "max_quantity": 7,
      "name": "Nunu Moisturising Oil Gel with a Refreshing Scent Enriched with Vitamin E  - 200ml",
      "pid": "PID10306971",
      "price": 34,
      "selling_unit": "ML"
    }
  ]
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `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)
