# Walgreens Autocomplete API Documentation

<p>Get public Walgreens query suggestions for a prefix. Each result has a value, a type and an id taken from the site. An empty answer is not billed.</p>

- **Documentation:** [https://scrappa.co/docs/walgreens-api/walgreens_autocomplete](https://scrappa.co/docs/walgreens-api/walgreens_autocomplete)
- **API group:** Walgreens API
- **Endpoint:** `GET https://scrappa.co/api/walgreens/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 | Search prefix, 1 to 200 characters. Example: ibupro. |

## Example response

```json
{
    "data": {
        "query": "ibupro",
        "results": [
            {
                "id": "300429191",
                "type": "product",
                "value": "ibuprofen"
            }
        ]
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A search prefix is required. 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)
