# Apollo247 — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and compare medicines, view detailed product information, discover lab tests, and locate nearby Apollo 24|7 pharmacy stores. Browse medical specialties and popular diagnostic services to plan your healthcare needs in one convenient platform.

**Category:** Healthcare | **Website:** [apollo247.com/](https://apollo247.com/) | **Docs:** [parse.bot/marketplace/5499d8e1-893c-416a-a24f-534ae0c82887/apollo247-com-api](https://parse.bot/marketplace/5499d8e1-893c-416a-a24f-534ae0c82887/apollo247-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/apollo247/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get medicine details

Get full details of a specific medicine or health product by SKU code. Returns comprehensive product information including composition, uses, side effects, FAQs, drug interactions, safety advice, and pricing. The SKU is obtainable from search_medicines results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | The product SKU code in uppercase alphanumeric format (e.g. 'DOL0026', 'CRO0091'). Obtainable from search_medicines results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/apollo247/get-medicine-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"sku":"<string>"}'
```

### Get nearby stores

Find nearby Apollo Pharmacy stores based on geographic coordinates. Returns store details including name, address, contact number, distance from the search point, and operating status (open/closed).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lat` | string | Yes | Latitude coordinate of the search location (e.g. '28.6448' for Delhi, '12.9716' for Bangalore). |
| `lng` | string | Yes | Longitude coordinate of the search location (e.g. '77.216721' for Delhi, '77.5946' for Bangalore). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/apollo247/get-nearby-stores \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<string>","lng":"<string>"}'
```

### Get popular lab tests

Retrieve popular lab tests for a specific city. Returns a list of commonly booked tests with their names, IDs, inclusions, and test parameters.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | integer | No | City ID for which to retrieve popular tests. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/apollo247/get-popular-lab-tests \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"city":"<integer>"}'
```

### List doctor specialties

Retrieve all medical specialties available for doctor consultations on the Apollo 24|7 platform. Returns specialty names, descriptions, associated symptoms, and display metadata. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/apollo247/list-doctor-specialties \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search lab tests

Search for lab tests and diagnostic packages by keyword. Returns test details including pricing, inclusions, test parameter counts, and descriptions. Results are scoped to a default city (Delhi/NCR).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword for the lab test (e.g. 'lipid profile', 'CBC', 'thyroid', 'vitamin d'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/apollo247/search-lab-tests \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### Search medicines

Search for medicines and health products by name or keyword. Returns product listings with pricing, availability, delivery information, and search suggestions. Paginates via page number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search term for the product (e.g. 'paracetamol', 'dolo', 'vitamin d'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/apollo247/search-medicines \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.