{
  "openapi": "3.0.1",
  "info": {
    "title": "Fanatics Collect Sold Prices Scraper - Card Comps",
    "description": "Scrape sold prices from Fanatics Collect's 5.7M-sale history (ex-PWCC): grader, grade, cert number, sold date, Buy Now / Weekly / Premier. Unpaid sales excluded, grades parsed from titles, a free price summary per grade, and an incremental mode that bills only new sales.",
    "version": "0.1",
    "x-build-id": "PY1YuBYAan8PP817v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/incognito_mode~fanatics-collect-sold-comps/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-incognito_mode-fanatics-collect-sold-comps",
        "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/incognito_mode~fanatics-collect-sold-comps/runs": {
      "post": {
        "operationId": "runs-sync-incognito_mode-fanatics-collect-sold-comps",
        "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/incognito_mode~fanatics-collect-sold-comps/run-sync": {
      "post": {
        "operationId": "run-sync-incognito_mode-fanatics-collect-sold-comps",
        "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": {
          "searches": {
            "title": "Search terms",
            "type": "array",
            "description": "One search per line, matched against the sold item's title the same way the Sold Items search box does, e.g. \"1986 fleer michael jordan\" or \"base set charizard\". Each search runs separately and gets its own price summary. Leave empty (and add no URLs) to get the latest sales for the filters below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Sold Items page URLs",
            "type": "array",
            "description": "Optional. Set up a search with filters on https://sales-history.fanaticscollect.com/ and paste the address-bar URL here. Each URL is run as its own search with exactly the filters it contains (the shared filters below do not apply to it; the grade, price and unpaid filters still do).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "ALL",
              "BUY_NOW",
              "AUCTION",
              "PREMIER"
            ],
            "type": "string",
            "description": "Which Fanatics Collect marketplace the sales come from. Auction covers Weekly, Flash and legacy Monthly auctions.",
            "default": "ALL"
          },
          "category": {
            "title": "Category",
            "enum": [
              "All",
              "Trading Cards",
              "Baseball",
              "Basketball",
              "Football",
              "Hockey",
              "Golf",
              "Boxing & MMA",
              "Soccer",
              "Tennis",
              "Racing",
              "Misc Sports",
              "Non-Sport",
              "Yu-Gi-Oh!",
              "Magic The Gathering",
              "Pokémon",
              "Collectible Card Games",
              "Miscellaneous",
              "Memorabilia",
              "Photos",
              "Comics",
              "Tickets",
              "Coins",
              "Video Games"
            ],
            "type": "string",
            "description": "Category filter, same options as the site's filter panel.",
            "default": "All"
          },
          "gradingService": {
            "title": "Grading company",
            "enum": [
              "All",
              "PSA",
              "SGC",
              "BGS",
              "BVG",
              "BCCG",
              "CGC",
              "CSG",
              "ungraded"
            ],
            "type": "string",
            "description": "Only sales graded by this company (the site's \"Authenticators\" filter).",
            "default": "All"
          },
          "exactGrade": {
            "title": "Exact grade",
            "pattern": "^$|^(10|[1-9])(\\.5)?$",
            "type": "string",
            "description": "Optional. Keep only sales with exactly this numeric grade, e.g. \"10\" or \"9.5\". Title search alone cannot do this: \"PSA 10\" also matches card #10 graded PSA 9. Uses the grade from the API, or from the title when the API leaves it blank."
          },
          "yearMin": {
            "title": "Year from",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional. Earliest card/item year."
          },
          "yearMax": {
            "title": "Year to",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional. Latest card/item year."
          },
          "minPrice": {
            "title": "Min sold price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Skip sales below this price. Skipped sales are not charged."
          },
          "maxPrice": {
            "title": "Max sold price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Skip sales above this price. Skipped sales are not charged."
          },
          "excludeUnpaid": {
            "title": "Exclude unpaid sales",
            "type": "boolean",
            "description": "Unpaid sales were never completed and Fanatics removes them from the history later. They distort comps, so they are skipped (and not charged) by default.",
            "default": true
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "NEWEST",
              "HIGHEST_PRICE",
              "LOWEST_PRICE"
            ],
            "type": "string",
            "description": "Order in which sales are read. \"Sold in the last N days\" and incremental runs need Newest first.",
            "default": "NEWEST"
          },
          "soldWithinDays": {
            "title": "Sold in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each search at sales older than this many days. 0 = no date limit.",
            "default": 0
          },
          "onlyNewSinceLastRun": {
            "title": "Only new sales since last run",
            "type": "boolean",
            "description": "For scheduled runs: each search remembers which sales it already delivered (in a named key-value store in your account) and only returns, and charges for, sales it has not delivered before. It re-checks the last 14 days because auction sales appear in the history days after they end.",
            "default": false
          },
          "maxResultsPerSearch": {
            "title": "Max sales per search",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each search after delivering this many sales. 0 = no limit (each search still stops after 500 API pages; split very broad searches by category or year).",
            "default": 200
          },
          "maxItems": {
            "title": "Max sales in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many sales. 0 = no limit.",
            "default": 0
          },
          "includeDescription": {
            "title": "Include item description",
            "type": "boolean",
            "description": "Adds the seller's long description (mostly on Premier lots). Makes items larger.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy spreads requests. Datacenter proxy is enough; the sales API is public.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Searches in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many searches run at the same time. Keep it low to stay respectful.",
            "default": 3
          },
          "requestDelaySecs": {
            "title": "Delay between requests (seconds)",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Politeness delay before each API request.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}