# Petco Autocomplete

Return public prefix suggestions and matching product previews with prices and image urls. Product preview ids are accepted unchanged by product and reviews. Costs 1 credit per successful request. Failed requests are not billed.

- **Documentation:** [https://scrappa.co/docs/petco-api/petco_autocomplete](https://scrappa.co/docs/petco-api/petco_autocomplete)
- **API group:** Petco API
- **Endpoint:** `GET https://scrappa.co/api/petco/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 | Prefix to complete. |

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Invalid prefix. Not billed. |  |
|  | Petco did not return usable data. Not billed. |  |

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