{
  "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.2",
    "x-build-id": "tq5E5SwSjQRft7zlh"
  },
  "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",
              "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). 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)."
          },
          "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 to record with results from the French catalog. This does not select another catalog or guarantee that an offer ships there."
          },
          "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": "Retained page setting. Collection follows maxResults and continues through up to 50 listing pages regardless of this value.",
            "default": 1
          },
          "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
          },
          "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."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}