# Lybrate — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for doctors across Indian cities and specialties, view detailed profiles with patient reviews and services, and discover clinic information and health content all in one place. Find the right healthcare provider by browsing ratings, qualifications, and medical expertise tailored to your needs.

**Category:** Healthcare | **Website:** [lybrate.com/](https://lybrate.com/) | **Docs:** [parse.bot/marketplace/902ee1e4-ce76-4d9b-be4d-a87c61627db5/lybrate-com-api](https://parse.bot/marketplace/902ee1e4-ce76-4d9b-be4d-a87c61627db5/lybrate-com-api)

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

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/lybrate/`
**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 clinic details

Get details for a specific clinic by its city and slug. Returns clinic profile including name, address, specialities, photos, reviews, doctor mappings, and availability. Find valid clinic slugs from doctor profiles (clinicLocation.slug field in search_doctors results).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | Yes | City name (e.g., 'delhi', 'mumbai') |
| `slug` | string | Yes | Clinic's URL slug from search_doctors results clinicLocation.slug field (e.g., 'advanced-dermatology-and-hair-transplant-clinic-kalkaji') |

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

### Get doctor profile

Get full details for a specific doctor by their city and URL slug. Returns comprehensive profile data including education, experience, clinic locations, reviews, health feed posts, and media content. The slug is found in search_doctors results as the 'username' field.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | Yes | City name (e.g., 'delhi', 'mumbai') |
| `slug` | string | Yes | Doctor's URL slug from search_doctors results 'username' field (e.g., 'dr-sunakshi-singh-dermatologist') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lybrate/get-doctor-profile \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"city":"<string>","slug":"<string>"}'
```

### Get doctor reviews

Get patient reviews for a specific doctor. Extracts structured review data including review text and author from the doctor's profile page using structured data markup.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | Yes | City name (e.g., 'delhi', 'mumbai') |
| `slug` | string | Yes | Doctor's URL slug from search_doctors results 'username' field (e.g., 'dr-sunakshi-singh-dermatologist') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lybrate/get-doctor-reviews \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"city":"<string>","slug":"<string>"}'
```

### Get doctor services

Get services and expertises offered by a specific doctor, including procedures, sub-specialities, and expertise areas. Returns categorized arrays of the doctor's capabilities.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | Yes | City name (e.g., 'delhi', 'mumbai') |
| `slug` | string | Yes | Doctor's URL slug from search_doctors results 'username' field (e.g., 'dr-sunakshi-singh-dermatologist') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lybrate/get-doctor-services \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"city":"<string>","slug":"<string>"}'
```

### Get health feed

Browse the paginated health feed containing articles, Q&As, and health tips from doctors on Lybrate. Returns a page of feed items with metadata for pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination, starts at 1 |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lybrate/get-health-feed \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### List cities

Get all Indian cities where Lybrate has doctor listings. Returns recently searched cities and a full alphabetical list of other cities. No parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### List specialties

Get the full list of medical specialties, common issues, and treatments available on Lybrate. Returns categorized arrays of specialties, issues, and treatments.

**Estimated cost:** Metered

_No parameters required._

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

### Search doctors

Search for doctors by city and optional specialty. Returns paginated results with doctor profiles, clinic locations, consultation fees, and availability information. Results are sorted by Lybrate's internal ranking. Use the username field from results as the slug for get_doctor_profile.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | Yes | City name to search in (e.g., 'delhi', 'mumbai', 'bangalore') |
| `page` | integer | No | Page number for pagination, starts at 1 |
| `specialty` | string | No | Medical specialty to filter by (e.g., 'dermatologist', 'dentist', 'general-physician') |

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

### Search health content

Search across health content (articles, Q&As) by keyword. Returns paginated feed items matching the search query with metadata about the topic.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword or phrase (e.g., 'diabetes', 'hair loss', 'skin care') |

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

## Next steps

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