This API allows you to search for products in the SP-SpareParts database. The call is straightforward and does not require authentication or special parameters other than the search query. It is a REST API that returns results in JSON format. Additionally, a direct search from the browser can be performed to obtain results in HTML format.
To retrieve results in JSON format:
https://www.sp-spareparts.com/en/s/api?query=[query]
To retrieve results in HTML format:
https://www.sp-spareparts.com/en/search?query=[query]
GET
R165139370
https://www.sp-spareparts.com/en/s/api?query=R165139370
The API returns a JSON object with relevant information about the searched product. Below is an example of a response:
{
"items": [
{
"id": 297800,
"url": "https:\/\/www.sp-spareparts.com\/en\/p\/r165139370-bosch-rexroth?_q=R165139370",
"price": "$373.16",
"search": "R165139370 REXROTH",
"availability": "available",
"partnumber": "R165139370",
"imageurl": "https:\/\/cdn.sp-spareparts.com\/assets\/img\/category\/bosch\/category-112.big.jpg",
"catalognumber": "KWD-035-FNS-C0-H-1",
"brand": {
"id": 27,
"name": "REXROTH"
},
"category": {
"name": "FNS, standard, Resist NR II, with ball chain",
"path": "linear motion technology > profiled rail systems > ball rail systems > ball runner blocks > fns, standard, resist nr ii, with ball chain"
},
"attributes": [
{
"name": "Size",
"value": "35"
},
{
"name": "Preload class",
"value": "C0"
},
{
"name": "Accuracy class",
"value": "H"
},
{
"name": "Weight",
"value": "1.70Kg"
}
]
}
]
}
If no products are found with the given query, the response may be an empty list or a custom error message.