Castorama product page on www.castorama.fr.
query is a product URL ending in _CAFR.prd. The response is one flat object: EAN, name, brand, description, price, stock flag from the offer, rating, images and the specification table.
A keyword, a /search URL or a .cat URL returns 400.
GET https://api.piloterr.com/v2/castorama/product?query=https://www.castorama.fr/mastic-bain-et-cuisine-rubson-blanc-280ml/5410091628840_CAFR.prd
Example (product URL):
https://www.castorama.fr/mastic-bain-et-cuisine-rubson-blanc-280ml/5410091628840_CAFR.prd
query is required. Only www.castorama.fr is accepted.
| Form |
Example |
What happens |
| Product URL |
https://www.castorama.fr/mastic-bain-et-cuisine-rubson-blanc-280ml/5410091628840_CAFR.prd |
Product page. The path must end with _CAFR.prd. |
A keyword returns 400. A search URL or a category URL returns 400. Another host returns 400. An empty value returns 400.
| Parameter |
Type |
Required |
Description |
query |
string |
yes |
Product URL ending in _CAFR.prd |
| Field |
Type |
Description |
ean |
string | null |
GTIN-13 |
name |
string |
Product name |
url |
string |
Canonical product URL |
brand |
string | null |
Brand from the Marque row |
description |
string | null |
Product description |
price |
number | null |
Offer price in euros |
price_display |
string | null |
Price as shown |
was_price |
number | null |
Crossed-out price when the page shows one |
was_price_display |
string | null |
Crossed-out price as shown |
currency |
string | null |
EUR |
in_stock |
boolean | null |
True when the offer availability is InStock |
rating |
number | null |
Average rating out of 5 |
review_count |
integer | null |
Number of reviews |
images |
string[] |
Image URLs |
specifications |
array |
Rows { name, value } from the specification table |
was_price is the crossed-out price on the card. It is null when the page shows only the current price. price stays the current price.
Cards outside the product list are ignored, and a repeated product URL is returned once.
A broad keyword can redirect to a guide without products (scie, joint) and then returns 404. Pass the category .cat URL instead.
in_stock follows the schema.org offer (InStock), not a store lookup. The site asks for a postcode for shop availability.
brand is the Marque row of the specification table.
images are media.castorama.fr URLs, without the resize query string.
A page without a Product JSON-LD block returns 404.
- Open the product a search card pointed to
- Store the shelf price
- Pull specs into a trade catalogue
| Code |
Meaning |
400 |
Empty query, unknown host, or a listing URL |
403 |
Blocked |
404 |
Product page not found |
500 |
Fetch failed |
Castorama Search