# Brico Dépôt Product ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/bricodepot/product` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/bricodepot-product | ## Description Read one Brico Dépôt product from its product URL. You get price, brand, SKU, and availability. ## 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/bricodepot/product' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Compresseur coaxial 50L ```json { "sku": "3373270014082", "url": "https://www.bricodepot.fr/p/3373270014082/compresseur-coaxial-50l-vertical-10-bars-accessoires", "gtin": "3373270014082", "name": "Compresseur coaxial 50L vertical 10 bars + accessoires", "brand": "Prodif", "image": "https://media.bricodepot.fr/is/image/KingfisherDigital/3373270014082_07c", "price": 109, "images": [ "https://media.bricodepot.fr/is/image/KingfisherDigital/3373270014082_07c" ], "category": "Compresseur et accessoire", "currency": "EUR", "breadcrumb": [ "Produits", "Matériau et gros œuvre", "Gros œuvre et évacuation des eaux", "Matériel de chantier", "Compresseur et accessoire" ], "highlights": [ "Compresseur puissant 10 bars avec accessoires complets", "Livré avec un kit complet d’accessoires pratiques.", "Pression maximale de 10 bars pour une puissance fiable." ], "price_unit": "TTC/La pièce", "description": "Compresseur robuste et performant, idéal pour tous vos travaux de bricolage. Sa pression maximale de 10 bar garantit une puissance adaptée à diverses applicatio", "availability": "in_stock", "product_code": "101507253", "price_display": "109,00 €" } ``` ## Documentation ## Overview **Brico Dépôt** product page on www.bricodepot.fr. `query` is a product URL `/p/{ean}/{slug}`. The response is a flat object. `price` and `price_display` come from the amount on the sheet. `sku`, `brand`, and `availability` stay on the object. `brand` is null when the sheet has no brand. A sheet with no price tag leaves `price` null. A hidden `0` in the page data is left out. There is no `was_price`. ## Quickstart ``` GET https://api.piloterr.com/v2/bricodepot/product?query=https://www.bricodepot.fr/p/3373270014082/compresseur-coaxial-50l-vertical-10-bars-accessoires-1 ``` ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Product URL on www.bricodepot.fr | **Placeholder** ``` https://www.bricodepot.fr/p/3373270014082/compresseur-coaxial-50l-vertical-10-bars-accessoires-1 ``` A listing URL, another host, or an empty value returns `400`. ## Response fields | Field | Type | Description | |---|---|---| | `name` | string | Product name | | `url` | string | Canonical product URL | | `sku` | string \| null | Reference / EAN | | `gtin` | string \| null | GTIN | | `product_code` | string \| null | Internal code | | `brand` | string \| null | Brand | | `description` | string \| null | Description from the page | | `price` | number \| null | Current price in euros | | `price_display` | string \| null | Price as shown, for example `109,00 €` | | `price_unit` | string \| null | Unit label, for example `TTC/La pièce` | | `currency` | string \| null | `EUR` when a price is present | | `availability` | string \| null | `in_stock` or `out_of_stock` when the page says so | | `image` | string \| null | Main image | | `images` | array | Image URLs | | `category` | string \| null | Deepest breadcrumb | | `breadcrumb` | array | Category names | | `highlights` | array | Product highlights | ## Main use cases - Check a tool's shelf price - Store the brand and the SKU - See whether the item is in stock ## Error codes | Code | Meaning | |---|---| | `400` | Empty query, unknown host, or a URL that is not `/p/{ean}/` | | `404` | Product page did not parse | | `500` | Fetch failed | ## Related endpoints [Brico Dépôt Search](https://www.piloterr.com/library/bricodepot-search)