# Walmart Search Autocomplete

Search suggestions for a partial query, optionally scoped to a department id, with suggestion text, image and search URL plus department refinements. An unknown term returns an empty list as a successful answer. Costs 1 credit per successful request. Failed requests are free.

- **Documentation:** [https://scrappa.co/docs/walmart-api/walmart_autocomplete](https://scrappa.co/docs/walmart-api/walmart_autocomplete)
- **API group:** Walmart API
- **Endpoint:** `GET https://scrappa.co/api/walmart/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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Partial search text, e.g. lap. |
| `department` | string | No | Department (category) id to scope the suggestions, e.g. 3944 for Electronics. Default: all. |

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Walmart has no page for this request. This response is not billable. |  |
|  | A public parameter is invalid. This response is not billable. |  |
|  | Walmart did not return usable data for this request. This response is not billable. |  |

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