Skip to content
Scrappa Get API key
Flipkart API 1 credit / request

Flipkart Autocomplete API Documentation

GET https://scrappa.co/api/flipkart/autocomplete

Flipkart Autocomplete API Documentation Get the search suggestions Flipkart shows while you type. Each suggestion has the text, the type, the category it belongs to (name and store id for the search endpoint) and a small photo. Promotion rows are removed. A query with no suggestion returns an empty list and costs 1 credit. Cost: 1 credit per request, only for successful requests. Failed requests are not billed.

Flipkart Autocomplete API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/flipkart/autocomplete
Auth header
x-api-key
Cost
1 credit / request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "query": "iphon",
        "total": 3,
        "suggestions": [
            {
                "text": "iphone 17",
                "type": "query_store",
                "image": "https://rukminim1.flixcart.com/image/200/200/xif0q/mobile/0/a/f/-original-imahqvadmn9uydqz.jpeg?q=70",
                "category": "tyy,4io",
                "category_name": "in Mobiles"
            },
            {
                "text": "iphone 18 pro",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

query string Required

The start of a search, for example iphon.

Example value coffee shops

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "query": "iphon",
        "total": 3,
        "suggestions": [
            {
                "text": "iphone 17",
                "type": "query_store",
                "image": "https://rukminim1.flixcart.com/image/200/200/xif0q/mobile/0/a/f/-original-imahqvadmn9uydqz.jpeg?q=70",
                "category": "tyy,4io",
                "category_name": "in Mobiles"
            },
            {
                "text": "iphone 18 pro",
                "type": "query_store",
                "image": "https://rukminim1.flixcart.com/image/200/200/xif0q/mobile/y/3/n/-original-imahraz4kxuz4rgu.jpeg?q=70",
                "category": "tyy,4io",
                "category_name": "in Mobiles"
            },
            {
                "text": "iphone 16",
                "type": "query",
                "image": "https://rukminim1.flixcart.com/image/200/200/xif0q/mobile/r/q/y/-resized-original-imahggetjqfp9fwv.jpeg?q=70",
                "category": null,
                "category_name": null
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "query": [
            "Send the start of a search, for example iphon."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

Flipkart did not answer or sent data Scrappa cannot read. This response is not billable. Retry later.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "autocomplete"
    },
    "error": {
        "code": "upstream_unavailable",
        "message": "Flipkart is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.