# Courtyard.io Scraper (`devcake/courtyard-io-scraper`) Actor

Extract real-time graded card sales data. Track Pokemon & sports card prices, PSA/BGS/CGC grades, and Fair Market Value estimates.

- **URL**: https://apify.com/devcake/courtyard-io-scraper.md
- **Developed by:** [devcake](https://apify.com/devcake) (community)
- **Categories:** E-commerce, Other
- **Stats:** 29 total users, 2 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🃏 Courtyard.io Scraper - Extract Pokemon Card Prices & Sports Card Sales Data

**Courtyard.io Scraper** extracts **real-time collectible card sales data** from [Courtyard.io](https://courtyard.io), the premier **graded card marketplace**. **Track Pokemon card prices**, **monitor sports card market data**, and **analyze graded card sales** from PSA, BGS, and CGC - no coding needed.

Perfect for **card collectors** 🎴, **TCG investors** 📈, **dropshippers** 🚚, and **market researchers** 🔬 building **TCG market data** pipelines.

---

### 🎯 🏷️ What You Get

Courtyard.io Scraper is a **collectible card API** pulling live data from Courtyard.io's blockchain-powered marketplace:

| 🔹 | Data Type |
|---|------------|
| 💵 | **Real-time sale prices** in USD |
| 📊 | **Price comparison** vs **Fair Market Value (FMV)** |
| 🃏 | **Pokemon card prices** with set & language (English, Japanese, Korean) |
| ⚾ | **Sports card market data**: Baseball, Basketball 🏀, Football 🏈, Soccer ⚽, Hockey 🥅 |
| 🏆 | **Graded card sales**: PSA, BGS, CGC grades & serial numbers |
| 💰 | **FMV estimates** & **price history** for similar grades |
| 🖼️ | High-quality slab scans (front & back) |
| 👤 | Seller usernames, vault status & blockchain verification |

---

### 💡 🤔 Why Use This Scraper?

| 🔹 | Use Case |
|---|------------|
| 📈 | **Track Pokemon card prices** in real-time (Charizard, Pikachu, Base Set) |
| 📊 | Monitor **sports card market data** for investment decisions (Michael Jordan, LeBron James) |
| 🔬 | Analyze **graded card sales** patterns by PSA/BGS/CGC grades |
| 💎 | Find underpriced cards: **price_vs_fmv** negative = below market |
| 🗄️ | Build **historical price databases** for trend analysis |

---

### 📥 ⚙️ Input Parameters

| 🔹 | Parameter | 📋 | Type | 📝 | Description |
|---|------------|-----|------|----|-------------|
| 🎯 | `scrapeType` | | Select | | `latest` (recent sales), `keywords` (search), or `categories` |
| 🔑 | `keywords` | | String List | | "Charizard", "Michael Jordan", "LeBron James", "1999" |
| 📂 | `categories` | | String List | | Pokemon, Baseball, Basketball, Football, Soccer, Hockey |
| 📊 | `limit` | | Number | | Results per keyword (1-1000, default: 30) |

#### 💻 📝 Example Input
```json
{
  "scrapeType": "keywords",
  "keywords": ["Charizard", "Michael Jordan", "LeBron James"],
  "limit": 100,
  "dateFrom": "2025-01-01",
  "dateTo": "2025-12-31"
}
````

***

### 📤 📋 Output Data

Each **graded card sale** includes transaction hash, **price\_usd**, **price\_vs\_fmv**, **card\_title**, **card\_category** (Pokemon/Baseball/etc), **card\_year**, **card\_set**, **grader** (PSA/BGS/CGC), **grade**, **serial\_number**, **fmv\_estimate**, **price\_history**, images, and seller data.

***

### 🚀 ⚡ How to Scrape

| 🔢 | Step | 📝 | Action |
|---|------|----|--------|
| 1️⃣ | 🎯 | Open Actor | Go to Courtyard.io Scraper on Apify Store |
| 2️⃣ | 📋 | Choose type | Select latest sales, keywords, or categories |
| 3️⃣ | ⚙️ | Configure | Set keywords, categories, date range, limit |
| 4️⃣ | ▶️ | Run | Click "Start" and wait for collection |
| 5️⃣ | 💾 | Download | Export JSON, CSV, HTML, or Excel |

***

### ✅ 💡 Pro Tips

| 🔹 | Tip |
|---|-----|
| 🎯 | Use **keywords** for specific cards (Charizard, Jordan rookie cards) |
| 📅 | Filter by **date range** to build **Pokemon card price** history |
| 💰 | Monitor **price\_vs\_fmv** to find deals (negative = undervalued) |
| 📊 | Review **price\_history** for market range analysis |
| 🖼️ | Check **asset\_pictures** for slab scans (front/back) |
| 👤 | Track **seller usernames** for pricing strategies |

***

### ❓ 🤔 FAQ

**🎯 Can I track Pokemon card prices over time?**
Yes! Use date filters to build your **Pokemon card price database** and analyze trends.

**🃏 What categories can I scrape?**
Pokemon, Baseball, Basketball, Football, Soccer, Hockey, Magic: The Gathering.

**🏆 Can I use this for PSA card price research?**
Absolutely! Captures PSA, BGS, CGC grades. Search specific levels to analyze **PSA card price premiums**.

**⚖️ Is this legal for commercial use?**
Extracts publicly available data for **market research** and **business intelligence**. Review Courtyard.io's Terms.

**🔄 Can I scrape Courtyard.io and TCGplayer?**
Yes! Compare prices across marketplaces. Try **[TCGplayer Scraper](https://apify.com/devcake/tcgplayer-data-scraper)** for ungraded cards.

**💵 How much does it cost?**
Start free with Apify's $5 monthly credits.

***

### 🔗 Related Actors

| 🔹 | Actor | 📝 | Description |
|---|-------|----|-------------|
| 🛒 | **[TCGplayer Data Scraper](https://apify.com/devcake/tcgplayer-data-scraper)** | | Ungraded card prices from TCGplayer |

**🎯 Courtyard vs TCGplayer:**

- **Graded cards (PSA/BGS/CGC)** with sale history → **Courtyard.io Scraper**
- **Ungraded cards** (NM, LP, MP) → **[TCGplayer Scraper](https://apify.com/devcake/tcgplayer-data-scraper)**

***

<p align="center">
  <br>
  <strong>🎯 Start tracking card prices today! 🚀</strong>
  <br><br>
  Run your first scrape and build your market intelligence 💰
</p>

# Actor input Schema

## `scrapeType` (type: `string`):

Choose what to scrape: latest sales, by keywords, by categories, or marketplace listings

## `limit` (type: `integer`):

Maximum number of results to fetch per keyword/category (1-1000)

## `keywords` (type: `array`):

List of keywords to search for (one per line). Works with 'Sales by Keywords' and 'Listed Items by Search' scrape types.

## `categories` (type: `array`):

Select categories to scrape. Works with 'Sales by Categories' and 'Listed Items by Category' scrape types.

## `proxyConfig` (type: `object`):

Select proxies to use for requests. Apify Proxy is enabled by default for reliable scraping.

## Actor input object example

```json
{
  "scrapeType": "latest",
  "limit": 30,
  "keywords": [
    "Charizard"
  ],
  "categories": [
    "Pokémon"
  ],
  "proxyConfig": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Complete scraped data with all sales and listings

## `sales` (type: `string`):

Recent sales with card images, prices, and key details - sorted by newest first

## `listings` (type: `string`):

Active marketplace listings with deal scores and pricing insights

## `deals` (type: `string`):

Top deals sorted by deal score - best opportunities

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "Charizard"
    ],
    "categories": [
        "Pokémon"
    ],
    "proxyConfig": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("devcake/courtyard-io-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": ["Charizard"],
    "categories": ["Pokémon"],
    "proxyConfig": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("devcake/courtyard-io-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "Charizard"
  ],
  "categories": [
    "Pokémon"
  ],
  "proxyConfig": {
    "useApifyProxy": true
  }
}' |
apify call devcake/courtyard-io-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=devcake/courtyard-io-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Courtyard.io Scraper",
        "description": "Extract real-time graded card sales data. Track Pokemon & sports card prices, PSA/BGS/CGC grades, and Fair Market Value estimates.",
        "version": "1.0",
        "x-build-id": "PtsaIP0kmMSDxA5rs"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/devcake~courtyard-io-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-devcake-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/devcake~courtyard-io-scraper/runs": {
            "post": {
                "operationId": "runs-sync-devcake-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/devcake~courtyard-io-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-devcake-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",
                "required": [
                    "scrapeType"
                ],
                "properties": {
                    "scrapeType": {
                        "title": "Scrape Type",
                        "enum": [
                            "latest",
                            "keywords",
                            "categories"
                        ],
                        "type": "string",
                        "description": "Choose what to scrape: latest sales, by keywords, by categories, or marketplace listings",
                        "default": "latest"
                    },
                    "limit": {
                        "title": "Limit",
                        "minimum": 30,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of results to fetch per keyword/category (1-1000)",
                        "default": 30
                    },
                    "keywords": {
                        "title": "Keywords",
                        "type": "array",
                        "description": "List of keywords to search for (one per line). Works with 'Sales by Keywords' and 'Listed Items by Search' scrape types.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "categories": {
                        "title": "Categories",
                        "type": "array",
                        "description": "Select categories to scrape. Works with 'Sales by Categories' and 'Listed Items by Category' scrape types.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "Pokémon",
                                "Basketball",
                                "Baseball",
                                "Football",
                                "One Piece",
                                "Marvel Comic",
                                "Soccer",
                                "Magic The Gathering",
                                "Hockey",
                                "VeeFriends",
                                "Marvel",
                                "D.C. Comic",
                                "Other",
                                "Disney",
                                "Independent Comic",
                                "Yu-Gi-Oh!",
                                "Star Wars",
                                "Weiss Schwarz",
                                "Boxing",
                                "Wrestling",
                                "Racing",
                                "Dragon Ball",
                                "MetaZoo",
                                "Nintendo",
                                "Watches",
                                "DC",
                                "Golf",
                                "MMA",
                                "Tennis",
                                "Athletics",
                                "Motorsports"
                            ]
                        }
                    },
                    "proxyConfig": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Select proxies to use for requests. Apify Proxy is enabled by default for reliable scraping."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
