# Lybrate — 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 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-lybrate-com-api-902ee1e4/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-lybrate-com-api-902ee1e4/get_clinic_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lybrate-com-api-902ee1e4/get_doctor_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lybrate-com-api-902ee1e4/get_doctor_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lybrate-com-api-902ee1e4/get_doctor_services \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lybrate-com-api-902ee1e4/get_health_feed \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lybrate-com-api-902ee1e4/list_cities \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lybrate-com-api-902ee1e4/list_specialties \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lybrate-com-api-902ee1e4/search_doctors \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lybrate-com-api-902ee1e4/search_health_content \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
