# Flipkart Autocomplete API Documentation

<p><strong>Flipkart Autocomplete API Documentation</strong> 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.</p>

- **Documentation:** [https://scrappa.co/docs/flipkart-api/flipkart_autocomplete](https://scrappa.co/docs/flipkart-api/flipkart_autocomplete)
- **API group:** Flipkart API
- **Endpoint:** `GET https://scrappa.co/api/flipkart/autocomplete`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | The start of a search, for example iphon. |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 503 | Upstream Unavailable | Flipkart did not answer or sent data Scrappa cannot read. This response is not billable. Retry later. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
