{
  "openapi": "3.0.1",
  "info": {
    "title": "TCG Price Movers & Spike Alerts - Pokemon, Magic, Cardmarket",
    "description": "Trading cards actually moving on Cardmarket, or an alert when one on your watchlist moves. Pokemon, Magic, Yu-Gi-Oh and 16 more games, read from Cardmarket's own daily price files.",
    "version": "0.1",
    "x-build-id": "9PnBC64VdzsuuRbaF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lowlanddata~tcg-price-movers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lowlanddata-tcg-price-movers",
        "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/lowlanddata~tcg-price-movers/runs": {
      "post": {
        "operationId": "runs-sync-lowlanddata-tcg-price-movers",
        "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/lowlanddata~tcg-price-movers/run-sync": {
      "post": {
        "operationId": "run-sync-lowlanddata-tcg-price-movers",
        "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": {
          "game": {
            "title": "Game",
            "enum": [
              "pokemon",
              "magic",
              "yugioh",
              "lorcana",
              "onepiece",
              "digimon",
              "fleshandblood",
              "starwarsunlimited",
              "dragonballsuper",
              "finalfantasy",
              "weissschwarz",
              "cardfightvanguard",
              "battlespiritssaga",
              "riftbound",
              "forceofwill",
              "starwarsdestiny",
              "mylittlepony",
              "worldofwarcraft",
              "thespoils",
              "dragoborne",
              "cyberpunk"
            ],
            "type": "string",
            "description": "Which trading card game to scan. Pokemon is the busiest market on Cardmarket.",
            "default": "pokemon"
          },
          "mode": {
            "title": "What to return",
            "enum": [
              "movers",
              "alerts"
            ],
            "type": "string",
            "description": "Movers ranks the cards moving right now and works on the very first run. Alerts remembers today’s prices and tells you only when one of your cards moves later.",
            "default": "movers"
          },
          "direction": {
            "title": "Direction",
            "enum": [
              "gainers",
              "losers",
              "both"
            ],
            "type": "string",
            "description": "Cards going up, going down, or both.",
            "default": "gainers"
          },
          "window": {
            "title": "Comparison window (movers mode)",
            "enum": [
              "1d",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "Which pair of averages the headline change compares.",
            "default": "7d"
          },
          "minChangePct": {
            "title": "Minimum move (%)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Ignore anything that moved less than this.",
            "default": 15
          },
          "minPriceEur": {
            "title": "Minimum card price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "A 2-cent common doubling to 4 cents is a 100% move and means nothing. The floor is what keeps bulk out.",
            "default": 2
          },
          "maxPriceEur": {
            "title": "Maximum card price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional ceiling, for watching a budget bracket."
          },
          "cardNames": {
            "title": "Only these cards",
            "type": "array",
            "description": "Partial names, one per line: charizard, umbreon. Leave empty to scan the whole game.",
            "items": {
              "type": "string"
            }
          },
          "expansionIds": {
            "title": "Only these expansions",
            "type": "array",
            "description": "Cardmarket expansion ids, as they appear in the output rows."
          },
          "includeFoil": {
            "title": "Include foil variants",
            "type": "boolean",
            "description": "Foils are priced separately and often move on their own.",
            "default": true
          },
          "requireCorroboration": {
            "title": "Only corroborated moves",
            "type": "boolean",
            "description": "Requires the 30-day average, the 7-day average and today’s trend to all point the same way, with the cheapest live offer already repriced. Without it, roughly half the catalogue looks like it is moving.",
            "default": true
          },
          "maxWatched": {
            "title": "Cards remembered (alerts mode)",
            "minimum": 50,
            "maximum": 50000,
            "type": "integer",
            "description": "Caps the monitor memory. When a whole game overflows it, the most valuable cards are kept.",
            "default": 5000
          },
          "resetState": {
            "title": "Reset the monitor memory",
            "type": "boolean",
            "description": "Forget the recorded prices and take a fresh baseline.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store holding the prices this monitor last reported.",
            "default": "tcg-movers-state"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many rows. Biggest movers come first.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}