# Flipkart — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/flipkart/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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.beta.paywithlocus.com/api/wrapped/credits/flipkart/get-rating-summary \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/flipkart/get-reviews \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/flipkart/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.