Piloterr

Cdiscount Product

Usar em massa com o DataflowExecute este endpoint sobre um arquivo ou uma lista, uma vez ou com agendamento.

GET
/v2/cdiscount/product

Extract full product details from a Cdiscount product page, including price, seller, ratings, specifications, and offers.

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

Cdiscount product page URL, a dp.aspx?sku= URL, or the sku itself.

The sku is the short name stuck to the EAN. geb and 3283981070560 become geb3283981070560.

Example:

https://www.cdiscount.com/dp.aspx?sku=geb3283981070560

A classic product URL such as /f-{category}-{id}.html still works. Offer pages (/mp-{id}-{ean}.html) belong to Cdiscount Product Offer.

name?string

Short product name used in the Cdiscount sku, such as geb. Sent with ean.

ean?string

EAN barcode. With name, the scraper calls https://www.cdiscount.com/dp.aspx?sku={name}{ean}.

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
id?string
ean?string
url?string
brand?string
price?number
title?string
images?array<string>
rating?integer
seller?
is_cdav?boolean
currency?string
offer_id?integer
condition?string
description?string
is_available?boolean
other_offers?
delivery_info?string
reviews_count?integer
original_price?number
multiple_offer_url?string
multiple_offer_text?string
multiple_offer_starting_price?number
Example Request
curl -X GET 'https://api.piloterr.com/v2/cdiscount/product?query=string'
Example Response
{
  "id": "aaaph06865",
  "ean": "0683370375062",
  "url": "https://www.cdiscount.com/informatique/ordinateurs-pc-portables/acemagic-pc-portables-gaming/f-1070992-aaaph06865.html",
  "brand": "ACEMAGIC",
  "price": 429.99,
  "title": "ACEMAGIC PC Portables Gaming - 15.6\" FHD, AMD Ryzen 7 5700U(8C/16T, 4,3GHz),16Go RAM DDR4, 512Go M.2 SSD, WiFi 6, BT5.2, HDMI,Gris",
  "images": [
    "https://www.cdiscount.com/pdt2/8/6/5/1/700x700/aaaph06865/rw/acemagic-pc-portables-gaming.jpg"
  ],
  "rating": 4,
  "seller": {
    "id": 405259,
    "name": "BOOMING",
    "rating": 5,
    "sales_count": 1847,
    "reviews_count": 20
  },
  "is_cdav": true,
  "currency": "EUR",
  "offer_id": 4258700481,
  "condition": "Neuf",
  "description": "Portable gaming AMD Ryzen 7 5700U, 16Go RAM, 512Go SSD.",
  "is_available": true,
  "other_offers": {
    "total_offers": 1,
    "lowest_price_new": 459.9,
    "new_offers_count": 1,
    "lowest_price_used": null,
    "used_offers_count": 0
  },
  "delivery_info": "Livraison gratuite | Expédié depuis: FRANCE",
  "reviews_count": 2,
  "original_price": 499.9,
  "multiple_offer_url": "https://www.cdiscount.com/mp-352880-auc3283981039048.html",
  "multiple_offer_text": "2 offres neuves",
  "multiple_offer_starting_price": 9.24
}