{
  "openapi": "3.0.1",
  "info": {
    "title": "PriceCharting Scraper: Graded & Sports Card Prices, Sold Comps",
    "description": "PriceCharting card prices at every grade, ungraded to PSA 10, BGS 10, CGC and SGC, with population, price history and sold listings. Pokemon, Magic, Yu-Gi-Oh, sports cards and video games, by name, set or URL. $2.80 per 1,000 cards.",
    "version": "0.0",
    "x-build-id": "rGhyaThqdKJA3hXGN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~pricecharting-graded-card-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-pricecharting-graded-card-prices-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/scrapebench~pricecharting-graded-card-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-pricecharting-graded-card-prices-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/scrapebench~pricecharting-graded-card-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-pricecharting-graded-card-prices-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": {
          "queries": {
            "title": "Card names",
            "type": "array",
            "description": "Cards to search, one per line (Charizard Base Set, Michael Jordan 1986 Fleer, Chrono Trigger). Add the year, set or card number for a tighter match. Each search returns up to Maximum results cards; a card found twice is returned and charged once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Card name (single)",
            "type": "string",
            "description": "One card name, for saved tasks and API calls that send a single value. Use Card names above for several."
          },
          "sets": {
            "title": "Sets",
            "type": "array",
            "description": "Whole sets to export, most valuable card first, one per line: the set name as PriceCharting shows it (Pokemon Base Set, 1986 Fleer with category basketball) or the set's page URL.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "set": {
            "title": "Set (single)",
            "type": "string",
            "description": "One set name or set URL, for saved tasks and API calls that send a single value."
          },
          "urls": {
            "title": "PriceCharting URLs or ids",
            "type": "array",
            "description": "Card pages (https://www.pricecharting.com/game/pokemon-base-set/charizard-4), set pages (…/console/…), search pages, or bare card ids, one per line. Sports card pages work too.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "enum": [
              "any",
              "pokemon",
              "magic",
              "yugioh",
              "other-tcg",
              "baseball",
              "basketball",
              "football",
              "hockey",
              "soccer",
              "racing",
              "ufc",
              "wrestling",
              "golf",
              "tennis",
              "boxing",
              "video-games"
            ],
            "type": "string",
            "description": "Only this kind of card. Any searches trading cards, sports cards and video games together.",
            "default": "any"
          },
          "grades": {
            "title": "Grades for sold listings and history",
            "type": "array",
            "description": "Only these grades in sold listings and price history, as the price table names them (Ungraded, Grade 9, PSA 10, BGS 10, CGC 10 Pristine). Empty means every grade. Card rows always carry every grade's price.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeSold": {
            "title": "Sold listings",
            "type": "boolean",
            "description": "Also return recent sold listings for each card and grade as rows: date, price, listing title and link, marketplace. Charged per sold listing.",
            "default": false
          },
          "maxSoldPerGrade": {
            "title": "Sold listings per grade",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cap on sold rows per card and grade, newest first (the source shows up to about 30 per grade).",
            "default": 10
          },
          "includeHistory": {
            "title": "Price history",
            "type": "boolean",
            "description": "Add the monthly price history per grade to each card row (Ungraded, Grade 7, 8, 9, 9.5 and PSA 10 for cards). No extra charge.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results per search or set",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on cards for EACH card name or set. A search shows at most 100 matches; a set export has no such limit.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: leave off. Turn on a proxy only if your runs are refused.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}