# List categories

List PharmEasy healthcare and medicine category metadata from the live category API.

- Platform: [PharmEasy](https://docs.upscrape.com/docs/platforms/pharmeasy)
- Capability ID: `pharmeasy.list_categories`
- Cost: 1 credit per request
- Maximum runtime: 45 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": {},
  "capability": "pharmeasy.list_categories"
}'
```

## Input

This capability accepts an empty input object.

### Example input

```json
{}
```

## 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
{
  "categories": [
    {
      "category_id": 9297,
      "deeplink": "push.pharmeasy.clevertap://deeplink/healthcare_product_list?category_id=9297&category_name=Health Must Haves",
      "image_url": "https://cdn01.pharmeasy.in/dam/discovery/categoryImages/2c44c56f4f7436469bb8f93475c9ad54.png?f=png",
      "name": "Health Must Haves",
      "slug": "top-products-9297"
    },
    {
      "category_id": 575,
      "deeplink": "push.pharmeasy.clevertap://deeplink/healthcare_product_list?category_id=575&category_name=Sexual Wellness",
      "discount_text": "Upto 53% off",
      "image_url": "https://cdn01.pharmeasy.in/dam/discovery/categoryImages/24a22873d4693fb19654ea9e3fd1437d.png?f=png",
      "name": "Sexual Wellness",
      "slug": "sexual-wellness-575"
    },
    {
      "category_id": 623,
      "deeplink": "push.pharmeasy.clevertap://deeplink/healthcare_product_list?category_id=623&category_name=Vitamins and Supplements",
      "discount_text": "Upto 80% off",
      "image_url": "https://cdn01.pharmeasy.in/dam/discovery/categoryImages/71ab5b001d2c3ef699d6661a1c583998.jpg?f=jpg",
      "name": "Vitamins & Supplements",
      "slug": "fitness-supplements-623"
    }
  ]
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `categories` | `array` | 3 items |
| `categories` | `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)
