{
  "openapi": "3.0.1",
  "info": {
    "title": "Courtyard.io Scraper | Cheap 1$/1k",
    "description": "Scrape Courtyard.io — the tokenized collectibles marketplace. Graded Pokémon & sports cards, packs, comics and coins with prices, PSA/CGC/BGS grades, fair-market-value estimates, deal scores and owner data. Filter by category, grader, grade, price and year, and run cheap incremental monitoring.",
    "version": "1.0",
    "x-build-id": "5njTEcHKmMbwaV2al"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trev0n~courtyard-io-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trev0n-courtyard-io-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/trev0n~courtyard-io-scraper/runs": {
      "post": {
        "operationId": "runs-sync-trev0n-courtyard-io-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/trev0n~courtyard-io-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-trev0n-courtyard-io-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": {
          "query": {
            "title": "Search keywords",
            "type": "string",
            "description": "What to search for (e.g. \"Charizard\", \"Michael Jordan\", \"1st Edition\"). Leave empty to browse by filters only."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "recentlyListed",
              "recentlySold",
              "recentlyAdded",
              "priceLowToHigh",
              "priceHighToLow",
              "bestDeals"
            ],
            "type": "string",
            "description": "Ordering of results. \"Recently sold\" turns the run into a live sales feed; \"Best deals\" surfaces assets priced furthest under their estimated value.",
            "default": "recentlyListed"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Limit results to one or more categories (sport / game / franchise).",
            "items": {
              "type": "string",
              "enum": [
                "Pokémon",
                "Baseball",
                "Basketball",
                "Football",
                "One Piece",
                "Magic The Gathering",
                "Soccer",
                "Hockey",
                "Marvel Comic",
                "Marvel",
                "VeeFriends",
                "D.C. Comic",
                "Independent Comic",
                "Disney",
                "Formula 1",
                "SLAM Magazine",
                "Yu-Gi-Oh!",
                "Star Wars",
                "Boxing",
                "Weiss Schwarz",
                "Wrestling",
                "Golf",
                "Racing",
                "Tennis",
                "Watches",
                "MetaZoo",
                "Dragon Ball",
                "Nintendo",
                "Other"
              ]
            }
          },
          "collections": {
            "title": "Collections",
            "type": "array",
            "description": "Limit results to one or more product types.",
            "items": {
              "type": "string",
              "enum": [
                "Graded Cards",
                "Ungraded Booster Packs",
                "Raw Cards",
                "Graded Comic Books",
                "Graded Coins",
                "Watches"
              ]
            }
          },
          "graders": {
            "title": "Grading companies",
            "type": "array",
            "description": "Only assets graded by these companies.",
            "items": {
              "type": "string",
              "enum": [
                "PSA",
                "CGC",
                "CGC-COMIC",
                "BGS",
                "SGC",
                "CSG",
                "PCGS",
                "NGC",
                "AGS",
                "GMA",
                "HGA",
                "BCCG",
                "BVG",
                "ISA"
              ]
            }
          },
          "grades": {
            "title": "Exact grades",
            "type": "array",
            "description": "Only assets with these exact grade labels (e.g. \"10 GEM MT\", \"9.5\", \"8.5 NM-MT+\"). For a numeric threshold use \"Minimum grade\" below instead.",
            "items": {
              "type": "string"
            }
          },
          "gradeMin": {
            "title": "Minimum grade",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Keep only assets graded at least this number (1–10). Assets without a numeric grade are dropped when set.",
            "default": 0
          },
          "languages": {
            "title": "Card languages",
            "type": "array",
            "description": "Only cards printed in these languages.",
            "items": {
              "type": "string",
              "enum": [
                "English",
                "Japanese",
                "Chinese",
                "Korean",
                "Spanish",
                "Indonesian",
                "German",
                "Italian",
                "French",
                "Portuguese"
              ]
            }
          },
          "sets": {
            "title": "Sets",
            "type": "array",
            "description": "Only assets from these exact sets (e.g. \"Base Set\", \"Black Star Promos - Sword & Shield\").",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Narrow results by marketplace tags — every tag must match (e.g. \"Charizard\" + \"Holo\").",
            "items": {
              "type": "string"
            }
          },
          "yearMin": {
            "title": "Year from",
            "minimum": 0,
            "type": "integer",
            "description": "Earliest release year (0 = no limit).",
            "default": 0
          },
          "yearMax": {
            "title": "Year to",
            "minimum": 0,
            "type": "integer",
            "description": "Latest release year (0 = no limit).",
            "default": 0
          },
          "priceMinUsd": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lower bound of the asking price, in US dollars.",
            "default": 0
          },
          "priceMaxUsd": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper bound of the asking price, in US dollars (0 = no limit).",
            "default": 0
          },
          "listedOnly": {
            "title": "Listed for sale only",
            "type": "boolean",
            "description": "Only assets that currently have an asking price. Turn off to also include vaulted assets that aren't for sale.",
            "default": true
          },
          "maxPriceVsValuePct": {
            "title": "Max price vs. value (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Deal hunting: keep only assets whose asking price is at most this percentage of their estimated market value (e.g. 80 = priced at least 20% under value; 0 = off).",
            "default": 0
          },
          "ownerFilter": {
            "title": "Owner",
            "type": "string",
            "description": "Keep only assets owned by this user — a Courtyard username or a wallet address."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional courtyard.io asset URLs (https://courtyard.io/asset/…) or marketplace URLs to scrape directly instead of (or alongside) a keyword search.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of assets to collect (0 = unlimited — the scraper automatically works past the site's 5,000-per-search ceiling).",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages per search",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on result pages to fetch per search (0 = no cap; 100 results per page).",
            "default": 0
          },
          "includeKeywords": {
            "title": "Include keywords",
            "type": "array",
            "description": "Keep only assets whose title/set/tags contain at least one of these terms.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop assets whose title/set/tags contain any of these terms.",
            "items": {
              "type": "string"
            }
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Output only the core fields — handy for AI workflows.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Omit null / empty fields from each record.",
            "default": false
          },
          "incrementalMode": {
            "title": "Incremental monitoring mode",
            "type": "boolean",
            "description": "Track state across runs and emit only NEW / UPDATED / REAPPEARED assets (price changes, re-lists, sales). The first run builds a baseline; later runs charge only for the diff — ideal for cheap recurring monitoring.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Custom identifier for the monitoring baseline. Leave empty to derive it from the search config automatically."
          },
          "emitUnchanged": {
            "title": "Emit unchanged assets",
            "type": "boolean",
            "description": "Also output assets whose market state didn't change since the last run.",
            "default": false
          },
          "emitExpired": {
            "title": "Emit expired assets",
            "type": "boolean",
            "description": "Also output a record for assets that disappeared since the last run (changeType = EXPIRED — usually sold or delisted).",
            "default": false
          },
          "skipReposts": {
            "title": "Skip reposts",
            "type": "boolean",
            "description": "Drop new assets detected as reposts of a recently expired one (same market state, new id).",
            "default": false
          },
          "notifyOnlyChanges": {
            "title": "Notify only on changes",
            "type": "boolean",
            "description": "Only send notifications when there are new/updated assets.",
            "default": true
          },
          "notificationLimit": {
            "title": "Assets per notification",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of assets listed in a single notification message.",
            "default": 10
          },
          "includeRunSummary": {
            "title": "Include run summary in webhook",
            "type": "boolean",
            "description": "Attach the run summary object to the generic webhook payload.",
            "default": true
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Generic webhook to POST results to (JSON)."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Telegram bot token for notifications."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Telegram chat id to send notifications to."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Discord channel webhook for notifications."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Slack incoming webhook for notifications."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The data source works reliably without any proxy, so none is used by default — turn one on only if your runs ever get rate-limited.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}