{
  "openapi": "3.0.1",
  "info": {
    "title": "TCG Card Price Lookup: Pokemon & Yu-Gi-Oh Prices",
    "description": "Pokemon and Yu-Gi-Oh card prices as one row per printing: TCGplayer market and low, Cardmarket trend and 30-day average, YGOPRODeck set price, with the date of every price. Get price-drop alerts in Discord, Slack or n8n. Names or ids, no images, no sold prices.",
    "version": "1.0",
    "x-build-id": "vfAzE3mtaechbSNK1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/accountable_eel~tcg-card-price-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-accountable_eel-tcg-card-price-lookup",
        "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/accountable_eel~tcg-card-price-lookup/runs": {
      "post": {
        "operationId": "runs-sync-accountable_eel-tcg-card-price-lookup",
        "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/accountable_eel~tcg-card-price-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-accountable_eel-tcg-card-price-lookup",
        "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": {
          "cards": {
            "title": "Cards to price",
            "type": "array",
            "description": "One card per line: a name (Charizard, Dark Magician), a Pokemon card id (base1-4) or a Yu-Gi-Oh card id (46986414). Yu-Gi-Oh names must match the card name exactly. Prices only: no images, no sold prices. Accepted formats: Charizard, base1-4, Dark Magician, 46986414, yugioh: Blue-Eyes White Dragon. You're only charged for the ones we actually find — a miss costs nothing.",
            "items": {
              "type": "string"
            }
          },
          "game": {
            "title": "Game",
            "enum": [
              "pokemon",
              "yugioh",
              "mtg"
            ],
            "type": "string",
            "description": "Which game your card lines are about. A line can carry its own game, e.g. \"yugioh: Dark Magician\". Magic is switched off in this version and returns BLOCKED rows that are never charged.",
            "default": "pokemon"
          },
          "maxPrintingsPerCard": {
            "title": "Most printings per card",
            "type": "integer",
            "description": "Up to 50. A name can have many printings (Charizard has over a hundred). The cheapest ones by headline price are returned first, and you pay per printing returned, so this is your budget control. Pokemon: chosen among the first 50 printings the API lists.",
            "default": 3
          },
          "setFilter": {
            "title": "Only this set (optional)",
            "type": "string",
            "description": "Text that must appear in the set name, set id (Pokemon, e.g. base1) or set code (Yu-Gi-Oh, e.g. LOB). Applied here after the prices are read. Pokemon: it filters the first 50 printings of a name the API returns.",
            "default": ""
          },
          "minPrice": {
            "title": "Lowest headline price",
            "type": "number",
            "description": "0 means off. Printings whose headline price is below this are left out and not billed. Applied here. Pokemon cards without a TCGplayer price use a EUR price, so mind the currency column.",
            "default": 0
          },
          "maxPrice": {
            "title": "Highest headline price",
            "type": "number",
            "description": "0 means off. Printings whose headline price is above this are left out and not billed. Applied here.",
            "default": 0
          },
          "setIndex": {
            "title": "Set value index (optional)",
            "type": "string",
            "description": "One set per line (or separate with ;). Pokemon: the set id, e.g. base1 or sv3pt5. Yu-Gi-Oh: the exact set name, e.g. yugioh: Legend of Blue Eyes White Dragon (a set code or part of a name finds nothing). Each set gives ONE summary row: cards in the set, the summed market price (USD, cards with no price are left out and counted), the 5 dearest cards, and with Track price changes on, the change since last run and the 5 biggest movers. Summary rows are not billed. Leave empty for normal card lookups. Up to 10 sets per run.",
            "default": ""
          },
          "deltaMode": {
            "title": "Track price changes between runs",
            "type": "boolean",
            "description": "Turns this into a price watchlist. Each run compares every printing with what the same watchlist saw last time and fills in Change since last run, Price last run, Price change % and Lowest price seen. By default only printings whose price moved (and printings seen for the first time) come back, so a quiet run returns one summary row and bills nothing. Schedule it daily and send the alerts to Discord, Slack or Telegram with Send alerts to below.",
            "default": false
          },
          "alertOn": {
            "title": "Alert on",
            "type": "array",
            "description": "One per line: price-drop, price-rise. Leave the default for price-drop.",
            "items": {
              "type": "string"
            }
          },
          "minChangePct": {
            "title": "Smallest price move to alert on (%)",
            "type": "integer",
            "description": "A printing must be at least this much cheaper (or dearer) than when the watchlist last saw it to count as a move.",
            "default": 5
          },
          "alertOnChangeOnly": {
            "title": "Return only printings that moved",
            "type": "boolean",
            "description": "On by default whenever monitoring is on: printings whose price did not move are left out and not billed (a printing seen for the first time still comes back). Turn it off to get every printing back each run, annotated, and billed.",
            "default": true
          },
          "skipFirstRun": {
            "title": "Remember silently on the first run",
            "type": "boolean",
            "description": "The first run of a watchlist has nothing to compare with. Turn this on to remember every printing without returning or billing it, so a schedule starts quietly.",
            "default": false
          },
          "deltaName": {
            "title": "Watchlist name (optional)",
            "type": "string",
            "description": "Leave empty and a name is derived from your card lines, game and filters, so two schedules with different cards keep separate memories. Type your own name to keep one memory across changes.",
            "default": ""
          },
          "notifyUrl": {
            "title": "Send alerts to (Discord or Slack webhook, Telegram bot link, or any URL)",
            "type": "string",
            "description": "Optional. After the rows are billed, each price move is posted here as one message: card, set, price (and what it was), lowest seen and link, with a PRICE DROP -X% or PRICE RISE +X% badge. No images. Discord or Slack: paste the channel's webhook URL. Telegram: https://api.telegram.org/bot<token>/sendMessage?chat_id=<chat id>. Any other URL receives JSON. Messages are free, and a message that fails never fails the run (the rows' Alert delivery errors says why). Stored encrypted, never logged or written to the results."
          },
          "notifyFormat": {
            "title": "Message format",
            "enum": [
              "auto",
              "discord",
              "slack",
              "telegram",
              "json"
            ],
            "type": "string",
            "description": "Leave on auto and the format is detected from the link.",
            "default": "auto"
          },
          "maxNotificationsPerRun": {
            "title": "Most alert messages per run",
            "type": "integer",
            "description": "Up to 100. Above this, one \"+N more\" message says how many more alerts are in the run's dataset. 0 sends only that summary.",
            "default": 20
          },
          "testRun": {
            "title": "Try it first — only process the first 5",
            "type": "boolean",
            "description": "Turn this on to test your input on a small sample before running the full list. Turn it off to process everything.",
            "default": false
          },
          "onlyFound": {
            "title": "Hide rows with no result",
            "type": "boolean",
            "description": "Only keep rows where something was actually found. Misses are always free, whether or not you show them here.",
            "default": false
          },
          "includeKeywords": {
            "title": "Only keep rows containing",
            "type": "array",
            "description": "Optional. Only keep results that mention at least one of these words (e.g. a job title, a city, a product name). Leave empty to keep everything.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Skip rows containing",
            "type": "array",
            "description": "Optional. Drop any result that mentions one of these words. Leave empty to skip nothing.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Stop after this many results",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Stop the run once this many results have been found — useful for a quick, cheap sample. Leave blank for no limit."
          },
          "columns": {
            "title": "Which columns do you want?",
            "type": "array",
            "description": "Choose which pieces of information to include in each result row. All are included by default.",
            "items": {
              "type": "string",
              "enum": [
                "cardCount",
                "cardsRequested",
                "cardsFound",
                "cardsNotDelivered",
                "truncated",
                "monitorStatus",
                "cards",
                "inputCard",
                "game",
                "cardId",
                "name",
                "set",
                "number",
                "rarity",
                "variant",
                "variants",
                "headlinePrice",
                "headlineSource",
                "headlineCurrency",
                "tcgplayerMarket",
                "tcgplayerLow",
                "cardmarketTrend",
                "cardmarketAvg30",
                "cardmarketPrice",
                "ebayPrice",
                "amazonPrice",
                "coolstuffincPrice",
                "priceUpdatedAt",
                "cardmarketUpdatedAt",
                "cardUrl",
                "checkedAt",
                "changeType",
                "previousPrice",
                "changePct",
                "lowestEverSeen",
                "firstSeenAt",
                "notifyErrors",
                "rowType",
                "setId",
                "cardsPriced",
                "priceSum",
                "priceCurrency",
                "topCards",
                "indexStatus",
                "previousPriceSum",
                "cardsCompared",
                "indexChangePct",
                "movers"
              ],
              "enumTitles": [
                "Cards returned",
                "Cards asked for",
                "Cards found",
                "Cards not delivered",
                "Stopped short",
                "Monitoring status",
                "All cards (full list)",
                "Your input line",
                "Game",
                "Card id",
                "Name",
                "Set",
                "Number",
                "Rarity",
                "Variant",
                "Variants priced",
                "Headline price",
                "Headline source",
                "Headline currency",
                "TCGplayer market",
                "TCGplayer low",
                "Cardmarket trend",
                "Cardmarket 30-day average",
                "Cardmarket price",
                "eBay price",
                "Amazon price",
                "CoolStuffInc price",
                "Price updated",
                "Cardmarket updated",
                "Card link",
                "Checked at",
                "Change since last run",
                "Price last run",
                "Price change %",
                "Lowest price seen",
                "First seen",
                "Alert delivery errors",
                "Row type",
                "Set id",
                "Cards priced",
                "Set value (sum)",
                "Set value currency",
                "Dearest 5 cards",
                "Index status",
                "Set value last run",
                "Cards compared",
                "Set value change %",
                "Biggest movers"
              ]
            },
            "default": [
              "cardCount",
              "cardsRequested",
              "cardsFound",
              "cardsNotDelivered",
              "truncated",
              "monitorStatus",
              "cards",
              "inputCard",
              "game",
              "cardId",
              "name",
              "set",
              "number",
              "rarity",
              "variant",
              "variants",
              "headlinePrice",
              "headlineSource",
              "headlineCurrency",
              "tcgplayerMarket",
              "tcgplayerLow",
              "cardmarketTrend",
              "cardmarketAvg30",
              "cardmarketPrice",
              "ebayPrice",
              "amazonPrice",
              "coolstuffincPrice",
              "priceUpdatedAt",
              "cardmarketUpdatedAt",
              "cardUrl",
              "checkedAt",
              "changeType",
              "previousPrice",
              "changePct",
              "lowestEverSeen",
              "firstSeenAt",
              "notifyErrors",
              "rowType",
              "setId",
              "cardsPriced",
              "priceSum",
              "priceCurrency",
              "topCards",
              "indexStatus",
              "previousPriceSum",
              "cardsCompared",
              "indexChangePct",
              "movers"
            ]
          },
          "expandRows": {
            "title": "One row per card (recommended) — turn off for one row per card instead",
            "type": "boolean",
            "description": "When on, each card found gets its own row instead of being grouped under its card. You're still only charged once per card, no matter how many rows it produces.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 1,
            "type": "integer",
            "description": "Parallel requests. Keep conservative — this target has no browser fallback, so getting blocked costs more than slow-and-steady.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy config. This target is a free public API that needs no proxy — defaults to off, but you can turn one on if you prefer.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}