# Pharmeasy — 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 medicines and healthcare products across PharmEasy's catalog while checking real-time pricing and availability in your area. Find exactly what you need with location-specific information to compare costs and stock status before making a purchase.

**Category:** Healthcare | **Website:** [pharmeasy.in/](https://pharmeasy.in/) | **Docs:** [parse.bot/marketplace/152e41f9-0454-4463-a6a8-1f5912b30fc9/pharmeasy-in-api](https://parse.bot/marketplace/152e41f9-0454-4463-a6a8-1f5912b30fc9/pharmeasy-in-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-pharmeasy-in-api-152e41f9/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### search_medicines

Search for medicines by name or keyword with location-based availability and pricing. Returns paginated results (approximately 15 products per page) filtered to actual medicine/product listings. Each result includes pricing, manufacturer, availability status, prescription requirement, and product images. Page 1 is returned when page is omitted.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `location` | string | No | City name (e.g. 'mumbai', 'delhi', 'bangalore') or 6-digit Indian PIN code (e.g. '400001'). Determines product availability and pricing. When omitted, defaults to Delhi (110001). |
| `page` | integer | No | Page number for pagination, starting at 1. |
| `query` | string | Yes | Medicine name or keyword to search for (e.g. 'paracetamol', 'crocin', 'vitamin d'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-pharmeasy-in-api-152e41f9/search_medicines \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location":"<string>","page":"<integer>","query":"<string>"}'
```
