Piloterr

E.Leclerc Product

Usar en masa con DataflowEjecuta este endpoint sobre un archivo o una lista, una vez o con una programación.

GET
/v2/eleclerc/product

Read one E.Leclerc product by EAN or product URL. Pass store_id for that store's drive and click-and-collect price. A store with no row for that EAN returns 404.

Credit cost: 1 credit per call

Autorización

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

E.Leclerc product EAN or product page URL.

Examples:

3564700201442

https://www.e.leclerc/fp/jus-de-citron-de-sicile-2-x-125-ml-rustica-3564700201442

Notes:

  • Accepts a 13-digit EAN or a full www.e.leclerc/fp/... URL. Extra query params (srsltid, offerId) are ignored.
  • The returned ean is this EAN. Another product is not substituted.
  • If no store_id is provided, the product is looked up on the national online catalog.
  • When available, environmental_cost returns ADEME impact points (Coût environnemental).
store_id?string

E.Leclerc store sign code. This selects that store's drive and click-and-collect price and stock, not the shelf price.

Examples:

1017

1833

Notes:

  • 1017 is Marennes. 1833 is Coutras.
  • Call the same EAN once per store and check that the returned ean matches.
  • If the store response has no row for that EAN, the API returns 404.
  • The same EAN with stock 0 is returned as unavailable, with an empty price.
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

Cuerpo de la respuesta

Successful response

application/json
  1. response
ean?string
brand?string
image?string
offer?
title?string
data_layer?
rating_count?integer
rating_average?integer
Example Request
curl -X GET 'https://api.piloterr.com/v2/eleclerc/product?query=string'
Example Response
{
  "ean": "5702016367676",
  "brand": "Lego®",
  "image": "https://media.e.leclerc/5702016367676_1",
  "offer": {
    "price": {
      "price": 39.9,
      "availability_status": "En stock",
      "offer_availability_status": "in-stock"
    },
    "elected_offer": {
      "slug": "fp/lego-duplo-rescue-la-caserne-de-pompiers-10903-5702016367676?offerId=m-5702016367676-1017",
      "stock": 1,
      "shop_id": "10171011",
      "shop_name": "E.Leclerc MARENNES",
      "offer_type": "leclerc_store",
      "national_offer_id": "m-5702016367676-1017"
    },
    "cnc_offers_count": 1
  },
  "title": "Lego® Duplo® Rescue - La Caserne De Pompiers - 10903",
  "data_layer": {
    "id": "5702016367676",
    "ean": "5702016367676",
    "name": "Lego® Duplo® Rescue - La Caserne De Pompiers - 10903",
    "price": "39.90",
    "vendor": "E.Leclerc MARENNES",
    "in_stock": true
  },
  "rating_count": 3,
  "rating_average": 5
}