Halfords: Search
Search from Halfords as JSON. 1 credit per successful call.
GET /v1/halfords/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
q | string | Required | Up to 200 characters |
page | integer | Optional | Any |
sort | string | Optional | relevance, best_seller, newest, top_rated, price_asc, price_desc |
brand | string | Optional | Up to 100 characters |
Example request
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.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
data has these 5 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
results | object[] |
items | object[] |
numFound | integer |
pagination | object |
metadata | object |