# Halfords UK Stores API Documentation

<p>Read store-local inventory near a location. Every store has an id, distance and coordinates. Stock is store-local and never a national unit count. Cost: 1 credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/halfords-api/halfords_stores](https://scrappa.co/docs/halfords-api/halfords_stores)
- **API group:** Halfords UK API
- **Endpoint:** `GET https://scrappa.co/api/halfords/stores`

## 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 |
| --- | --- | --- | --- |
| `lat` | number | Yes | Latitude. Required. |
| `lng` | number | Yes | Longitude. Required. |
| `pid` | string | Yes | Product id from search. Required. |
| `size` | integer | No | Number of stores, default 5. |

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Error | The location or product id was malformed. |

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