{
  "openapi": "3.0.1",
  "info": {
    "title": "Cdiscount Scraper - France Products, Prices & Offers",
    "description": "Collect products from Cdiscount in France by keyword, category, campaign or product URL. Get prices, ratings, sellers and optional offer rows. Pay per delivered row plus a start fee.",
    "version": "0.4",
    "x-build-id": "EauCw7jfDrzpQVBrT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~cdiscount-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~cdiscount-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~cdiscount-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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": [
              "auto",
              "keywordSearch",
              "campaignBrowse",
              "categoryBrowse",
              "reconditioned",
              "productDetail",
              "sellerShop",
              "suggest"
            ],
            "type": "string",
            "description": "Auto picks the mode from what you fill in: a product URL (or SKU + category ID) opens that product, a category or campaign URL/ID browses it, a keyword searches. Pick a mode to force it. Reconditioned lists refurbished items (a keyword narrows it). Seller shop lists one marketplace seller's products from a shop URL or seller ID. Suggest returns the catalog's autocomplete cards and suggested terms for a keyword.",
            "default": "auto"
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Search keyword, e.g. ecouteurs (keyword search and suggest; optional for reconditioned)."
          },
          "query": {
            "title": "Query (alias)",
            "type": "string",
            "description": "Same as Keyword (older name). Leave empty if Keyword is filled."
          },
          "productUrl": {
            "title": "Product URL",
            "pattern": "^(https://([A-Za-z0-9-]+\\.)*cdiscount\\.com([/?#].*)?|/([^/].*)?)$",
            "type": "string",
            "description": "Product page on cdiscount.com (any subdomain), or a path starting with /. Opens that product (product detail)."
          },
          "sku": {
            "title": "SKU",
            "type": "string",
            "description": "Product SKU. Use together with Category ID for a product page (/f-<category>-<sku>.html)."
          },
          "categoryUrl": {
            "title": "Category URL",
            "pattern": "^(https://([A-Za-z0-9-]+\\.)*cdiscount\\.com([/?#].*)?|/([^/].*)?)$",
            "type": "string",
            "description": "Category page on cdiscount.com (any subdomain), or a path starting with /. Browses that category."
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Category ID: browses the category (/l-<id>.html), or with SKU opens one product."
          },
          "campaignUrl": {
            "title": "Campaign URL",
            "pattern": "^(https://([A-Za-z0-9-]+\\.)*cdiscount\\.com([/?#].*)?|/([^/].*)?)$",
            "type": "string",
            "description": "Campaign page on cdiscount.com (any subdomain), or a path starting with /. Browses that campaign."
          },
          "campaignId": {
            "title": "Campaign ID",
            "type": "string",
            "description": "Campaign ID (campaign browse)."
          },
          "campaignSlug": {
            "title": "Campaign slug",
            "type": "string",
            "description": "Campaign slug (optional, with Campaign URL or ID)."
          },
          "shopUrl": {
            "title": "Seller shop URL",
            "pattern": "^(https://([A-Za-z0-9-]+\\.)*cdiscount\\.com([/?#].*)?|/([^/].*)?)$",
            "type": "string",
            "description": "Marketplace seller shop on cdiscount.com (https://www.cdiscount.com/mpv-<sellerId>-<slug>.html), or a path starting with /. Lists that seller's products (seller shop)."
          },
          "sellerId": {
            "title": "Seller ID",
            "type": "string",
            "description": "Cdiscount marketplace seller ID (seller shop). Use instead of Seller shop URL."
          },
          "shopSlug": {
            "title": "Shop slug",
            "type": "string",
            "description": "Seller shop slug (optional, with Seller ID)."
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most rows for the selected keyword, category, campaign, or product input. Default 70; larger numbers are collected in parts of 70. Product and offer rows count together. The whole run stops at your maximum total charge. Free Apify plan: up to 200 rows per run and 10 runs of this Actor.",
            "default": 70
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "rating",
              "sales"
            ],
            "type": "string",
            "description": "Choose relevance, ascending or descending price, rating, or sales order. Availability of sorting depends on the page type."
          },
          "brand": {
            "title": "Brand filter",
            "type": "string",
            "description": "Brand to request as a listing filter. Filter support depends on the selected page."
          },
          "minPrice": {
            "title": "Min price",
            "type": "number",
            "description": "Minimum listing price to request, in euros."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "number",
            "description": "Maximum listing price to request, in euros."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "new",
              "used",
              "refurbished"
            ],
            "type": "string",
            "description": "Request new, used or refurbished products where the listing supports this filter."
          },
          "shipToCountry": {
            "title": "Ship-to country",
            "enum": [
              "FR",
              "BE",
              "ES",
              "IT",
              "DE",
              "NL",
              "LU",
              "AT",
              "IE",
              "PT"
            ],
            "type": "string",
            "description": "Delivery destination country for postal delivery quotes and row annotation on the French catalog (FR, BE, ES, IT, DE, NL, LU, AT, IE, PT). Cdiscount operates one French catalog in EUR rather than separate national stores."
          },
          "browseCountry": {
            "title": "Browse country",
            "enum": [
              "FR"
            ],
            "type": "string",
            "description": "Catalog market (FR only).",
            "default": "FR"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Prices use EUR when a price is available. Other currency values do not convert prices.",
            "default": "EUR"
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Listing page to start from, between 1 and 100.",
            "default": 1
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of listing pages to scan, from 1 to 50 (default 50). Collection stops earlier once maxResults is reached.",
            "default": 50
          },
          "enrichDetails": {
            "title": "Add product and seller details",
            "type": "boolean",
            "description": "Try product pages and published seller business information for listing rows. Enabled by default; enrichLimit controls how many listing products are checked.",
            "default": true
          },
          "enrichLimit": {
            "title": "Enrich limit",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of listing products to try for extra details, from 1 to 20. The default is 1; unavailable details can remain empty.",
            "default": 1
          },
          "includeOffers": {
            "title": "Include offers as rows",
            "type": "boolean",
            "description": "Add a separate, billed row for each collected marketplace offer. Product and offer rows count together toward maxResults.",
            "default": false
          },
          "includeReviews": {
            "title": "Include reviews as rows",
            "type": "boolean",
            "description": "Add separate, billed customer review rows (paginated up to the remaining maxResults budget). Product, offer, review and question rows count together toward maxResults.",
            "default": false
          },
          "includeQuestions": {
            "title": "Include questions as rows",
            "type": "boolean",
            "description": "Add separate, billed customer question-and-answer rows (paginated up to the remaining maxResults budget). Product, offer, review and question rows count together toward maxResults.",
            "default": false
          },
          "includeCarousel": {
            "title": "Include product carousel",
            "type": "boolean",
            "description": "On product detail runs, also request the product recommendation carousel summary when available. This adds detail to the product row, not separate billed rows.",
            "default": false
          },
          "shippingPostalCode": {
            "title": "Shipping postal code",
            "type": "string",
            "description": "Optional destination postal code for delivery quotes (for example 75001 for FR, 1000 for BE, 1111 for LU, 10115 for DE, 28001 for ES, 00100 for IT, 1012 AB for NL, 1010 for AT, 1000-001 for PT, or D01 F5P2 for IE). Must match shipToCountry (defaults to FR)."
          },
          "monitorMode": {
            "title": "Monitor changes",
            "type": "boolean",
            "description": "Track product changes across runs using business-field snapshots (price, reference price, offer summary, availability, seller) and attach changeType and changedFields.",
            "default": false
          },
          "monitorStateKey": {
            "title": "Monitor state key",
            "type": "string",
            "description": "Optional snapshot namespace when monitorMode is enabled (defaults to default)."
          },
          "emitUnchanged": {
            "title": "Emit unchanged products",
            "type": "boolean",
            "description": "When monitorMode is enabled, also emit products whose tracked business fields have not changed since the previous snapshot.",
            "default": false
          },
          "fetchBff": {
            "title": "Additional offer and shipping details",
            "type": "boolean",
            "description": "Request additional offer and shipping details where available. Published data and the selected collection options determine which details are returned.",
            "default": true
          },
          "workerBaseUrl": {
            "title": "Developer testing",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}