PharmEasy Product Substitutes API
List same-composition PharmEasy substitute products with selling price, printed MRP, manufacturer and pack.
- 1 credit per call
- Failed calls are free
- Updated
- pharmeasy.product.substitutes
{ "count": 1, "medicine_id": "44140", "substitutes": [ { "name": "Welset 650mg Strip Of 10 Tablets", "price": 14.08, "mrp": 19.02, "availability": "available", "composition": "PARACETAMOL / ACETAMINOPHEN(650.0 MG)", "currency": "INR", "discount_percent": 26, "manufacturer": "RANBAXY LABORATORIES (SUN PHARMA)", "percent_cheaper": 10.94, "prescription_required": false, "product_id": "73928", "relation": "cheaper", "slug": "welset-650mg-strip-of-10-tablets-73928", "subtitle": "10 Tablet(s) in Strip", "url": "https://pharmeasy.in/health-care/products/welset-650mg-strip-of-10-tablets-73928" } ]}
What you send
The input
object of the request, with every field the endpoint accepts.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| medicine_slug | string | yes | Canonical PharmEasy medicine slug without a URL or path. | dolo-650mg-strip-of-15-tablets-44140 |
Fields it returns
What each record in the response holds, with the values from the sample above.
| Field | Type | Example |
|---|---|---|
| substitutes[].name | string | Welset 650mg Strip Of 10 Tablets |
| substitutes[].price | number | 14.08 |
| substitutes[].mrp | number | 19.02 |
| substitutes[].availability | string | available |
| substitutes[].composition | string | PARACETAMOL / ACETAMINOPHEN(650.0 MG) |
| substitutes[].currency | string | INR |
| substitutes[].discount_percent | integer | 26 |
| substitutes[].manufacturer | string | RANBAXY LABORATORIES (SUN PHARMA) |
| substitutes[].percent_cheaper | number | 10.94 |
| substitutes[].prescription_required | boolean | false |
| substitutes[].product_id | string | 73928 |
| substitutes[].relation | string | cheaper |
| substitutes[].slug | string | welset-650mg-strip-of-10-tablets-73928 |
| substitutes[].subtitle | string | 10 Tablet(s) in Strip |
| substitutes[].url | string | https://pharmeasy.in/health-care/products/welset-650mg-strip-of… |
| count | integer | 1 |
| medicine_id | string | 44140 |
| substitutes | array | 1 records |
Call it from your code, or ask your agent
Set UPSCRAPE_API_KEY to your key and copy a working request.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "pharmeasy.product.substitutes", "input": { "medicine_slug": "dolo-650mg-strip-of-15-tablets-44140" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "pharmeasy.product.substitutes", "input": { "medicine_slug": "dolo-650mg-strip-of-15-tablets-44140" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "pharmeasy.product.substitutes", "input": { "medicine_slug": "dolo-650mg-strip-of-15-tablets-44140" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
https://data.upscrape.com/mcp
With Upscrape, get the PharmEasy product substitutes for medicine slug "dolo-650mg-strip-of-15-tablets-44140". Tell me what it costs before you run it, then show the results as a table.
More from the PharmEasy API
PharmEasy Product Substitutes API FAQ
The short answers. The docs have the long ones.
How much does the PharmEasy Product Substitutes API cost?
1 credit per successful call, shown before it runs. You buy credits once, and paid credits never expire.
What do I send?
Send medicine_slug. The input fields below list every option with its type and limits.
Do I need a PharmEasy login?
No. It reads public PharmEasy data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds pharmeasy.product.substitutes, checks its price and runs it with the same credits as the REST API.
Your first PharmEasy call is free.
Up to 100 free credits to start, no card needed.