Piloterr

E.Leclerc Product

GET
/v2/eleclerc/product

Read one E.Leclerc product by EAN or product URL. Pass store_id to get that store's price and stock. Another store returns a different price and stock.

Credit cost: 1 credit per call

Authorization

ApiKeyAuth
headerx-api-key<token>

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

Query Parameters

query*string

E.Leclerc product EAN or product page URL.

Examples:

3564700201442https://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.
  • If no store_id is provided, the product is looked up on the national online store.
  • When available, environmental_cost returns ADEME impact points (Coût environnemental).
store_id?string

E.Leclerc store sign code. This selects that store's price and stock.

Examples:

1017
1833

1017 is Marennes. 1833 is Coutras. The same EAN can be in stock in one store and unavailable in the other.

Response Body

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}