# List Categories

List Zepto category and subcategory IDs for a store or latitude/longitude.

- Platform: [Zepto](https://docs.upscrape.com/docs/platforms/zepto)
- Capability ID: `zepto.categories`
- Cost: 1 credit per request
- Maximum runtime: 180 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

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

```bash
curl -X POST https://data.upscrape.com/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"latitude":12.96902,"longitude":77.75395},"capability":"zepto.categories"}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `latitude` | `number` | No | Latitude for location-based store resolution. |
| `longitude` | `number` | No | Longitude for location-based store resolution. |
| `store_id` | `string` | No | Zepto store ID. Defaults to the public Bangalore sample store. |

### Example input

```json
{
  "latitude": 12.96902,
  "longitude": 77.75395
}
```

## 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
{
  "count": 226,
  "location_eta_in_minutes": 4,
  "location_eta_serviceable": true,
  "location_latitude": 12.96902,
  "location_longitude": 77.75395,
  "location_secondary_store_ids": [
    "0059ff6a-7eb0-477a-a7f5-69256f2c444b"
  ],
  "location_serviceable": true,
  "location_source_url": "https://bff-gateway.zepto.com/lms/api/v2/get_page?latitude=12.96902&longitude=77.75395&page_type=HOME&version=v2&show_new_eta_banner=true&page_size=3&enforce_platform_type=DESKTOP",
  "location_store_id": "b4dc8d65-ed2e-4142-81b6-373982b13500",
  "location_store_ids": [
    "b4dc8d65-ed2e-4142-81b6-373982b13500",
    "0059ff6a-7eb0-477a-a7f5-69256f2c444b"
  ],
  "results": [
    {
      "category_id": "64374cfe-d06f-4a01-898e-c07c46462c36",
      "category_image_path": "inventory/category/[redacted:token].png",
      "category_image_url": "https://cdn.zeptonow.com/production/tr:w-600,ar-1000-1000,pr-true,f-auto,q-80/inventory/category/[redacted:token].png",
      "category_name": "Fruits & Vegetables",
      "category_priority": 1,
      "category_subcategory_ids_json": "[]",
      "category_url": "https://www.zepto.com/cn/fruits-vegetables/all/cid/64374cfe-d06f-4a01-898e-c07c46462c36/scid/e78a8422-5f20-4e4b-9a9f-22a0e53962e3",
      "discount_applicable": true,
      "display_secondary_image": true,
      "facebook_subcategory": "food & beverages > food",
      "google_subcategory": "Food, Beverages & Tobacco",
      "mrp_sp_mismatch_allowed": true,
      "price_guardrail_threshold": 20,
      "rank": 1,
      "source_url": "https://bff-gateway.zepto.com/product-assortment-service/api/v2/category/grid?store_id=b4dc8d65-ed2e-4142-81b6-373982b13500",
      "subcategory_id": "e78a8422-5f20-4e4b-9a9f-22a0e53962e3",
      "subcategory_image_path": "cms/sub_category/c067507c-a931-4a09-b701-a2171b8f6bf9.png",
      "subcategory_image_url": "https://cdn.zeptonow.com/production/tr:w-600,ar-1000-1000,pr-true,f-auto,q-80/cms/sub_category/c067507c-a931-4a09-b701-a2171b8f6bf9.png",
      "subcategory_image_v2_path": "cms/sub_category/102e9688-c220-4a0e-bc35-0f0b16de6ad1.png",
      "subcategory_image_v2_url": "https://cdn.zeptonow.com/production/tr:w-600,ar-1000-1000,pr-true,f-auto,q-80/cms/sub_category/102e9688-c220-4a0e-bc35-0f0b16de6ad1.png",
      "subcategory_name": "All",
      "subcategory_priority": 10
    },
    {
      "category_id": "64374cfe-d06f-4a01-898e-c07c46462c36",
      "category_image_path": "inventory/category/[redacted:token].png",
      "category_image_url": "https://cdn.zeptonow.com/production/tr:w-600,ar-1000-1000,pr-true,f-auto,q-80/inventory/category/[redacted:token].png",
      "category_name": "Fruits & Vegetables",
      "category_priority": 1,
      "category_subcategory_ids_json": "[]",
      "category_url": "https://www.zepto.com/cn/fruits-vegetables/fresh-vegetables/cid/64374cfe-d06f-4a01-898e-c07c46462c36/scid/b4827798-fcb6-4520-ba5b-0f2bd9bd7208",
      "discount_applicable": true,
      "display_secondary_image": true,
      "facebook_subcategory": "food & beverages > food > fruits & vegetables",
      "google_subcategory": "Food, Beverages & Tobacco",
      "mrp_sp_mismatch_allowed": true,
      "price_guardrail_threshold": 20,
      "rank": 2,
      "source_url": "https://bff-gateway.zepto.com/product-assortment-service/api/v2/category/grid?store_id=b4dc8d65-ed2e-4142-81b6-373982b13500",
      "subcategory_id": "b4827798-fcb6-4520-ba5b-0f2bd9bd7208",
      "subcategory_image_path": "cms/sub_category/694c07e0-542b-49db-a596-b1f4f4935342.png",
      "subcategory_image_url": "https://cdn.zeptonow.com/production/tr:w-600,ar-1000-1000,pr-true,f-auto,q-80/cms/sub_category/694c07e0-542b-49db-a596-b1f4f4935342.png",
      "subcategory_image_v2_path": "cms/sub_category/694c07e0-542b-49db-a596-b1f4f4935342.png",
      "subcategory_image_v2_url": "https://cdn.zeptonow.com/production/tr:w-600,ar-1000-1000,pr-true,f-auto,q-80/cms/sub_category/694c07e0-542b-49db-a596-b1f4f4935342.png",
      "subcategory_name": "Fresh Vegetables",
      "subcategory_priority": 20
    },
    {
      "category_id": "64374cfe-d06f-4a01-898e-c07c46462c36",
      "category_image_path": "inventory/category/[redacted:token].png",
      "category_image_url": "https://cdn.zeptonow.com/production/tr:w-600,ar-1000-1000,pr-true,f-auto,q-80/inventory/category/[redacted:token].png",
      "category_name": "Fruits & Vegetables",
      "category_priority": 1,
      "category_subcategory_ids_json": "[]",
      "category_url": "https://www.zepto.com/cn/fruits-vegetables/fresh-fruits/cid/64374cfe-d06f-4a01-898e-c07c46462c36/scid/09e63c15-e5f7-4712-9ff8-513250b79942",
      "discount_applicable": true,
      "display_secondary_image": true,
      "facebook_subcategory": "food & beverages > food > fruits & vegetables",
      "google_subcategory": "Food, Beverages & Tobacco",
      "mrp_sp_mismatch_allowed": true,
      "price_guardrail_threshold": 20,
      "rank": 3,
      "source_url": "https://bff-gateway.zepto.com/product-assortment-service/api/v2/category/grid?store_id=b4dc8d65-ed2e-4142-81b6-373982b13500",
      "subcategory_id": "09e63c15-e5f7-4712-9ff8-513250b79942",
      "subcategory_image_path": "cms/sub_category/7e51d0f6-ee57-42f3-98f9-945033ad3e5f.png",
      "subcategory_image_url": "https://cdn.zeptonow.com/production/tr:w-600,ar-1000-1000,pr-true,f-auto,q-80/cms/sub_category/7e51d0f6-ee57-42f3-98f9-945033ad3e5f.png",
      "subcategory_image_v2_path": "cms/sub_category/7e51d0f6-ee57-42f3-98f9-945033ad3e5f.png",
      "subcategory_image_v2_url": "https://cdn.zeptonow.com/production/tr:w-600,ar-1000-1000,pr-true,f-auto,q-80/cms/sub_category/7e51d0f6-ee57-42f3-98f9-945033ad3e5f.png",
      "subcategory_name": "Fresh Fruits",
      "subcategory_priority": 40
    }
  ],
  "source_url": "https://bff-gateway.zepto.com/product-assortment-service/api/v2/category/grid?store_id=b4dc8d65-ed2e-4142-81b6-373982b13500"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `count` | `integer` | 226 |
| `location_eta_in_minutes` | `integer` | 4 |
| `location_eta_serviceable` | `boolean` | true |
| `location_latitude` | `number` | 12.96902 |
| `location_longitude` | `number` | 77.75395 |
| `location_secondary_store_ids` | `array` | 1 items |
| `location_secondary_store_ids` | `array` | 1 items |
| `location_serviceable` | `boolean` | true |
| `location_source_url` | `string` | https://bff-gateway.zepto.com/lms/api/v2/get_page?latitude=12.96902&lon… |
| `location_store_id` | `string` | b4dc8d65-ed2e-4142-81b6-373982b13500 |
| `location_store_ids` | `array` | 2 items |
| `location_store_ids` | `array` | 2 items |
| `results` | `array` | 3 items |
| `results` | `array` | 3 items |
| `source_url` | `string` | https://bff-gateway.zepto.com/product-assortment-service/api/v2/categor… |

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

See [jobs and results](https://docs.upscrape.com/docs/api/jobs), [errors and retries](https://docs.upscrape.com/docs/api/errors), and [idempotency](https://docs.upscrape.com/docs/api/idempotency).

## Machine-readable contract

- [Capability OpenAPI 3.1](https://docs.upscrape.com/docs/platforms/zepto/zepto.categories/openapi.json)
- [Platform OpenAPI 3.1](https://upscrape.com/scrapers/zepto/openapi.json)
- [Focused coding-agent prompt](https://upscrape.com/scrapers/zepto/capabilities/zepto.categories/llm.md)
