PharmEasy API reference
Get PharmEasy medicines as clean JSON: search by name, then read a medicine's price, composition, manufacturer, availability and whether it needs a prescription.
The PharmEasy API has 6 endpoints, called the same way: POST /execute with the endpoint ID as capability and its fields as input, or pin PharmEasy in the MCP server and call each one as a tool. The data comes back as JSON in results[0].data, with what the call cost in billing.credits_charged.
The inputs you send most are medicine_slug and query. Prices run from 1 credit to 10 credits per call, and a failed call costs nothing.
Endpoints
Open an endpoint for its input, the fields it returns and the request in cURL, Python and Node.js.
| Endpoint | What it returns | Price |
|---|---|---|
pharmeasy.search_medicines |
Search PharmEasy medicines and health products by name: each result's name, pack, active ingredients, whether it needs a prescription and its slug. | 10 credits |
pharmeasy.get_medicine_details |
Get one medicine from its slug: price, brand, manufacturer, composition, availability and prescription status, for a PIN code if you give one. | 1 credit |
pharmeasy.list_categories |
List PharmEasy's health and medicine categories. | 1 credit |
pharmeasy.category.products |
Walk a public PharmEasy category from a category id and return its products with their selling price and printed MRP. | 10 credits |
pharmeasy.product.substitutes |
List same-composition PharmEasy substitute products with selling price, printed MRP, manufacturer and pack. | 1 credit |
pharmeasy.search_products |
Search the public PharmEasy catalogue and return each result with its selling price and printed MRP. | 10 credits |
What to know
- Search, then details Search returns each medicine's slug. Send the slug to the details endpoint for its price and composition.
- Prices in rupees Prices are what PharmEasy shows a shopper, in Indian rupees.
- Prescription status as listed Whether a medicine needs a prescription is what PharmEasy states for it.
- Composition as listed Active ingredients and strengths are what PharmEasy lists for each product.
Something missing or unclear? Ask the team that builds the PharmEasy endpoints.