Flipkart Product Reviews
flipkart.product.reviews
Read a product's reviews: rating, title, text, helpful votes and verified-buyer status, sorted and filtered by aspect such as Camera.
At a glance
- Endpoint ID
flipkart.product.reviews- Price
- 5 credits per 10 results 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": "flipkart.product.reviews", "input": { "max_pages": 3, "url": "https://www.flipkart.com/apple-iphone-16-black-128-gb/p/itmb07d67f995271?pid=MOBH4DQFG8NKFRDY" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "flipkart.product.reviews", "input": { "max_pages": 3, "url": "https://www.flipkart.com/apple-iphone-16-black-128-gb/p/itmb07d67f995271?pid=MOBH4DQFG8NKFRDY" }}''')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": "flipkart.product.reviews", "input": { "max_pages": 3, "url": "https://www.flipkart.com/apple-iphone-16-black-128-gb/p/itmb07d67f995271?pid=MOBH4DQFG8NKFRDY" }}),});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 |
|---|---|---|---|---|
product_id |
string | one of | The product ID, as an alternative to the URL. | |
url |
string | one of | The product's Flipkart URL. | https://www.flipkart.com/apple-iphone-16-black-… |
aspect |
string | no | Only reviews about one aspect, such as Camera. The response lists the product's aspects. | |
max_pages |
integer | no | How many pages of reviews to read in this call. | 3 |
page |
integer | no | Which page of reviews to start from. | |
sort |
string | no | Most helpful, most recent, positive first or negative first. | most_helpful · most_recent · positive_first · n… |
verified_only |
boolean | no | Only reviews from verified buyers. |
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:
{ "end_page": 3, "has_more": true, "product_id": "MOBH4DQFG8NKFRDY", "sort": "most_helpful", "start_page": 1, "verified_only": false, "reviews": [ { "title": "Fabulous!", "rating": 5, "comment": "The iPhone 16 is the best phone in this price range.\nThe camera is awesome and provides great photos and videos.\nI think best purchased eve…", "helpful_votes": 576, "review_id": "b72fa382-81b1-4554-8ee0-b41ded6a1426", "verified_purchase": true }, { "title": "Excellent", "rating": 5, "comment": "Suits me", "helpful_votes": 1899, "review_id": "713cef68-ab50-4410-8ce3-d61fc80f8915", "verified_purchase": true } ], "aspects": [ { "name": "Overall", "id": "overall" }, { "name": "Camera", "id": "dc0f2b2d-7619-44cc-b5fc-2fe3e4d453a7" } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
reviews[].rating |
integer | The star rating. | 5 |
reviews[].title |
string | The review's headline. | Fabulous! |
reviews[].comment |
string | The review text. | The iPhone 16 is the best phone in this price range. The camera… |
reviews[].helpful_votes |
integer | How many shoppers found the review helpful. | 576 |
reviews[].verified_purchase |
boolean | Whether Flipkart marks it as a certified buyer. | true |
reviews[].review_id |
string | Flipkart's ID for the review. | b72fa382-81b1-4554-8ee0-b41ded6a1426 |
reviews |
array | The reviews. | 30 records |
aspects |
array | The parts of the product reviewers rate. | 8 records |
aspects[].id |
string | Flipkart's ID for the aspect. | overall |
aspects[].name |
string | The aspect's name, such as camera or battery. | Overall |
end_page |
integer | The last results page read in this call. | 3 |
has_more |
boolean | Whether more results follow. | true |
product_id |
string | Flipkart's ID for the product; the product endpoints take it. | MOBH4DQFG8NKFRDY |
sort |
string | The order the reviews were read in. | most_helpful |
start_page |
integer | The first results page read in this call. | 1 |
verified_only |
boolean | Whether only certified buyers' reviews were read. | false |
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 Flipkart Commerce endpoints
Something missing or unclear? Ask the team that builds the Flipkart Commerce endpoints.