{
  "openapi": "3.0.1",
  "info": {
    "title": "Coolblue & PriceSpy Scraper — EU EAN Price & Stock Feed",
    "description": "HTTP-first European EAN-13 / GTIN price, stock & Buy Box monitor across Coolblue (NL/BE) and PriceSpy / leDénicheur / Prisjakt (FR/GB/SE/NO/FI/IE). Strict EAN checksum validation, multi-seller offers, historical delta tracking, and Pay-Per-Event billing in 256 MB RAM.",
    "version": "1.0",
    "x-build-id": "6hYtaIhMwpMoJXtEP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~eu-ean-price-stock-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-eu-ean-price-stock-monitor",
        "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/vesper_studio~eu-ean-price-stock-monitor/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-eu-ean-price-stock-monitor",
        "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/vesper_studio~eu-ean-price-stock-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-eu-ean-price-stock-monitor",
        "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": {
          "eans": {
            "title": "EAN-13 / GTIN-13 Codes",
            "type": "array",
            "description": "List of EAN-13 or GTIN-13 codes to look up (validated against the GS1 check digit). Invalid EANs are skipped with a warning.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Search Keywords",
            "type": "array",
            "description": "Product names, model numbers, or SKUs to search across enabled adapters.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Direct Product or Search URLs",
            "type": "array",
            "description": "Direct Coolblue (coolblue.nl, coolblue.be) or PriceSpy / leDénicheur / Prisjakt product or search URLs. The matching adapter is selected automatically from the URL hostname.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "adapters": {
            "title": "Enabled Adapters",
            "type": "array",
            "description": "Adapters to query for EANs and keywords. Supported now: 'coolblue' (NL, BE) and 'pricespy' (FR, GB, SE, NO, FI, IE). Modular interface ready for 'bol', 'kaufland', 'cdiscount'.",
            "default": [
              "coolblue",
              "pricespy"
            ],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Target Country Codes",
            "type": "array",
            "description": "ISO 3166-1 alpha-2 country codes to query per adapter (Coolblue: NL, BE; PriceSpy/leDénicheur/Prisjakt: FR, GB, SE, NO, FI, IE).",
            "default": [
              "NL",
              "FR"
            ],
            "items": {
              "type": "string"
            }
          },
          "onlyPriceChanges": {
            "title": "Delta Mode: Emit Only Changes",
            "type": "boolean",
            "description": "When enabled, compares each item against the previous state stored in the Key-Value Store and pushes only items with a price, stock, or Buy Box seller change (plus newly discovered items).",
            "default": false
          },
          "trackDelta": {
            "title": "Track Delta State in Key-Value Store",
            "type": "boolean",
            "description": "Persists the latest (price, inStock, sellerName) snapshot per product/offer in the Key-Value Store and populates the 'priceChanged' field even when 'onlyPriceChanges' is false.",
            "default": true
          },
          "deltaStateStoreName": {
            "title": "Delta Key-Value Store Name",
            "type": "string",
            "description": "Named Apify Key-Value Store used to persist price and stock snapshots across scheduled runs. Use 'default' for per-run isolation.",
            "default": "eu-ean-price-stock-state"
          },
          "onlyNewCondition": {
            "title": "New Condition Offers Only",
            "type": "boolean",
            "description": "Filter out used/refurbished offers on multi-seller comparator feeds (e.g., PriceSpy / leDénicheur).",
            "default": true
          },
          "fastListingMode": {
            "title": "Fast Listing Mode (Skip Extra Product Requests When Possible)",
            "type": "boolean",
            "description": "When enabled, extracts full price, stock, and SKU data directly from search listing cards on supported storefronts (e.g., Coolblue) in a single HTTP request instead of fetching every product detail page.",
            "default": true
          },
          "maxOffersPerProduct": {
            "title": "Max Offers Per Comparator Product",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of seller offers to extract per PriceSpy / leDénicheur / Prisjakt product page.",
            "default": 10
          },
          "maxItemsPerQuery": {
            "title": "Max Products Per EAN / Keyword Query",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of product detail pages to inspect per search query on each adapter/country.",
            "default": 5
          },
          "maxItems": {
            "title": "Max Output Items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global cap on dataset items emitted per run.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max HTTP Concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Bounded concurrent HTTP requests (keep 3-8 for 256-512 MB memory targets).",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Optional Proxy Configuration",
            "type": "object",
            "description": "Disabled by default for zero-proxy HTTP execution. Enable Apify Proxy or custom proxy URLs only if needed for high-volume runs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}