Piloterr

Carrefour Suggest

Utiliser en masse avec DataflowLancez cet endpoint sur un fichier ou une liste, une fois ou selon une planification.

GET
/v2/carrefour/suggest

Get product suggestions from Carrefour by keyword or EAN, returning matching products with pricing, availability, and product details.

Credit cost: 1 credit per call

Authentification

ApiKeyAuth
headerx-api-key<token>

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

Paramètres de requête

query*string

Search keyword or EAN code to get product suggestions from Carrefour.

Accepted formats:

  • coca: keyword (e.g. brand name, product type)
  • 3276550063551: EAN barcode

Example (keyword):

coca

Example (EAN):

3276550063551

Note: Only carrefour.fr is currently supported.

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

Corps de la réponse

Successful response

application/json
  1. response
results?array<>
Example Request
curl -X GET 'https://api.piloterr.com/v2/carrefour/suggest?query=string'
Example Response
{
  "results": [
    {
      "id": "product-5000112611861",
      "type": "product",
      "links": {
        "self": "/p/soda-au-cola-gout-original-coca-cola-5000112611861",
        "reviews": "/product/5000112611861/reviews"
      },
      "attributes": {
        "ean": "5000112611861",
        "slug": "soda-au-cola-gout-original-coca-cola",
        "brand": "COCA-COLA",
        "title": "Soda au Cola Goût Original COCA-COLA",
        "format": "1,75L",
        "offers": {
          "5000112611861": {
            "0261_150_6": {
              "id": "0261-150-6",
              "type": "offer",
              "attributes": {
                "ean": "5000112611861",
                "price": {
                  "price": 2.39,
                  "perunit": 1.37,
                  "perunitlabel": "1.37 € / L",
                  "unitofmeasure": "L"
                },
                "availability": {
                  "purchasable": true
                }
              }
            }
          }
        },
        "packaging": "la bouteille d'1,75L",
        "categories": [
          {
            "id": "27070",
            "slug": "boissons",
            "label": "Boissons",
            "level": 1
          },
          {
            "id": "27073",
            "slug": "colas-thes-glaces-et-soft-drinks",
            "label": "Colas, Thés glacés, Sirops et Sodas",
            "level": 2
          }
        ],
        "nutriscore": null,
        "shorttitle": "Soda au Cola Goût Original COCA-COLA",
        "businesstype": "food",
        "customerreviews": {
          "count": 33,
          "rates": null,
          "average": 4.79
        }
      }
    }
  ]
}