{
  "openapi": "3.0.1",
  "info": {
    "title": "TCGplayer Pokemon Price & Stock Watchlist",
    "description": "Monitor up to 25 exact English Pokemon variants: condition-specific asking offers, available stock, disclosed US shipping and before-tax cost targets. Stable snapshot keys support scheduled price and inventory workflows.",
    "version": "0.1",
    "x-build-id": "QGtiMYxevQKZdb34Z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpmarketdata~tcgplayer-english-pokemon-offer-shortlist/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpmarketdata-tcgplayer-english-pokemon-offer-shortlist",
        "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/jpmarketdata~tcgplayer-english-pokemon-offer-shortlist/runs": {
      "post": {
        "operationId": "runs-sync-jpmarketdata-tcgplayer-english-pokemon-offer-shortlist",
        "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/jpmarketdata~tcgplayer-english-pokemon-offer-shortlist/run-sync": {
      "post": {
        "operationId": "run-sync-jpmarketdata-tcgplayer-english-pokemon-offer-shortlist",
        "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": {
          "productIds": {
            "title": "TCGplayer product IDs",
            "minItems": 1,
            "maxItems": 25,
            "type": "array",
            "description": "One to twenty-five exact Pokemon single-card product IDs. Uses the common printing/condition. Use productIds or watchlist, never both; duplicate variants count once.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 999999999
            }
          },
          "printing": {
            "title": "Exact printing",
            "enum": [
              "Normal",
              "Holofoil",
              "Reverse Holofoil"
            ],
            "type": "string",
            "description": "Default exact source printing, overridable per watchlist target. English and public US one-card shipping remain fixed.",
            "default": "Holofoil"
          },
          "maxOffers": {
            "title": "Offers per product",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Return 1–20 qualified offers from a source sample capped at 50. Default 5; detail count does not add billable events.",
            "default": 5
          },
          "condition": {
            "title": "Default card condition",
            "enum": [
              "Near Mint",
              "Lightly Played",
              "Moderately Played",
              "Heavily Played",
              "Damaged"
            ],
            "type": "string",
            "description": "Exact TCGplayer source condition; overridable per watchlist target. No equivalence to grading or other marketplaces.",
            "default": "Near Mint"
          },
          "watchlist": {
            "title": "Variant watchlist",
            "minItems": 1,
            "maxItems": 25,
            "type": "array",
            "description": "Instead of productIds, supply 1–25 objects with productId and optional printing, condition and maxKnownSubtotalUsd. Cost targets compare one-card asking price plus disclosed US shipping before tax. Duplicate variants with conflicting targets are rejected.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "productId"
              ],
              "properties": {
                "productId": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 999999999,
                  "title": "Pokemon product ID",
                  "description": "Exact positive TCGplayer Pokemon single-card product ID, distinct from a seller, listing or SKU ID."
                },
                "printing": {
                  "type": "string",
                  "enum": [
                    "Normal",
                    "Holofoil",
                    "Reverse Holofoil"
                  ],
                  "title": "Card printing",
                  "description": "Exact source printing for this card; omission inherits the common printing."
                },
                "condition": {
                  "type": "string",
                  "enum": [
                    "Near Mint",
                    "Lightly Played",
                    "Moderately Played",
                    "Heavily Played",
                    "Damaged"
                  ],
                  "title": "Card condition",
                  "description": "Exact source condition for this card; omission inherits the common condition. No independent physical grading."
                },
                "maxKnownSubtotalUsd": {
                  "type": "number",
                  "maximum": 1000000,
                  "title": "Before-tax cost ceiling (USD)",
                  "description": "Optional positive maximum for one card plus disclosed US shipping before tax. Omit to disable this target.",
                  "minimum": 0.000001
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}