Piloterr

E.Leclerc Suggest

GET
/v2/eleclerc/suggest

Get instant product autocomplete suggestions from E.Leclerc for a given keyword or EAN.

Credit cost: 1 credit per call

Autorização

ApiKeyAuth
x-api-key<token>

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

In: header

Parâmetros de consulta

query*string

Search term or EAN to get product suggestions for.

Accepted input types:

  • keyword: partial product name or category (e.g. pomme)
  • EAN: full product barcode (e.g. 9782330149635)

Example:

pomme

Notes:

  • Returns up to 6 autocomplete suggestions matching the query.
  • Each suggestion includes the product URL, slug, title, subtitle (author/brand), and image URL.
  • This endpoint mirrors the E.Leclerc website autocomplete search box.

Corpo da resposta

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v2/eleclerc/suggest?query=string"

{  "results": [    {      "url": "https://www.e.leclerc/fp/la-pomme-et-d-autres-fruits-jeunesse-9782070616480",      "slug": "/fp/la-pomme-et-d-autres-fruits-jeunesse-9782070616480",      "title": "La pomme et d'autres fruits (Jeunesse)",      "subtitle": "Pierre-Marie Valat, Pascale de Bourgoing",      "image_url": "https://media.e.leclerc/LEN/fp/9782070616480_1?vh=e07014"    },    {      "url": "https://www.e.leclerc/fp/la-pomme-relie-9782925347477",      "slug": "/fp/la-pomme-relie-9782925347477",      "title": "La pomme (Relié)",      "subtitle": "Anne Derenne",      "image_url": "https://media.e.leclerc/LEN/fp/9782925347477_1?vh=0796ab"    },    {      "url": "https://www.e.leclerc/fp/la-pomme-jeunesse-9782408007973",      "slug": "/fp/la-pomme-jeunesse-9782408007973",      "title": "La pomme (Jeunesse)",      "subtitle": "Charlotte Ameling, Paule Battault",      "image_url": "https://fgellaobb.filerobot.com/LEN/fp/9782408007973_1?vh=c622ce"    }  ]}

{  "error": "Bad Request"}
{  "error": "Invalid API Key"}
{  "error": "Payment required"}
{  "error": "Rate limit exceeded for the API key: quota monthly"}
{  "error": "Internal Error"}