{
  "openapi": "3.0.1",
  "info": {
    "title": "Cdiscount Scraper",
    "description": "Scrape Cdiscount.com products: price, original price, discount, seller, rating, reviews, EAN, specs and variants. Search by keyword or paste category, search, seller or product links. Export JSON, CSV, Excel.",
    "version": "1.0",
    "x-build-id": "AmcRLeg8S3jAUEVak"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~cdiscount-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-cdiscount-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/parsebird~cdiscount-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-cdiscount-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/parsebird~cdiscount-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-cdiscount-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "url"
            ],
            "type": "string",
            "description": "Choose Search to search Cdiscount by keyword, or URL to scrape the links you paste below.",
            "default": "search"
          },
          "searchWord": {
            "title": "Search word",
            "type": "string",
            "description": "Enter what you would type in the Cdiscount search bar, e.g. 'aspirateur' or 'iphone 15'. Used in Search mode."
          },
          "departmentId": {
            "title": "Department / category ID",
            "type": "string",
            "description": "Limit the search to one category: enter the number after 'l-' or 'v-' in a Cdiscount category link (14404 in .../telephone-mobile/l-14404.html), or paste the category link. Leave empty (or 10, Cdiscount's id for all departments) to search all of Cdiscount. With no Search word, the whole category is listed."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "bestsales",
              "priceAsc",
              "priceDesc",
              "rating"
            ],
            "type": "string",
            "description": "Choose the result order, as in Cdiscount's 'Trier par' menu.",
            "default": "relevance"
          },
          "filterIds": {
            "title": "Filter IDs (advanced)",
            "type": "array",
            "description": "Add Cdiscount facet filters in the site's own format, e.g. Marque/\"samsung\" or Neuf ou occasion/\"neuf\". See the README for how to find them.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Add Cdiscount category (l-…), department or brand (v-…), search (/search/… or r-…), seller shop (mpv-…) or product (f-…) links. Listing links are read page by page from the page in the link. Used in URL mode; when left empty, four example links are read in order.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of products to return across all searches and links. The run stops once this many are saved.",
            "default": 20
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum result pages to read per search or link (about 47-64 products per page). 0 or empty reads until results end or Max items is reached. Cdiscount never serves more than 101 pages."
          },
          "fetchDetails": {
            "title": "Fetch product details",
            "type": "boolean",
            "description": "Open each product page to add the full description, characteristics table, EAN, variants, breadcrumb, rating breakdown, the reviews shown on the page and seller details. Billed as one extra Detail event per product.",
            "default": false
          },
          "includeSponsored": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "Keep sponsored (advertised) placements. Turn off to drop them before they are returned or billed.",
            "default": true
          },
          "incrementalMode": {
            "title": "Incremental mode",
            "type": "boolean",
            "description": "For scheduled monitoring of the same search or links: return only products that are new or changed since the last run with the same setup.",
            "default": false
          },
          "emitUnchanged": {
            "title": "Return unchanged products",
            "type": "boolean",
            "description": "In incremental mode, also return (and bill) products that didn't change.",
            "default": false
          },
          "emitExpired": {
            "title": "Return expired products",
            "type": "boolean",
            "description": "In incremental mode, also return (and bill) products that disappeared, marked EXPIRED. Only after a run that reads every search or link to its end.",
            "default": false
          },
          "ignoreFieldsForChanges": {
            "title": "Ignore fields when detecting changes",
            "type": "array",
            "description": "Add output fields that should never make a product UPDATED, e.g. rating or variants.price (dotted paths reach inside lists). Images, sponsored, page, rankOnPage and scrapedAt are always ignored.",
            "items": {
              "type": "string"
            }
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name the monitoring baseline. Leave empty to derive it from the mode, searches, links, sort and filters."
          },
          "resumeFromRunId": {
            "title": "Resume from run",
            "type": "string",
            "description": "Paste the run ID or dataset ID of an interrupted run to skip the listing products it already collected, so you don't pay for them twice. Pasted product links are always read again."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Choose how to connect to Cdiscount. If pages are refused, the run switches to Apify datacenter and then French residential proxies automatically.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}