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.

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 OKJSONX-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_idstringtitlestringbrandstringpriceobjectoriginal_priceobjectdiscountobjecturlurlimageurldoc_typestringsale_priceintegerprice_rangenumber[]
1340910Carrera Vengeance Mens Mountain Bike - Black - XS, S, M, L, XL FramesCarrera{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.htmlhttps://cdn.media.halfords.com/i/washford/340910/Carrera-Vengeance-Mens-Mountain-Bike---Black---XS-S-M-L-XL-Frames325[2 items]
2430475Carrera Hellcat Mens Mountain Bike - Black - S, M, L, XL FramesCarrera{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.htmlhttps://cdn.media.halfords.com/i/washford/346662/Carrera-Hellcat-Mens-Mountain-Bike---Black---S-M-L-XL-Frames335[2 items]
3472411Carrera Vengeance Mens Mountain Bike - Limited Edition Black & Gold - M, L, XL FramesCarrera{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.htmlhttps://cdn.media.halfords.com/i/washford/472411/Carrera-Vengeance-Mens-Mountain-Bike---Limited-Edition-Black--Gold---M-L-XL-Frames325[2 items]

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

cURLshell
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.

EndpointRequired parametersReturnsCost
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: 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.

MarketplacesJSONRESTMCP

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 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.