# Castorama Product ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/castorama/product` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/castorama-product | ## Description Read one Castorama product from its URL. You get price, brand, and specifications. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/castorama/product' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Mastic bain et cuisine Rubson blanc 280ml ```json { "ean": "5410091628840", "url": "https://www.castorama.fr/mastic-bain-et-cuisine-rubson-blanc-280ml/5410091628840_CAFR.prd", "name": "Mastic bain et cuisine Rubson blanc 280ml", "brand": "Rubson", "price": 10.9, "images": [ "https://media.castorama.fr/is/image/Castorama/mastic-bain-et-cuisine-rubson-blanc-280ml~5410091628840_30c_FR_CF", "https://media.castorama.fr/is/image/Castorama/mastic-bain-et-cuisine-rubson-blanc-280ml~5410091628840_30t_FR_CF", "https://media.castorama.fr/is/image/Castorama/mastic-bain-et-cuisine-rubson-blanc-280ml~5410091628840_10i_fr_cf", "https://media.castorama.fr/is/image/Castorama/mastic-bain-et-cuisine-rubson-blanc-280ml~5410091628840_11i_fr_cf", "https://media.castorama.fr/is/image/Castorama/mastic-bain-et-cuisine-rubson-blanc-280ml~5410091628840_12i_fr_cf", "https://media.castorama.fr/is/image/Castorama/mastic-bain-et-cuisine-rubson-blanc-280ml~5410091628840_13i_fr_cf", "https://media.castorama.fr/is/image/Castorama/mastic-bain-et-cuisine-rubson-blanc-280ml~5410091628840_14i_fr_cf", "https://media.castorama.fr/is/image/Castorama/mastic-bain-et-cuisine-rubson-blanc-280ml~5410091628840_01t_FR_CF" ], "rating": 4.5, "currency": "EUR", "in_stock": true, "was_price": null, "description": "Le mastic sanitaire Rubson blanc de 280 ml garantit une étanchéité parfaite et durable pour vos baignoires, éviers et douches. Conçu spécialement pour faire face à l'humidité constante de la salle de bains et de la cuisine, cet élastomère silicone de haute qualité résiste efficacement aux moisissures grâce à ses agents antifongiques puissants. Sa formule avancée adhère sans faille sur des surfaces variées comme l'émail, la faïence ou le verre, tout en conservant sa blancheur éclatante sans jaunir dans le temps. Facile à appliquer et résistant aux détergents ménagers, ce produit est le choix idéal des bricoleurs pour un résultat professionnel et soigné chez Castorama.", "review_count": 55, "price_display": "10,90 €", "specifications": [ { "name": "Type d'article", "value": "Mastic cuisine et salle de bains" }, { "name": "Marque", "value": "Rubson" }, { "name": "Type de pack", "value": "À l'unité" }, { "name": "Type de conteneur", "value": "Cartouche" }, { "name": "Couleur", "value": "Blanc" }, { "name": "Contenance", "value": "280ml" }, { "name": "Résistant à l'eau", "value": "Résistant à l'eau" }, { "name": "Temps de traitement (en h)", "value": "24h" }, { "name": "Peut être peint", "value": "Ne peut pas être peint" }, { "name": "Mode d’emploi", "value": "Avant d'appliquer un mastic de cuisine ou un mastic de salle de bain, le support doit être propre, sec et dégraissé. Éliminer l'ancien joint à l'aide d'un cutter et de Rubson Enlève Joints (joints silicones). Ouvrir l'extrémité de la cartouche avec le Cutter & Lisseur Rubson. Visser la canule et la couper avec le Cutter & Lisseur Rubson en fonction de la largeur du joint souhaité. Placer la cartouche dans le Super Pistolet Mastic Pliable Rubson. Délimiter la largeur du joint de cuisine ou du joint de baignoire avec un ruban adhésif. Appliquer un cordon régulier de mastic en poussant la cartouche vers l'avant. Lisser avec le Cutter et Lisseur de Joint humidifié ou avec une spatule mouillée. Retirer le ruban adhésif. Revisser le bouchon sur la canule afin de prolonger la conservation du mastic" }, { "name": "Norme", "value": "EN 15651-3" }, { "name": "Poids du produit", "value": "274g" }, { "name": "Résiste à la moisissure", "value": "Résistant à la moisissure" }, { "name": "Lieu", "value": "Intérieur" }, { "name": "Informations de sécurité", "value": "Dangereux - respecter les précautions d'emploi. Conserver hors de la portée et de la vue des enfants" }, { "name": "Type d'utilisation approprié", "value": "Vasque, baignoire, élément sanitaire et douche" }, { "name": "Usage", "value": "Mastic d'étanchéité sanitaire" }, { "name": "Référence produit", "value": "5410091628840" } ], "was_price_display": null } ``` ## Documentation ## Overview **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`. ## Quickstart ``` GET https://api.piloterr.com/v2/castorama/product?query=https://www.castorama.fr/mastic-bain-et-cuisine-rubson-blanc-280ml/5410091628840_CAFR.prd ``` ## `query` **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`. ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Product URL ending in `_CAFR.prd` | ## Response fields | 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 | ## Notes `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`. ## Main use cases - Open the product a search card pointed to - Store the shelf price - Pull specs into a trade catalogue ## Error codes | Code | Meaning | |---|---| | `400` | Empty query, unknown host, or a listing URL | | `403` | Blocked | | `404` | Product page not found | | `500` | Fetch failed | ## Related endpoints [Castorama Search](https://www.piloterr.com/library/castorama-search)