{
  "openapi": "3.0.1",
  "info": {
    "title": "Cardmarket Listings Scraper — Offers, Shops & Prices",
    "description": "Scrape Cardmarket listings by product URL, seller shop, or keyword — a Cardmarket API alternative for EU TCG shops. Export seller, condition, language, quantity, and EUR price as JSON.",
    "version": "1.0",
    "x-build-id": "gGuVw35L7j66FxbPn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawloop~cardmarket-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawloop-cardmarket-listings-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/crawloop~cardmarket-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawloop-cardmarket-listings-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/crawloop~cardmarket-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawloop-cardmarket-listings-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": {
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Cardmarket product search queries (e.g. charizard, black lotus). Each keyword finds matching products, then seller offers on those product pages. Results are merged and deduplicated by listing ID.",
            "items": {
              "type": "string"
            }
          },
          "sellerUsernames": {
            "title": "Seller usernames",
            "type": "array",
            "description": "Walk each seller's Cardmarket shop inventory (Offers / Singles). Handles without @, e.g. CardGameCorner. Game-scoped — set game below. Optional shopQuery filters by card name.",
            "items": {
              "type": "string"
            }
          },
          "shopQuery": {
            "title": "Shop name filter",
            "type": "string",
            "description": "When walking seller shops (usernames or /Users/ URLs), only keep listings whose card name matches this filter. Leave empty for full inventory. Does not apply to marketplace keyword search."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Cardmarket product, seller/shop, or search URLs. Product pages scrape seller offers. /Users/{handle}/Offers walks that shop. Search URLs parse searchString and game.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "game": {
            "title": "Game",
            "enum": [
              "Pokemon",
              "Magic",
              "YuGiOh",
              "OnePiece",
              "Lorcana",
              "DragonBallSuper",
              "Digimon",
              "FleshAndBlood",
              "StarWarsUnlimited",
              "Riftbound",
              "Cardfight",
              "FinalFantasy",
              "ForceOfWill",
              "WeissSchwarz"
            ],
            "type": "string",
            "description": "Cardmarket catalog for keyword search and seller shops. Ignored when a start URL already contains the game path (e.g. /en/Magic/...).",
            "default": "Pokemon"
          },
          "locale": {
            "title": "Site language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it"
            ],
            "type": "string",
            "description": "Cardmarket locale prefix (/en, /de, /fr, /es, /it). Prices stay in EUR.",
            "default": "en"
          },
          "minCondition": {
            "title": "Minimum condition",
            "enum": [
              "any",
              "MT",
              "NM",
              "EX",
              "GD",
              "LP",
              "PL",
              "PO"
            ],
            "type": "string",
            "description": "Only return listings at or better than this condition. Site grades: MT NM EX GD LP PL PO (Played is PL; MP is accepted as PL).",
            "default": "any"
          },
          "language": {
            "title": "Card language",
            "enum": [
              "any",
              "English",
              "French",
              "German",
              "Spanish",
              "Italian",
              "S-Chinese",
              "Japanese",
              "Portuguese",
              "Russian",
              "Korean",
              "T-Chinese"
            ],
            "type": "string",
            "description": "Only return listings in this print language.",
            "default": "any"
          },
          "sellerCountry": {
            "title": "Seller country",
            "enum": [
              "any",
              "AT",
              "BE",
              "BG",
              "CH",
              "CY",
              "CZ",
              "DE",
              "DK",
              "EE",
              "ES",
              "FI",
              "FR",
              "GB",
              "GR",
              "HR",
              "HU",
              "IE",
              "IT",
              "LT",
              "LU",
              "LV",
              "MT",
              "NL",
              "NO",
              "PL",
              "PT",
              "RO",
              "SE",
              "SI",
              "SK"
            ],
            "type": "string",
            "description": "Only show listings from sellers in this country (ISO code).",
            "default": "any"
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "commercial",
              "professional",
              "powerseller"
            ],
            "type": "string",
            "description": "Filter by Cardmarket seller type. Commercial = professional + powerseller.",
            "default": "any"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "best_match",
              "price_asc",
              "price_desc",
              "name_asc"
            ],
            "type": "string",
            "description": "Sort for keyword search and seller shops. Product offer tables stay in Cardmarket price order.",
            "default": "best_match"
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Drop listings cheaper than this EUR amount."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Drop listings more expensive than this EUR amount."
          },
          "isFoil": {
            "title": "Foil only",
            "type": "boolean",
            "description": "Only return foil listings when the product exposes a foil flag.",
            "default": false
          },
          "isReverseHolo": {
            "title": "Reverse holo only",
            "type": "boolean",
            "description": "Only return reverse-holo listings.",
            "default": false
          },
          "isSigned": {
            "title": "Signed cards only",
            "type": "boolean",
            "description": "Only return listings for signed cards.",
            "default": false
          },
          "isAltered": {
            "title": "Altered art only",
            "type": "boolean",
            "description": "Only return listings for altered art cards.",
            "default": false
          },
          "isFirstEd": {
            "title": "First edition only",
            "type": "boolean",
            "description": "Only return first-edition listings.",
            "default": false
          },
          "isPlayset": {
            "title": "Playsets only",
            "type": "boolean",
            "description": "Only return playset listings (typically 4 copies).",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listing rows to collect across all keywords, shops, and URLs. 0 = unlimited (subject to maxPages). Cardmarket product pages cap at 300 offers unless you tighten filters.",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages per product / shop / search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Safety cap on pagination. Product offers load ~50 per page; shops ~20; search ~30 products. Shop inventory is capped at 15 pages (~300 hits) by Cardmarket.",
            "default": 20
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "On a schedule, push and charge only listing IDs not seen in a previous run. First run delivers the full match set (baseline). Pair with an Apify Schedule and a stable monitorStoreName.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named Key-Value store for seen listing IDs across scheduled runs. Use a distinct name per watch (e.g. blastoise-nm vs charizard-shops).",
            "default": "cardmarket-listings-monitor"
          },
          "resetMonitorState": {
            "title": "Reset monitor state",
            "type": "boolean",
            "description": "Clear the seen-ID cache before this run (next run becomes a new baseline).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Recommended on Apify: RESIDENTIAL. Datacenter IPs usually hit Cloudflare. Local runs can leave proxy off.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}