# Get medicine details

Read public PharmEasy medicine detail metadata, price, availability, prescription requirement, and active ingredients.

- Platform: [PharmEasy](https://docs.upscrape.com/docs/platforms/pharmeasy)
- Capability ID: `pharmeasy.get_medicine_details`
- 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": {
    "medicine_slug": "dolo-650mg-strip-of-15-tablets-44140",
    "pincode": "400001"
  },
  "capability": "pharmeasy.get_medicine_details"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `medicine_slug` | `string` | Yes | Canonical PharmEasy product slug without a URL or path. |
| `pincode` | `string` | No | Optional six-digit Indian PIN code used for location targeting. |

### Example input

```json
{
  "medicine_slug": "dolo-650mg-strip-of-15-tablets-44140",
  "pincode": "400001"
}
```

## 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
{
  "medicine": {
    "active_ingredients": [
      "Paracetamol / Acetaminophen(650.0 Mg)"
    ],
    "availability": "https://schema.org/InStock",
    "brand": "DOLO",
    "composition": "Paracetamol / Acetaminophen(650.0 Mg)",
    "currency": "INR",
    "manufacturer": "MICRO LABS",
    "medicine_id": "44140",
    "name": "Dolo 650 Tablet",
    "prescription_required": false,
    "prescription_status": "https://schema.org/OTC",
    "price": 24.09,
    "slug": "dolo-650mg-strip-of-15-tablets-44140",
    "url": "https://pharmeasy.in/online-medicine-order/dolo-650mg-strip-of-15-tablets-44140"
  }
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `medicine` | `object` | 13 fields |
| `medicine.active_ingredients` | `array` | 1 items |
| `medicine.availability` | `string` | https://schema.org/InStock |
| `medicine.brand` | `string` | DOLO |
| `medicine.composition` | `string` | Paracetamol / Acetaminophen(650.0 Mg) |
| `medicine.currency` | `string` | INR |
| `medicine.manufacturer` | `string` | MICRO LABS |
| `medicine.medicine_id` | `string` | 44140 |
| `medicine.name` | `string` | Dolo 650 Tablet |
| `medicine.prescription_required` | `boolean` | false |
| `medicine.prescription_status` | `string` | https://schema.org/OTC |
| `medicine.price` | `number` | 24.09 |
| `medicine.slug` | `string` | dolo-650mg-strip-of-15-tablets-44140 |
| `medicine.url` | `string` | https://pharmeasy.in/online-medicine-order/dolo-650mg-strip-of-15-table… |

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