# ASOS Autocomplete API Documentation

<p><strong>ASOS Autocomplete API</strong> returns the search terms ASOS suggests for a typed text, in the language of the store, with the number of results per term. Use the terms as <code>query</code> in the search route.</p><p><strong>Stores:</strong> COM (UK), US, DE, FR and AU. Prices are numbers in the currency of the store. Product ids are the same across stores, but a product can be sold in one store and not in another.</p><p><strong>Credits:</strong> 1 credit per successful request. Failed requests are not billed. A valid empty result is successful and billable.</p>

- **Documentation:** [https://scrappa.co/docs/asos-api/asos_autocomplete](https://scrappa.co/docs/asos-api/asos_autocomplete)
- **API group:** ASOS API
- **Endpoint:** `GET https://scrappa.co/api/asos/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 | Typed text, 2 to 100 characters. |
| `store` | string | No | Store: COM (ASOS UK, GBP, default), US (USD), DE (EUR), FR (EUR) or AU (AUD). Product ids, prices and stock are per store. |

## Example response

```json
{
    "data": {
        "query": "dre",
        "store": "COM",
        "suggestions": [
            {
                "term": "wedding guest dresses",
                "result_count": 7362
            },
            {
                "term": "maxi dress",
                "result_count": 9104
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billable. |
| 503 | Upstream Unavailable | ASOS could not be reached or returned data that does not match the request. This response is not billable and is retryable. |

## 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)
