# Brico Dépôt Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/bricodepot/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/bricodepot-search | ## Description Search Brico Dépôt with a /produits/ listing URL, not a keyword box. Page 2 is the same path with /2 at the end. ## 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/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Perceuse visseuse, first card ```json { "results": [ { "sku": "5063022810069", "url": "https://www.bricodepot.fr/p/5063022810069/perceuse-visseuse-sans-fil-18-v-50-nm-2-vitesses", "name": "Perceuse visseuse sans fil 18 V 50 Nm 2 vitesses", "badge": "Nouveau", "image": "https://media.bricodepot.fr/is/image/KingfisherDigital/5063022810069_01i?wid=300&hei=300", "price": 17.9, "currency": "EUR", "price_unit": "TTC/pièce", "price_display": "17,90 €" } ], "pagination": { "next": "https://www.bricodepot.fr/produits/outillage/outillage-electroportatif-a-main-et-accessoire/perceuse-visseuse-et-outillage-de-percage/perceuse-visseuse-et-perceuse-a-percussion-sans-fil/2", "page": 1, "per_page": 36, "total_pages": 2, "total_results": 63 } } ``` ## Documentation ## Overview **Brico Dépôt** listing on www.bricodepot.fr. `query` is a category URL under `/produits/`. The site header search is an overlay and `/search` is a 404, so a bare keyword returns `400`. Page 2 is the same path with a `/2` suffix, sent as `page=2`. The response is `{ results, pagination }`. `price` is the amount on the card. `price_display` is that amount with cents, for example `17,90 €`. A card with no price has `price`, `price_display`, `price_unit`, and `currency` set to null. `sku` stays on the card. The listing does not print a previous price, so there is no `was_price`. Page 1 and page 2 return different product URLs. ## Quickstart ``` GET https://api.piloterr.com/v2/bricodepot/search?query=https://www.bricodepot.fr/produits/outillage/outillage-electroportatif-a-main-et-accessoire/perceuse-visseuse-et-outillage-de-percage/perceuse-visseuse-et-perceuse-a-percussion-sans-fil GET https://api.piloterr.com/v2/bricodepot/search?query=https://www.bricodepot.fr/produits/outillage/outillage-electroportatif-a-main-et-accessoire/perceuse-visseuse-et-outillage-de-percage/perceuse-visseuse-et-perceuse-a-percussion-sans-fil&page=2 ``` ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Listing URL under `/produits/` on www.bricodepot.fr | | `page` | integer | no | Page from 1. Page 2 uses the `/2` path suffix. | **Placeholder** ``` https://www.bricodepot.fr/produits/outillage/outillage-electroportatif-a-main-et-accessoire/perceuse-visseuse-et-outillage-de-percage/perceuse-visseuse-et-perceuse-a-percussion-sans-fil ``` A product URL (`/p/{ean}/{slug}`), another host, an empty value, or `page` below 1 returns `400`. ## Response fields | Field | Type | Description | |---|---|---| | `results[]` | array | Product cards on this page | | `results[].name` | string | Product name | | `results[].url` | string | Product URL | | `results[].sku` | string \| null | EAN from `/p/{ean}/` | | `results[].image` | string \| null | Card image | | `results[].price` | number \| null | Current price in euros | | `results[].price_display` | string \| null | Price as shown, for example `17,90 €` | | `results[].price_unit` | string \| null | Unit label, for example `TTC/pièce` | | `results[].badge` | string \| null | Card tag such as `Nouveau` or `Arrivages` | | `results[].currency` | string \| null | `EUR` when a price is present | | `pagination.page` | integer | Page | | `pagination.per_page` | integer | Page size. The last page can return fewer cards. | | `pagination.total_results` | integer \| null | Count from the page, such as `63 produits` | | `pagination.total_pages` | integer \| null | Last page number | | `pagination.next` | string \| null | Next page URL, or null | ## Main use cases - Walk a drill or paint aisle - Collect DIY prices for a French trade catalogue - Take a product URL into Product ## Error codes | Code | Meaning | |---|---| | `400` | Empty query, unknown host, product URL, keyword, or `page` below 1 | | `404` | No product card on the page | | `500` | Fetch failed | ## Related endpoints [Brico Dépôt Product](https://www.piloterr.com/library/bricodepot-product)