Tata 1mg Product Reviews
tata-1mg.product.reviews
Read a product's rating, review count and the reviews 1mg shows publicly, without reviewer names.
At a glance
- Endpoint ID
tata-1mg.product.reviews- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 45 seconds
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": "tata-1mg.product.reviews", "input": { "limit": 20, "max_pages": 1, "page": 1, "url": "https://www.1mg.com/otc/biotin-advanced-tablet-for-healthy-hair-otc842970" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "tata-1mg.product.reviews", "input": { "limit": 20, "max_pages": 1, "page": 1, "url": "https://www.1mg.com/otc/biotin-advanced-tablet-for-healthy-hair-otc842970" }}''')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.reviews", "input": { "limit": 20, "max_pages": 1, "page": 1, "url": "https://www.1mg.com/otc/biotin-advanced-tablet-for-healthy-hair-otc842970" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
url |
string | yes | The product's page on 1mg.com. | https://www.1mg.com/otc/biotin-advanced-tablet-… |
limit |
integer | no | How many reviews to return. | 20 |
max_pages |
integer | no | Keep at 1; later pages are not offered yet. | 1 |
page |
integer | no | The first page; later pages are not offered yet. | 1 |
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:
{ "rating": 4.2, "review_count": 396, "end_page": 1, "has_more": false, "product_id": "842970", "start_page": 1, "total": 3, "reviews": [ { "title": "Good product. Have seen improvement in hair fall control", "body": "Good product. Have seen improvement in hair fall control", "rating": 5, "verified": false }, { "title": "Its smells a lot. Stored in shelf Whenever I open there this pungent smell Same when I take the tablet. It smells Other multivitamin tablet…", "body": "Its smells a lot. Stored in shelf Whenever I open there this pungent smell Same when I take the tablet. It smells Other multivitamin tablet…", "rating": 3, "verified": false } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
reviews[].title |
string | The review's headline. | Good product. Have seen improvement in hair fall control |
reviews[].body |
string | The review text. | Good product. Have seen improvement in hair fall control |
reviews[].rating |
integer | The star rating the reviewer gave. | 5 |
reviews[].verified |
boolean | Whether Tata 1mg marks the reviewer as a verified buyer. | false |
rating |
number | The star rating the reviewer gave. | 4.2 |
review_count |
integer | How many reviews the product has. | 396 |
reviews |
array | The reviews. | 3 records |
end_page |
integer | The last results page read in this call. | 1 |
has_more |
boolean | Whether more results follow. | false |
product_id |
string | Tata 1mg's ID for the product; the product and reviews endpoints take it. | 842970 |
start_page |
integer | The first results page read in this call. | 1 |
total |
integer | How many reviews this response holds. | 3 |
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 Tata 1mg endpoints
Something missing or unclear? Ask the team that builds the Tata 1mg endpoints.