Docs / API reference

POST/v1/data/flipkart/products

Flipkart Products

Search Flipkart products by keyword or category URL.

Execution model

Live request

Runtime depends on endpoint, target, pagination, rendering mode, and active plan limits.

Credit weight

Live catalog

Current weights are managed from the Data API Weights admin table and shown on pricing before use.

Flipkart Products Endpoint

Search Flipkart products by keyword or category URL.

Getting Started

Send your API key as a bearer token. Start with the smallest request below.

Run Flipkart Products

Send the smallest useful request and read the structured response.

curl -X POST "https://api.datablue.dev/v1/data/flipkart/products" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "lipstick",
  "num_results": 10,
  "page": 1,
  "include_product_details": true
}'
Example response
{
  "success": true,
  "source": "flipkart",
  "query": "lipstick",
  "page": 1,
  "pages_fetched": 1,
  "requested_count": 10,
  "returned_count": 10,
  "is_complete": true,
  "has_more": true,
  "stop_reason": "requested_count_reached",
  "time_taken": 1.62,
  "products": [
    {
      "position": 1,
      "pid": "LSTEXAMPLE",
      "title": "Matte Lipstick",
      "url": "https://www.flipkart.com/example/p/itm...",
      "price": "₹499",
      "price_value": 499,
      "original_price": "₹699",
      "discount_percent": 29,
      "rating": 4.2,
      "rating_count": 1240,
      "review_count": 156,
      "is_sponsored": false
    }
  ]
}

Options

Query and Target

Set the search term, identifier, or source URL that defines the request.

curl -X POST "https://api.datablue.dev/v1/data/flipkart/products" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "web scraping tools",
  "num_results": 10,
  "page": 1,
  "include_product_details": true,
  "url": "https://example.com/products/widget"
}'
Example response
{
  "success": true,
  "source": "flipkart",
  "query": "lipstick",
  "page": 1,
  "pages_fetched": 1,
  "requested_count": 10,
  "returned_count": 10,
  "is_complete": true,
  "has_more": true,
  "stop_reason": "requested_count_reached",
  "time_taken": 1.62,
  "products": [
    {
      "position": 1,
      "pid": "LSTEXAMPLE",
      "title": "Matte Lipstick",
      "url": "https://www.flipkart.com/example/p/itm...",
      "price": "₹499",
      "price_value": 499,
      "original_price": "₹699",
      "discount_percent": 29,
      "rating": 4.2,
      "rating_count": 1240
    }
  ]
}

Results and Pagination

Control how many records or pages are returned.

curl -X POST "https://api.datablue.dev/v1/data/flipkart/products" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "lipstick",
  "num_results": 20,
  "page": 1,
  "include_product_details": true,
  "page_limit": "automatic"
}'
Example response
{
  "success": true,
  "source": "flipkart",
  "query": "lipstick",
  "page": 1,
  "pages_fetched": 1,
  "requested_count": 10,
  "returned_count": 10,
  "is_complete": true,
  "has_more": true,
  "stop_reason": "requested_count_reached",
  "time_taken": 1.62,
  "products": [
    {
      "position": 1,
      "pid": "LSTEXAMPLE",
      "title": "Matte Lipstick",
      "url": "https://www.flipkart.com/example/p/itm...",
      "price": "₹499",
      "price_value": 499,
      "original_price": "₹699",
      "discount_percent": 29,
      "rating": 4.2,
      "rating_count": 1240
    }
  ]
}

Details and Enrichment

Choose the additional detail, related records, or media included in the response.

curl -X POST "https://api.datablue.dev/v1/data/flipkart/products" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "lipstick",
  "num_results": 10,
  "page": 1,
  "include_product_details": true
}'
Example response
{
  "success": true,
  "source": "flipkart",
  "query": "lipstick",
  "page": 1,
  "pages_fetched": 1,
  "requested_count": 10,
  "returned_count": 10,
  "is_complete": true,
  "has_more": true,
  "stop_reason": "requested_count_reached",
  "time_taken": 1.62,
  "products": [
    {
      "position": 1,
      "pid": "LSTEXAMPLE",
      "title": "Matte Lipstick",
      "url": "https://www.flipkart.com/example/p/itm...",
      "price": "₹499",
      "price_value": 499,
      "original_price": "₹699",
      "discount_percent": 29,
      "rating": 4.2,
      "rating_count": 1240
    }
  ]
}

Request Controls

Set device, timeout, and request-specific controls.

curl -X POST "https://api.datablue.dev/v1/data/flipkart/products" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "lipstick",
  "num_results": 10,
  "page": 1,
  "include_product_details": true,
  "timeout_ms": 60000
}'
Example response
{
  "success": true,
  "source": "flipkart",
  "query": "lipstick",
  "page": 1,
  "pages_fetched": 1,
  "requested_count": 10,
  "returned_count": 10,
  "is_complete": true,
  "has_more": true,
  "stop_reason": "requested_count_reached",
  "time_taken": 1.62,
  "products": [
    {
      "position": 1,
      "pid": "LSTEXAMPLE",
      "title": "Matte Lipstick",
      "url": "https://www.flipkart.com/example/p/itm...",
      "price": "₹499",
      "price_value": 499,
      "original_price": "₹699",
      "discount_percent": 29,
      "rating": 4.2,
      "rating_count": 1240
    }
  ]
}

Response

Read success first, then consume the endpoint-specific records and pagination fields shown below.

Error Handling

Handle 401 for authentication, 422 for invalid input, 429 for limits, and retry only transient failures.

Parameters

NameTypeRequirementDescription
querystringOptionalProduct search query. Required unless url is supplied.
url / startUrlstringOptionalDirect Flipkart search/category URL. Required unless query is supplied.
num_results / results_wanted / resultsWantednumberOptionalMaximum products to return (1-100).
pagenumberOptionalStarting Flipkart result page (1-20).
page_limitnumberOptionalMaximum result pages to fetch from the starting page (1-10). A low value can intentionally return fewer than num_results.
include_product_detailsbooleanOptionalEnrich source-backed brand, rating counts, and availability from product pages.
timeout_msnumberOptionalTotal provider deadline in milliseconds (3000-60000); enriched multi-page searches may use the full minute.

Response fields

FieldTypeDescription
successbooleanWhether the Flipkart request completed successfully.
productsarrayProduct rows with pid, title, URL, image, price, original price, discount, rating, rating_count, review_count, specs, warranty, availability, and sponsored flag.
pages_fetchednumberNumber of pages fetched.
requested_countnumberMaximum product count requested by the client.
returned_countnumberUnique products returned after cross-page deduplication.
is_completebooleanTrue when num_results was fulfilled or Flipkart explicitly reported no additional result page.
has_moreboolean | nullFlipkart's next-page signal. Null means the source did not expose the signal.
stop_reasonstringMachine-readable reason pagination stopped, such as requested_count_reached, source_exhausted, or page_limit_reached.
time_takennumberAPI response time in seconds.

Request and response

curl -X POST "https://api.datablue.dev/v1/data/flipkart/products" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "lipstick",
  "num_results": 10,
  "page": 1,
  "include_product_details": true
}'
Example response
{
  "success": true,
  "source": "flipkart",
  "query": "lipstick",
  "page": 1,
  "pages_fetched": 1,
  "requested_count": 10,
  "returned_count": 10,
  "is_complete": true,
  "has_more": true,
  "stop_reason": "requested_count_reached",
  "time_taken": 1.62,
  "products": [
    {
      "position": 1,
      "pid": "LSTEXAMPLE",
      "title": "Matte Lipstick",
      "url": "https://www.flipkart.com/example/p/itm...",
      "price": "₹499",
      "price_value": 499,
      "original_price": "₹699",
      "discount_percent": 29,
      "rating": 4.2,
      "rating_count": 1240,
      "review_count": 156,
      "is_sponsored": false
    }
  ]
}