Piloterr

Rexel Search

GET
/v2/rexel/search

Search Rexel France by keyword, EAN or search URL. Returns product cards and pagination via browser rendering.

Credit cost: 2 credits per call

Autorização

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Parâmetros de consulta

query*string

Keyword, EAN, or Rexel France search URL.

Examples:

prise
3250617191227
https://www.rexel.fr/frx/search?text=prise
page?string

Page number (1-based). Page 1 omits page in the URL.

return_page_source?boolean

When true, return rendered HTML instead of JSON.

fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Corpo da resposta

Successful response

application/json
  1. response
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/rexel/search?query=string'
Example Response
{  "results": [    {      "ean": null,      "url": "https://www.rexel.fr/frx/HAGWXF122/p/71742449",      "name": "Prise de courant gallery 2P+T double pré cablées",      "brand": "HAGER",      "image_url": "https://api.rexel.fr/media/api/fr/content/71742449/LARGE_WEBP",      "rexel_ref": "HAGWXF122",      "product_id": 71742449,      "description": "La prise de courant double pré cablées 2P+T WXF122 fait partie de la gamme gallery.",      "manufacturer_ref": "WXF122"    }  ],  "pagination": {    "next": "https://www.rexel.fr/frx/search?text=prise&page=2",    "page": 1,    "per_page": 24,    "total_pages": 2262,    "total_results": 54275  }}