# Boulanger Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/boulanger/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 2 credits per call | | **Documentation** | https://www.piloterr.com/library/boulanger-search | ## Description Search Boulanger by keyword and page the product grid. Cards include price, brand, seller, and the product URL. ## 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/boulanger/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Aspirateur, first card ```json { "results": [ { "url": "https://www.boulanger.com/ref/9000978984", "name": "Aspirateur balai VACTIDY V10 PRO", "brand": "VACTIDY", "color": null, "image": "https://boulanger.scene7.com/is/image/Boulanger/6924843236393_h_f_l_0", "price": 66.99, "rating": null, "seller": "Vactidy France", "eco_tax": null, "currency": "EUR", "in_stock": true, "offer_id": "86dc761c-d394-4c82-bb0d-345b89258dd7", "position": 1, "condition": "neuf", "highlight": "Le design moderne rose et le format sans fil léger apportent une touche de plaisir au quotidien, pour un nettoyage simple et fluide.", "was_price": 89.99, "key_points": [ "Temps de charge : 4 h, Autonomie : 45 mn, Poids : 2,2 kg", "Tube pliable : Non concerné", "Note de l'indice de réparabilité (sur 10) : 9.5, Station de recharge intégrée au support mural", "On adore : Le design moderne rose et le format sans fil léger apportent une touche de plaisir au quotidien, pour un nettoyage simple et fluide." ], "product_id": "9000978984", "review_count": null, "price_display": "66,99 €", "eco_tax_display": null, "discount_display": "-25%", "installment_cost": null, "installment_count": null, "installment_price": null, "installment_cost_display": null, "installment_price_display": null } ], "pagination": { "next": "https://www.boulanger.com/resultats?tr=aspirateur&numPage=2", "page": 1, "per_page": 40, "total_pages": 23, "total_results": 916 } } ``` ## Documentation ## Overview **Boulanger** product search on www.boulanger.com. `query` is a keyword, a `/resultats` URL, or a `/c/` category URL. The response is `{ results, pagination }`. Each card has the product id, the name, the brand, and the current price. When the card shows them, it also has the crossed-out price, the seller, the rating, and the short feature lines. A product URL (`/ref/...`) returns `400`. ## Quickstart ``` GET https://api.piloterr.com/v2/boulanger/search?query=aspirateur GET https://api.piloterr.com/v2/boulanger/search?query=aspirateur&page=2 GET https://api.piloterr.com/v2/boulanger/search?query=https://www.boulanger.com/resultats?tr=aspirateur GET https://api.piloterr.com/v2/boulanger/search?query=https://www.boulanger.com/c/aspirateur ``` `page` starts at 1. Page 2 is sent to Boulanger as `numPage=2`. The product ids on page 2 are different from page 1. ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Keyword, a `/resultats` URL, or a `/c/` category URL. A `/ref/` product URL returns `400`. | | `page` | integer | no | Page number, from 1. Default `1`. Page 2 uses `numPage=2`. | | `return_page_source` | boolean | no | When `true`, returns `{"result": "..."}` instead of the parsed JSON. Default `false`. | ## Response fields | Field | Type | Description | |---|---|---| | `results` | array | Product cards on this page. The example keeps the first card of a live page. | | `results[].position` | integer | Place on the page, from 1. | | `results[].product_id` | string | Boulanger reference, the id in `/ref/{id}`. | | `results[].offer_id` | string \| null | Offer id for this card. | | `results[].name` | string | Name printed on the card. | | `results[].brand` | string \| null | Brand. | | `results[].url` | string | Product URL. | | `results[].image` | string \| null | Main image URL. | | `results[].rating` | number \| null | Rating out of 5. Null when the card has no rating. | | `results[].review_count` | integer \| null | Number of reviews. | | `results[].price` | number \| null | Current price in euros. Null when the card has no price. | | `results[].price_display` | string \| null | Price as shown, for example `66,99 €`. | | `results[].was_price` | number \| null | Crossed-out price. Null when the card has no struck price. | | `results[].discount_display` | string \| null | Discount badge, for example `-25%`. Null when the card has no badge. | | `results[].currency` | string \| null | `EUR` when a price is present. | | `results[].eco_tax` | number \| null | Eco-participation in euros. Already included in `price`. | | `results[].eco_tax_display` | string \| null | Eco-participation as a French label. | | `results[].condition` | string \| null | `neuf` or `reconditionné`. | | `results[].seller` | string \| null | Seller name. `Boulanger` when Boulanger sells the offer. A marketplace offer keeps its own name, for example `Vactidy France`. | | `results[].in_stock` | boolean \| null | `true` or `false` from the card. Null when the card does not say. | | `results[].color` | string \| null | Color name when the card has one. | | `results[].key_points` | string[] | Short feature lines from the card. | | `results[].highlight` | string \| null | The On adore sentence, without the label. | | `results[].installment_price` | number \| null | Monthly amount when the card shows financing. | | `results[].installment_price_display` | string \| null | Monthly amount as shown. | | `results[].installment_count` | integer \| null | Number of payments, for example 4. | | `results[].installment_cost` | number \| null | Financing cost when the card prints one. | | `results[].installment_cost_display` | string \| null | Financing cost as shown. | | `pagination.page` | integer | Requested page. | | `pagination.per_page` | integer | Cards returned on this page. | | `pagination.total_results` | integer \| null | Result count published by the page. | | `pagination.total_pages` | integer \| null | Page count. | | `pagination.next` | string \| null | Next page URL, or null on the last page. | ## Notes `price` is the current price (`66.99`). `price_display` keeps the French comma (`66,99 €`). `was_price` is the struck price on the card. Cards that show a struck price fill this field, and that price is higher than the current price. Cards without a struck line leave it null. A struck price can appear without a percent badge, so `discount_display` is null on those cards. The sample keeps the first card of a live `aspirateur` page. A live call returns every card on the page, so `pagination.per_page` can be larger than the number of objects in the sample. ## Main use cases - Monitor French electronics and appliance prices - See marketplace sellers next to Boulanger - Find a product id before opening the product sheet ## Error codes | Code | Meaning | |---|---| | `400` | Empty query, unknown host, a product URL, or `page` below 1. | | `403` | Blocked. | | `404` | No product card on the page. | | `500` | The page could not be fetched. | ## Related endpoints [Boulanger Product](https://www.piloterr.com/library/boulanger-product): one product page from a `/ref/{id}` URL or a numeric id.