---
title: "Halfords API: UK bikes, motoring products as JSON"
description: "Halfords API for UK bikes and motoring products: search with prices and discounts, specs, reviews and nearby stores. 1 credit per successful call."
url: https://perceptlayer.com/apis/halfords
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / Halfords

1 credit per call 6 endpoints 11 datapoints 

# Halfords API

Halfords API for UK bikes and motoring products: search with prices and discounts, specs, reviews and nearby stores. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Halfords

GET /v1/halfords/search?q=bike 

```
{
  "success": true,
  "source": "search",
  "data": {
    "results": [
      {
        "product_id": "340910",
        "title": "Carrera Vengeance Mens Mountain Bike - Black - XS, S, M, L, XL Frames",
        "brand": "Carrera",
        "price": {
          "amount": 325,
          "currency": "GBP"
        },
        "original_price": {
          "amount": 385,
          "currency": "GBP"
        },
        "discount": {
          "amount": 60,
          "currency": "GBP"
        },
        "url": "https://www.halfords.com/bikes/mountain-bikes/carrera-vengeance-mens-mountain-bike-2020---black---xs-s-m-l-xl-frames-340910.html",
        "image": "https://cdn.media.halfords.com/i/washford/340910/Carrera-Vengeance-Mens-Mountain-Bike---Black---XS-S-M-L-XL-Frames",
        "doc_type": "",
        "sale_price": 325,
        "price_range": [
          385,
          385
        ]
      },
      {
        "product_id": "430475",
        "title": "Carrera Hellcat Mens Mountain Bike - Black - S, M, L, XL Frames",
        "brand": "Carrera",
        "price": {
          "amount": 335,
          "currency": "GBP"
        },
        "original_price": {
          "amount": 410,
          "currency": "GBP"
        },
        "discount": {
          "amount": 75,
          "currency": "GBP"
        },
        "url": "https://www.halfords.com/bikes/mountain-bikes/carrera-hellcat-mens-mountain-bike---black---s-m-l-xl-frames-430475.html",
        "image": "https://cdn.media.halfords.com/i/washford/346662/Carrera-Hellcat-Mens-Mountain-Bike---Black---S-M-L-XL-Frames",
        "doc_type": "",
        "sale_price": 335,
        "price_range": [
          410,
          410
        ]
      },
      {
        "product_id": "472411",
        "title": "Carrera Vengeance Mens Mountain Bike - Limited Edition Black & Gold - M, L, XL Frames",
        "brand": "Carrera",
        "price": {
          "amount": 325,
          "currency": "GBP"
        },
        "original_price": {
          "amount": 385,
          "currency": "GBP"
        },
        "discount": {
          "amount": 60,
          "currency": "GBP"
        },
        "url": "https://www.halfords.com/bikes/mountain-bikes/carrera-vengeance-mens-mountain-bike---limited-edition-black-and-gold---m-l-xl-frames-472411.html",
        "image": "https://cdn.media.halfords.com/i/washford/472411/Carrera-Vengeance-Mens-Mountain-Bike---Limited-Edition-Black--Gold---M-L-XL-Frames",
        "doc_type": "",
        "sale_price": 325,
        "price_range": [
          385,
          385
        ]
      }
    ],
    "items": [
      {
        "product_id": "340910",
        "title": "Carrera Vengeance Mens Mountain Bike - Black - XS, S, M, L, XL Frames",
        "brand": "Carrera",
        "price": {
          "amount": 325,
          "currency": "GBP"
        },
        "original_price": {
          "amount": 385,
          "currency": "GBP"
        },
        "discount": {
          "amount": 60,
          "currency": "GBP"
        },
        "url": "https://www.halfords.com/bikes/mountain-bikes/carrera-vengeance-mens-mountain-bike-2020---black---xs-s-m-l-xl-frames-340910.html",
        "image": "https://cdn.media.halfords.com/i/washford/340910/Carrera-Vengeance-Mens-Mountain-Bike---Black---XS-S-M-L-XL-Frames",
        "doc_type": "",
        "sale_price": 325,
        "price_range": [
          385,
          385
        ]
      },
      {
        "product_id": "430475",
        "title": "Carrera Hellcat Mens Mountain Bike - Black - S, M, L, XL Frames",
        "brand": "Carrera",
        "price": {
          "amount": 335,
          "currency": "GBP"
        },
        "original_price": {
          "amount": 410,
          "currency": "GBP"
        },
        "discount": {
          "amount": 75,
          "currency": "GBP"
        },
        "url": "https://www.halfords.com/bikes/mountain-bikes/carrera-hellcat-mens-mountain-bike---black---s-m-l-xl-frames-430475.html",
        "image": "https://cdn.media.halfords.com/i/washford/346662/Carrera-Hellcat-Mens-Mountain-Bike---Black---S-M-L-XL-Frames",
        "doc_type": "",
        "sale_price": 335,
        "price_range": [
          410,
          410
        ]
      },
      {
        "product_id": "472411",
        "title": "Carrera Vengeance Mens Mountain Bike - Limited Edition Black & Gold - M, L, XL Frames",
        "brand": "Carrera",
        "price": {
          "amount": 325,
          "currency": "GBP"
        },
        "original_price": {
          "amount": 385,
          "currency": "GBP"
        },
        "discount": {
          "amount": 60,
          "currency": "GBP"
        },
        "url": "https://www.halfords.com/bikes/mountain-bikes/carrera-vengeance-mens-mountain-bike---limited-edition-black-and-gold---m-l-xl-frames-472411.html",
        "image": "https://cdn.media.halfords.com/i/washford/472411/Carrera-Vengeance-Mens-Mountain-Bike---Limited-Edition-Black--Gold---M-L-XL-Frames",
        "doc_type": "",
        "sale_price": 325,
        "price_range": [
          385,
          385
        ]
      }
    ],
    "numFound": 7056,
    "pagination": {
      "page": 1,
      "start": 0,
      "pageSize": 18,
      "totalPages": 392
    },
    "filters": {
      "query": "bike",
      "sort": "relevance",
      "page": 1
    },
    "facets": [
      {
        "name": "Product Type",
        "type": "text",
        "value": [
          {
            "name": "Hardtail Mountain Bikes",
            "count": 48
          },
          {
            "name": "Kids Bikes",
            "count": 71
          },
          {
            "name": "Hybrid Bikes",
            "count": 53
          }
        ]
      },
      {
        "name": "Brand",
        "type": "text",
        "value": [
          {
            "name": "4iiii",
            "count": 9
          },
          {
            "name": "100%",
            "count": 9
          },
          {
            "name": "A2Z",
            "count": 7
          }
        ]
      },
      {
        "name": "Gender",
        "type": "text",
        "value": [
          {
            "name": "Kids Unisex",
            "count": 122
          },
          {
            "name": "Men",
            "count": 230
          },
          {
            "name": "Girls",
            "count": 73
          }
        ]
      }
    ],
    "metadata": {
      "query": {
        "precision": {
          "configured": {
            "value": "text_match_precision"
          },
          "applied": {
            "value": "text_match_precision"
          }
        }
      },
      "experiments": [
        {
          "ab_test_experiment_name": "Search Terms Facet Precision - Normal vs High - 20 Percent Traffic",
          "ab_test_variant_name": "Facet Precision Standard__BR_CONTROL"
        }
      ],
      "responseMeta": {
        "response_id": "afc6f402011287212884fe64533602f9",
        "request_id": "2abbb8f0863045d0b6dc07205b1b067b",
        "start": 0,
        "rows": 18
      }
    }
  },
  "meta": {
    "request_id": "req_aa5d66e21b5f408f8cdda92191395793",
    "credits_charged": 1,
    "credits_remaining": 4919
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | product\_id string | title string | brand string | price object | original\_price object | discount object | url url | image url | doc\_type string | sale\_price integer | price\_range number\[\] |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 340910 | Carrera Vengeance Mens Mountain Bike - Black - XS, S, M, L, XL Frames | Carrera | {2 fields} | {2 fields} | {2 fields} | https://www.halfords.com/bikes/mountain-bikes/carrera-vengeance-mens-mountain-bike-2020---black---xs-s-m-l-xl-frames-340910.html | https://cdn.media.halfords.com/i/washford/340910/Carrera-Vengeance-Mens-Mountain-Bike---Black---XS-S-M-L-XL-Frames |  | 325 | \[2 items\] |
| 2 | 430475 | Carrera Hellcat Mens Mountain Bike - Black - S, M, L, XL Frames | Carrera | {2 fields} | {2 fields} | {2 fields} | https://www.halfords.com/bikes/mountain-bikes/carrera-hellcat-mens-mountain-bike---black---s-m-l-xl-frames-430475.html | https://cdn.media.halfords.com/i/washford/346662/Carrera-Hellcat-Mens-Mountain-Bike---Black---S-M-L-XL-Frames |  | 335 | \[2 items\] |
| 3 | 472411 | Carrera Vengeance Mens Mountain Bike - Limited Edition Black & Gold - M, L, XL Frames | Carrera | {2 fields} | {2 fields} | {2 fields} | https://www.halfords.com/bikes/mountain-bikes/carrera-vengeance-mens-mountain-bike---limited-edition-black-and-gold---m-l-xl-frames-472411.html | https://cdn.media.halfords.com/i/washford/472411/Carrera-Vengeance-Mens-Mountain-Bike---Limited-Edition-Black--Gold---M-L-XL-Frames |  | 325 | \[2 items\] |

Recorded from our API · 3 items shown · 11 datapoints per item GET /v1/halfords/search?q=bike

11 datapoints

### Identity

-   product\_id string
-   title string
-   brand string
-   doc\_type string

### Contact

-   url url

### Reputation

-   image url

### Price

-   price object
-   original\_price object
-   discount object
-   sale\_price integer
-   price\_range number\[\]

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/halfords/search?q=bike" \
  -H "X-API-Key: $API_KEY"
```

Halfords · 6 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/halfords/product`](https://perceptlayer.com/apis/halfords/product) | `ids[]` | `id` `name` `ean` `sku` `brand` `price` +14 more | 1 credit |
| [GET `/v1/halfords/reviews`](https://perceptlayer.com/apis/halfords/reviews) | `id` +1 optional | `product_id` `rating` `rating_scope` `review_count` `reviews` `pagination` | 1 credit |
| [GET `/v1/halfords/search`](https://perceptlayer.com/apis/halfords/search) | `q` +3 optional | `results` `items` `numFound` `pagination` `metadata` | 1 credit |
| [GET `/v1/halfords/sitemap`](https://perceptlayer.com/apis/halfords/sitemap) | none +1 optional | `source_url` `product_id` | 1 credit |
| [GET `/v1/halfords/stores`](https://perceptlayer.com/apis/halfords/stores) | `lat` `lng` `pid` +2 optional | `store_id` `name` `distance` `postal_code` `latitude` `longitude` +1 more | 1 credit |
| [GET `/v1/halfords/suggest`](https://perceptlayer.com/apis/halfords/suggest) | `q` | `term` `hint` `product_id` `url` `image` | 1 credit |

Overview

## About the Halfords API

## What you can get

The Halfords API returns product and store data from Halfords in the UK as JSON through 6 endpoints. Prices are in GBP.

-   **Search:** `search` takes `q`, with `page`, `sort` (relevance, best\_seller, newest, top\_rated, price\_asc or price\_desc) and `brand`. `suggest` takes a partial `q`.
-   **Products:** `product` takes `ids[]`, one or more product ids.
-   **Reviews:** `reviews` takes a product `id`, with `page`.
-   **Stores:** `stores` takes `lat`, `lng` and a product `pid`, with `qty` and `size`.
-   **Product ids:** `sitemap` returns product ids and URLs, with `page`.

The recorded search for "bike" returns `numFound` (7,056), `facets` for product type, brand and gender, and `results`, each with `product_id`, `title`, `brand`, `price`, `original_price`, `discount`, `sale_price`, `url` and `image`. The first, a Carrera Vengeance mountain bike, was 325 GBP against 385, a 60 GBP discount. The recorded `product` call adds `specifications`, `images`, `rating` (4.52) and `review_count` (1,559) for that bike.

## How a call works

Search, then look up: `GET /v1/halfords/search?q=bike` with your key in the `X-API-Key` header returns each product's `product_id`. Pass it in `ids[]` to `product`, as `id` to `reviews`, or as `pid` with your coordinates to `stores` to find the nearest Halfords branches. Search pages hold 18 products; step through with `page`. Every successful call costs 1 credit; failed calls cost nothing.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

Use cases

### Track Halfords prices and discounts on bikes and car parts

`Use the Halfords API to track Halfords prices and discounts on bikes and car parts` 

### Compare mountain bikes by specification and rating

`Use the Halfords API to compare mountain bikes by specification and rating` 

### Read review texts for a product and its size variants

`Use the Halfords API to read review texts for a product and its size variants` 

### Find the Halfords stores nearest a location for a product

`Use the Halfords API to find the Halfords stores nearest a location for a product` 

FAQ

## Questions

**How much does the Halfords API cost?**

Each successful call costs 1 credit, for every endpoint. Failed calls cost nothing.

**What are the limits of the product response?**

In the recorded call \`ean\` and \`sku\` were empty, the \`promotions\` entries had no text, \`availability\` showed the bike as not orderable, and \`description\` held raw page styling. Use \`search\` for the current sale price and discount.

**What do reviews and stores return?**

\`reviews\` returns each review's \`rating\`, \`title\`, \`text\` (sometimes empty), \`created\_at\` and the variant it was written for, 20 per page; its \`rating\` is the average for that page only. \`stores\` returns each branch's \`store\_id\`, \`name\`, \`distance\`, \`postal\_code\` and coordinates, without stock counts in the recorded call.

**Do I need a Halfords account?**

No. You call this Halfords API with your Perceptlayer key in the \`X-API-Key\` header, with no Halfords login.

**Is this the official Halfords API?**

No. Perceptlayer is an independent service and is not affiliated with Halfords. It returns Halfords data as JSON with a Perceptlayer key, so there is no Halfords developer account, app review or partner approval to get first. It only reads data: if Halfords has an official API and you need to act on your own Halfords account, such as posting, managing orders or reading private data, use that one.

**Should I build a Halfords scraper instead?**

You can, but a Halfords scraper is code you maintain: page changes break it, requests get blocked, and Halfords's terms govern how you collect data. The Halfords API gives you 6 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Halfords API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
