Tata 1mg Product Substitutes API
Read a product's public substitute list with each alternative's per-unit price and cheaper or costlier relation.
- 1 credit per call
- Failed calls are free
- Updated
- tata-1mg.product.substitutes
{ "product_id": "74467", "product_url": "https://www.1mg.com/drugs/dolo-650-tablet-74467", "total": 4, "substitutes": [ { "name": "Leemol 650mg Tablet", "price": 1.57, "currency": "INR", "price_unit": "tablet", "product_id": "542355", "relation": "24% cheaper", "url": "https://www.1mg.com/drugs/leemol-650mg-tablet-542355" }, { "name": "Sumo L 650 Fast Tablet", "price": 2.14, "currency": "INR", "price_unit": "tablet", "product_id": "1138272", "relation": "3% costlier", "url": "https://www.1mg.com/otc/sumo-l-650-fast-tablet-otc1138272" } ]}
| # | Name | Price | Currency | Price unit | Relation | Product id | Url |
|---|---|---|---|---|---|---|---|
| 1 | Leemol 650mg Tablet | 1.57 | INR | tablet | 24% cheaper | 542355 | https://www.1mg.com/drugs/leemol-650mg-tablet-542355 |
| 2 | Sumo L 650 Fast Tablet | 2.14 | INR | tablet | 3% costlier | 1138272 | https://www.1mg.com/otc/sumo-l-650-fast-tablet-otc1138272 |
| 3 | P 650 Tablet | 2.15 | INR | tablet | 4% costlier | 71116 | https://www.1mg.com/drugs/p-650-tablet-71116 |
What you send
The input
object of the request, with every field the endpoint accepts.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| url | string | yes | Public URL of the page to fetch. | https://www.1mg.com/drugs/dolo-650-tablet-74467 |
| limit | integer | no | Maximum number of results to return. From 1 to 100. Default: 12. |
10 |
| max_pages | integer | no | Maximum number of result pages to fetch. From 1 to 10. Default: 1. |
1 |
| page | integer | no | One-based result page to fetch. From 1 to 100. Default: 1. |
1 |
Fields it returns
What each record in the response holds, with the values from the sample above.
| Field | Type | Example |
|---|---|---|
| substitutes[].name | string | Leemol 650mg Tablet |
| substitutes[].price | number | 1.57 |
| substitutes[].currency | string | INR |
| substitutes[].price_unit | string | tablet |
| substitutes[].product_id | string | 542355 |
| substitutes[].relation | string | 24% cheaper |
| substitutes[].url | string | https://www.1mg.com/drugs/leemol-650mg-tablet-542355 |
| product_id | string | 74467 |
| product_url | string | https://www.1mg.com/drugs/dolo-650-tablet-74467 |
| substitutes | array | 3 records |
| total | integer | 4 |
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": "tata-1mg.product.substitutes", "input": { "limit": 10, "max_pages": 1, "page": 1, "url": "https://www.1mg.com/drugs/dolo-650-tablet-74467" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "tata-1mg.product.substitutes", "input": { "limit": 10, "max_pages": 1, "page": 1, "url": "https://www.1mg.com/drugs/dolo-650-tablet-74467" }}''')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": "tata-1mg.product.substitutes", "input": { "limit": 10, "max_pages": 1, "page": 1, "url": "https://www.1mg.com/drugs/dolo-650-tablet-74467" }}),});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 Tata 1mg product substitutes for https://www.1mg.com/drugs/dolo-650-tablet-74467. Tell me what it costs before you run it, then show the results as a table.
More from the Tata 1mg API
The same data from other platforms
Tata 1mg Product Substitutes API FAQ
The short answers. The docs have the long ones.
How much does the Tata 1mg 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 url. The input fields below list every option with its type and limits.
Do I need a Tata 1mg login?
No. It reads public Tata 1mg data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds tata-1mg.product.substitutes, checks its price and runs it with the same credits as the REST API.
Your first Tata 1mg call is free.
Up to 100 free credits to start, no card needed.