# Rexel Product ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/rexel/product` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 2 credits per call | | **Documentation** | https://www.piloterr.com/library/rexel-product | ## Description Get a Rexel France product page: references, EAN, descriptions, images and specs via browser rendering. ## 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/rexel/product' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Hager WXF122 ```json { "ean": "3250617191227", "url": "https://www.rexel.fr/frx/HAGWXF122/p/71742449", "name": "Prise de courant gallery 2P+T double pré cablées", "brand": "Hager", "images": [ "https://api.rexel.fr/media/api/fr/content/71742449/EXTRA_LARGE_WEBP" ], "rexel_ref": "HAGWXF122", "product_id": 71742449, "breadcrumbs": null, "description": "Gallery est l'appareillage modulaire 45x45 pour chantiers résidentiels et tertiaires.", "specifications": { "gamme": "Gallery", "intensite": "16 A", "type_de_pose": "encastré", "tension_nominale": "250 V" }, "manufacturer_ref": "WXF122", "short_description": "La prise de courant double pré cablées 2P+T WXF122 fait partie de la gamme gallery." } ``` ## Documentation ## Overview Get a Rexel France product page: name, brand, references, EAN, descriptions, images and technical specifications. Pass a full product URL that contains `/p/{id}`. France only. Prices and stock are not returned (Rexel pro login required on the site). Browser rendering. Costs **2 credits** per call. ## Quickstart ``` GET https://api.piloterr.com/v2/rexel/product?query=https://www.rexel.fr/frx/HAGWXF122/p/71742449 ``` ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Rexel FR product URL with `/p/{id}` | | `return_page_source` | boolean | no | Return rendered HTML instead of JSON | ## Response fields | Field | Type | Description | |---|---|---| | `product_id` | integer | Rexel product id | | `url` / `name` / `brand` | string | Page URL, title, brand | | `rexel_ref` / `manufacturer_ref` / `ean` | string | References | | `short_description` / `description` | string | Short and long text | | `images` | string[] | Image URLs | | `breadcrumbs` | array | Navigation crumbs when present | | `specifications` | object | Technical key/value pairs | ## Error codes | Code | Meaning | |---|---| | `400` | Missing URL or not a Rexel FR product page | | `404` | Product page not recognized | | `500` | Rendering failed | ## Related endpoints - [Rexel Search](https://www.piloterr.com/library/rexel-search)