↑ ↓ to move ↵ to open
PharmEasy API reference

PharmEasy Product Substitutes

pharmeasy.product.substitutes

List same-composition PharmEasy substitute products with selling price, printed MRP, manufacturer and pack.

At a glance

Endpoint ID
pharmeasy.product.substitutes
Price
1 credit per call; failed calls are free
Runs for up to
45 seconds
Request
POST /execute
Run an endpoint
MCP tool when pinned
pharmeasy__product__substitutes
Pin tools
OpenAPI
openapi.json
Download

Request

Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.

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"  }}'

Input

FieldTypeRequiredWhat it doesExample
medicine_slug string yes Canonical PharmEasy medicine slug without a URL or path. dolo-650mg-strip-of-15-tablets-44140

Response

A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.

This is results[0].data from a real run:

results[0].data
{  "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"    }  ]}

Fields

FieldTypeExample
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

If a call fails

A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.

Other PharmEasy endpoints

Something missing or unclear? Ask the team that builds the PharmEasy endpoints.