The Flipkart scraper API for product search data
Search Flipkart and get priced products as JSON. Send a keyword or a category URL to begin.
Flipkart Products API at a glance
This API returns Flipkart search results for one keyword. Send a POST request with a query, then read each product from the products array. Run the example below to see the exact shape.
- Endpoint
POST /v1/data/flipkart/products- Authentication
- API key as
Authorization: Bearer wh_… - Stage
- Stable
- Output
- A products array with pid, title, brand, price, discount, rating, review counts and availability
- Input
- A query, or a Flipkart search or category URL in url
- Results per request
- 1 to 100 with num_results. The default is 20.
- Paging
- Start page 1 to 20 with page, and cap fetched pages from 1 to 10 with page_limit
- Enrichment
- include_product_details is on by default and adds data from each product page
- Credit weight
- 1. See the pricing page for current rates.
One request, structured JSON.
This request searches Flipkart for running shoes and asks the API for three products back. The response below shows two of the three returned. Check stop_reason to see why the run ended, since the products arrive in the same response as the request.
curl -X POST "https://api.datablue.dev/v1/data/flipkart/products" \
-H "Authorization: Bearer wh_..." \
-H "Content-Type: application/json" \
-d '{
"query": "running shoes",
"num_results": 3
}'{
"success": true,
"source": "flipkart",
"query": "running shoes",
"page": 1,
"pages_fetched": 1,
"requested_count": 3,
"returned_count": 3,
"is_complete": true,
"has_more": true,
"stop_reason": "requested_count_reached",
"products": [
{
"position": 1,
"pid": "SHOHRY57WJQFPKEH",
"listing_id": "LSTSHOHRY57WJQFPKEHHINY4N",
"category": "CasualSpShoe",
"title": "Yes'No Lightweight Mesh Lace-Up Men's Sports/Running Shoes | Slip-On for Daily Wear Sneakers For Men",
"brand": "Yes'No",
"price_value": 842,
"currency": "INR",
"original_price": "Rs. 2,499",
"discount_percent": 66,
"rating": 4,
"rating_count": 2651,
"review_count": 132,
"rating_breakdown": { "1": 399, "2": 126, "3": 202, "4": 327, "5": 1597 },
"availability_status": "IN_STOCK",
"is_available": true,
"is_flipkart_advantage": false,
"is_sponsored": false
},
{
"position": 2,
"pid": "SHOHSS7SH8DBMGGY",
"listing_id": "LSTSHOHSS7SH8DBMGGYZ2MWRL",
"category": "CasualShoe",
"title": "zolto White Men Sports Running Shoes Outdoors For Men",
"brand": "zolto",
"price_value": 480,
"currency": "INR",
"original_price": "Rs. 1,199",
"discount_percent": 59,
"rating": 4.1,
"rating_count": 139,
"review_count": 5,
"rating_breakdown": { "1": 18, "2": 6, "3": 8, "4": 22, "5": 85 },
"availability_status": "IN_STOCK",
"is_available": true,
"is_flipkart_advantage": true,
"is_sponsored": false
}
]
}What a Flipkart product returns.
Each product arrives as one flat object.
Identity
Every product has a pid and a listing_id. Pass the pid to Flipkart Product for full detail.
Title and link
Each product has a title and a brand, and the url field links to the listing so you check results by eye.
Price and discount
Each product has price_value as a plain number in INR. The original_price and discount_percent fields show the markdown, so compare them to spot a deep cut.
Ratings
Each product carries a rating and a rating_count. The rating_breakdown object gives a count for each star from 1 to 5, while review_count holds its own figure. Sort on rating_count to find the products shoppers rate most.
Stock and badges
The availability_status and is_available fields show stock, and the is_sponsored flag marks a product as sponsored. The is_flipkart_advantage flag is also returned for each product.
Run summary
The response also reports returned_count and has_more for each run, so read is_complete and stop_reason to see how a run ended.
Rank
Keep position beside your query to track rank over time, since each product has a position and a category.
Options that shape your search.
Most requests need only a query, so add the rest when you want tighter control.
Query or URL
Set query to a keyword such as running shoes. Send a Flipkart search or category URL in url instead. A request needs either query or url, and the API accepts startUrl as an alias for url.
Result count
Ask for 1 to 100 products with num_results, and the default is 20 when you send nothing. The names results_wanted and resultsWanted also work.
Paging
Set page from 1 to 20 to start deeper, and use page_limit from 1 to 10 to cap pages fetched. A low page_limit returns fewer products than num_results by design.
Enrichment
The include_product_details flag is on by default. It adds brand and availability from the product pages. Set it to false to skip that extra step.
Timeout
Set timeout_ms from 3000 to 60000 for the total provider deadline, with a default of 60000 milliseconds. Check timeout_ms first when a large enriched search times out.
What teams build with it.
Flipkart results shift as prices and stock change. Pick the queries that matter to your catalogue.
Price monitoring
Search your keywords every day and store each product’s price_value. Track original_price and discount_percent beside it to watch each markdown.
Rank tracking
Run one query daily and log every pid with position, then compare the logs to see when a product moves.
Catalogue matching
Match listings to your own SKUs by brand and title, then send each match to Flipkart Product for seller detail.
Review screening
Sort results by rating_count and rating to shortlist products. Send each pid to Flipkart Reviews for the review text.
Why call an API instead of scraping Flipkart yourself.
This API returns one flat object per product. You read price and rating from one place rather than parsing page markup by hand.
Enrichment adds product page data to each result. With include_product_details on, brand and availability arrive with each product. Set it to false when you want only listing fields.
This API finds the products that match a query. Flipkart Product returns full detail for one product. Flipkart Reviews returns the review text for a pid. Start here, then pass a pid to either one.
Your first Flipkart search in a minute.
Sign up, grab a key and run one request.
Create an account
Sign up to get your API key.
Send a search
POST a query and a num_results value to /v1/data/flipkart/products. Add your Bearer key as the Authorization header.
Read the products
Loop over the products array in the response. Read pid and price_value from each product.
Flipkart scraper API questions.
Short answers on input and billing before you build.
It turns Flipkart search results into structured JSON. Each product is one object with price and rating fields.
Still have a question?Ask us anything
Send a POST request to /v1/data/flipkart/products with a query. Add a Bearer token to the Authorization header.
Yes, pass a Flipkart search or category URL in url. The API needs either url or query on each request.
Set num_results to a value from 1 to 100. With no value, the API returns 20 products. Read has_more to see whether more results exist.
It adds brand and availability from the product page. The flag is on by default and you set it to false to skip it.
Flipkart Product reads one product by URL or PID, while Flipkart Reviews returns the review text for one product. This API returns ranked search results for a query.
This API is marked stable in our catalogue today. Build against the documented fields, then check the changelog before each upgrade you ship to production.
This API has a credit weight of 1. Check the pricing page for current rates.
Run a Flipkart search in a minute.
Create an account and copy your key. Then paste the example into your terminal.
Start free
