{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Card Comps: PSA, BGS, CGC Sold Prices",
    "description": "Sold prices for graded and raw trading cards from eBay, up to 3 years back. Filter by grader, grade, language and print run; the card number, grade and grader come parsed out of the title. Pokemon, sports cards, Magic, Yu-Gi-Oh.",
    "version": "1.0",
    "x-build-id": "LYvF0CepLZYY79tXh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/compsapi~ebay-card-comps/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-compsapi-ebay-card-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/compsapi~ebay-card-comps/runs": {
      "post": {
        "operationId": "runs-sync-compsapi-ebay-card-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/compsapi~ebay-card-comps/run-sync": {
      "post": {
        "operationId": "run-sync-compsapi-ebay-card-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",
        "required": [
          "cards"
        ],
        "properties": {
          "cards": {
            "title": "Cards",
            "type": "array",
            "description": "One card per line: the player or character plus the set, for example charizard base set or lebron james topps chrome. Keep it short and pin the details with the filters below; a long search makes eBay widen the match.",
            "items": {
              "type": "string"
            }
          },
          "graded": {
            "title": "Graded or raw",
            "enum": [
              "any",
              "graded",
              "raw"
            ],
            "type": "string",
            "description": "Keep only slabs, only raw cards, or both.",
            "default": "graded"
          },
          "graders": {
            "title": "Graders",
            "type": "array",
            "description": "Optional. PSA, BGS, CGC, SGC, TAG, ACE and others. Leave empty for any grader.",
            "items": {
              "type": "string"
            }
          },
          "grades": {
            "title": "Grades",
            "type": "array",
            "description": "Optional. Grade as written, for example 10 or 9.5. Several lines keep any of them.",
            "items": {
              "type": "string"
            }
          },
          "days": {
            "title": "History (days)",
            "minimum": 1,
            "maximum": 1095,
            "type": "integer",
            "description": "How far back to search, 1 to 1095 days (3 years).",
            "default": 365
          },
          "maxResults": {
            "title": "Max matching sales per card",
            "minimum": 1,
            "maximum": 4800,
            "type": "integer",
            "description": "Newest first.",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Each page scans up to 240 sales before filtering. Narrow filters (one grader and grade) keep a few per page, so more pages find more matches.",
            "default": 5
          },
          "language": {
            "title": "Card language",
            "enum": [
              "any",
              "en",
              "ja",
              "zh",
              "ko",
              "de",
              "fr",
              "it",
              "es",
              "pt"
            ],
            "type": "string",
            "description": "Read from the title.",
            "default": "any"
          },
          "printRun": {
            "title": "Print run",
            "type": "string",
            "description": "Optional. A number keeps only that serial run, for example 25 for a /25 parallel. numbered keeps every serial numbered card."
          },
          "mustInclude": {
            "title": "Title must include",
            "type": "array",
            "description": "Optional. Words or phrases every title must contain, for example red refractor.",
            "items": {
              "type": "string"
            }
          },
          "matchAllWords": {
            "title": "Every search word must be in the title",
            "type": "boolean",
            "description": "On by default. eBay widens a search when it runs short of exact matches and returns similar items; this drops any sale whose title is missing one of your search words.",
            "default": true
          },
          "keepJunk": {
            "title": "Keep junk listings",
            "type": "boolean",
            "description": "Off by default: listings that are not the item itself (boxes only, manuals, reprints, facsimiles, proxies, lots of unrelated items) are removed before you see or pay for them.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}