# Flipkart — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Retrieve detailed product reviews and ratings from Flipkart, including overall rating summaries, star breakdowns, and individual review content with pagination support. Monitor customer feedback, ratings distribution, and specific review details to make informed purchasing decisions.

**Category:** Reviews & Ratings | **Website:** [www.flipkart.com/nivea-body-milk-nourishing-lotion-400ml-120-ml-pack-2/product-reviews/itmf6y86zahhzntz?pid=MSCF6Y86XFKRFZDG&lid=LSTMSCF6Y86XFKRFZDG42HEUC&aid=overall&certifiedBuyer=false&sortOrder=MOST_RECENT](https://www.flipkart.com/nivea-body-milk-nourishing-lotion-400ml-120-ml-pack-2/product-reviews/itmf6y86zahhzntz?pid=MSCF6Y86XFKRFZDG&lid=LSTMSCF6Y86XFKRFZDG42HEUC&aid=overall&certifiedBuyer=false&sortOrder=MOST_RECENT) | **Docs:** [parse.bot/marketplace/630a7b9c-6e04-46bb-b551-fad4ca462c43/flipkart-com-api](https://parse.bot/marketplace/630a7b9c-6e04-46bb-b551-fad4ca462c43/flipkart-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-flipkart-com-api-630a7b9c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_rating_summary

Get the rating summary for a Flipkart product including average rating, total ratings count, total reviews count, and rating breakdown by each star level (1-5 stars).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_url` | string | Yes | Flipkart product reviews URL path including query params. Format: /product-name/product-reviews/itemid?pid=PRODUCT_ID&lid=LISTING_ID (e.g. /nivea-body-milk-nourishing-lotion-400ml-120-ml-pack-2/product-reviews/itmf6y86zahhzntz?pid=MSCF6Y86XFKRFZDG&lid=LSTMSCF6Y86XFKRFZDG42HEUC) |
| `sort_order` | string | No | Sort order for reviews context. Accepts: MOST_RECENT, MOST_HELPFUL, POSITIVE_FIRST, NEGATIVE_FIRST. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flipkart-com-api-630a7b9c/get_rating_summary \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_url":"<string>","sort_order":"<string>"}'
```

### get_reviews

Get individual product reviews with full details including author, rating, title, text, date, location, and product attributes. Returns paginated results (10 reviews per page).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `certified_buyer` | string | No | Filter to show only certified buyer reviews. Accepts: true, false. |
| `page` | string | No | Page number for pagination (1-based). |
| `product_url` | string | Yes | Flipkart product reviews URL path including query params. Format: /product-name/product-reviews/itemid?pid=PRODUCT_ID&lid=LISTING_ID (e.g. /nivea-body-milk-nourishing-lotion-400ml-120-ml-pack-2/product-reviews/itmf6y86zahhzntz?pid=MSCF6Y86XFKRFZDG&lid=LSTMSCF6Y86XFKRFZDG42HEUC) |
| `sort_order` | string | No | Sort order for reviews. Accepts: MOST_RECENT, MOST_HELPFUL, POSITIVE_FIRST, NEGATIVE_FIRST. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flipkart-com-api-630a7b9c/get_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"certified_buyer":"<string>","page":"<string>","product_url":"<string>","sort_order":"<string>"}'
```

### search_products

Search Flipkart for products matching a text query. Returns up to ~24 product results per page from Flipkart's search results page, parsed from SSR state. Each result includes product ID, name, URL, average rating, and review count when available. Pagination via the page parameter.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | string | No | Page number for pagination (1-based). |
| `query` | string | Yes | Search query text (e.g. 'samsung galaxy phone', 'HP LAPTOP', 'headphones'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flipkart-com-api-630a7b9c/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","query":"<string>"}'
```
