APIs / Marketplaces / Halfords
1 credit per call6 endpoints11 datapointsChecked working 6 Dec 2026
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.
{
"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
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | product_idstring | titlestring | brandstring | priceobject | original_priceobject | discountobject | urlurl | imageurl | doc_typestring | sale_priceinteger | price_rangenumber[] |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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] |
[
{
"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
]
}
]product_id,title,brand,price,original_price,discount,url,image,doc_type,sale_price,price_range
340910,"Carrera Vengeance Mens Mountain Bike - Black - XS, S, M, L, XL Frames",Carrera,"{""amount"":325,""currency"":""GBP""}","{""amount"":385,""currency"":""GBP""}","{""amount"":60,""currency"":""GBP""}",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,"[385,385]"
430475,"Carrera Hellcat Mens Mountain Bike - Black - S, M, L, XL Frames",Carrera,"{""amount"":335,""currency"":""GBP""}","{""amount"":410,""currency"":""GBP""}","{""amount"":75,""currency"":""GBP""}",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,"[410,410]"
472411,"Carrera Vengeance Mens Mountain Bike - Limited Edition Black & Gold - M, L, XL Frames",Carrera,"{""amount"":325,""currency"":""GBP""}","{""amount"":385,""currency"":""GBP""}","{""amount"":60,""currency"":""GBP""}",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,"[385,385]"Recorded from our API · 3 items shown · 11 datapoints per itemGET /v1/halfords/search?q=bike
11 datapoints
Identity
- product_idstring
- titlestring
- brandstring
- doc_typestring
Contact
- urlurl
Reputation
- imageurl
Price
- priceobject
- original_priceobject
- discountobject
- sale_priceinteger
- price_rangenumber[]
Playground
Run this API
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 | ids[] | idnameeanskubrandprice+14 more | 1 credit |
GET/v1/halfords/reviews | id+1 optional | product_idratingrating_scopereview_countreviewspagination | 1 credit |
GET/v1/halfords/search | q+3 optional | resultsitemsnumFoundpaginationmetadata | 1 credit |
GET/v1/halfords/sitemap | none+1 optional | source_urlproduct_id | 1 credit |
GET/v1/halfords/stores | latlngpid+2 optional | store_idnamedistancepostal_codelatitudelongitude+1 more | 1 credit |
GET/v1/halfords/suggest | q | termhintproduct_idurlimage | 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:
searchtakesq, withpage,sort(relevance, best_seller, newest, top_rated, price_asc or price_desc) andbrand.suggesttakes a partialq. - Products:
producttakesids[], one or more product ids. - Reviews:
reviewstakes a productid, withpage. - Stores:
storestakeslat,lngand a productpid, withqtyandsize. - Product ids:
sitemapreturns product ids and URLs, withpage.
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.
More marketplaces APIs
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 partsCompare mountain bikes by specification and rating
Use the Halfords API to compare mountain bikes by specification and ratingRead review texts for a product and its size variants
Use the Halfords API to read review texts for a product and its size variantsFind the Halfords stores nearest a location for a product
Use the Halfords API to find the Halfords stores nearest a location for a productFAQ
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.