# CGC Cards Population Scraper - Census / Grade Data (`lulzasaur/cgc-card-pop-scraper`) Actor

Scrape the CGC Cards Population Report: how many trading cards are graded at each CGC grade. Look up any sport, TCG, set or card and get per-card grade breakdowns (Perfect/Pristine/Gem Mint 10 down to 1, plus Authentic) with total population, gem rate, year, card number and variety.

- **URL**: https://apify.com/lulzasaur/cgc-card-pop-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.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.

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

## CGC Cards Population Scraper — Census / Grade Data

Get **CGC Cards population report (census) data** — how many trading cards are graded at each CGC grade — for any sport, trading-card game (TCG), set, or card. For every card (year, card number, variety) it returns the full grade breakdown, from **CGC Perfect 10 / Pristine 10 / Gem Mint 10** down through **9.5, 9, 8.5 … 1**, plus **Authentic** designations, the total graded population, and a computed **gem rate**.

Great for card dealers, collectors, registry-set builders, price-guide makers, grading-arbitrage analysts, and anyone studying rarity and grade distribution.

### What you get

For each card in a set:

| Field | Description |
|-------|-------------|
| `subject` | Player / character / subject, e.g. `Charizard`, `Mickey Mantle` |
| `category` | Sport or TCG (e.g. Pokémon, Baseball) |
| `set` | Set / group (e.g. `Base Set - 1st Edition - English`) |
| `year`, `cardNumber`, `variety`, `rarity` | Card attributes (variety = Holo, Reverse Holo, etc.) |
| `populationByGrade` | Object mapping grade label → count, e.g. `{ "CGC Gem Mint 10": 12, "9.5": 9, "9": 27, ... }` — only non-zero grades are included |
| `totalPop` | Total cards graded for this card |
| `gemRate` | Share of the population in the top tiers (Gem Mint 10 / Pristine 10 / Perfect 10) |
| `listingUrl` | Link to the CGC Cards population page for the set |
| `cardId`, `populationId` | CGC identifiers |

### Input

Navigate the census the same way the CGC Cards website does: **Vertical → Category → Set Family → Set**.

```json
{
  "vertical": "trading-cards",
  "category": "Pokémon",
  "set": "Base Set",
  "maxResults": 1000
}
````

| Field | Description |
|-------|-------------|
| `vertical` | `sports-cards`, `trading-cards`, or `non-sports-cards`. Blank = auto-detect from category |
| `category` | Sport or TCG (e.g. Baseball, Pokémon, Magic: The Gathering). Blank = first category |
| `setFamily` | Set family / era (e.g. Original Series, 2020-Present). Blank = all set families |
| `set` | Set name filter (substring). Blank = all sets in the set family |
| `groupId` | Advanced: scrape one set directly by its CGC research group ID (pair with `vertical`) |
| `maxResults` | Max card rows (0 = unlimited). Default 1000 |
| `maxSets` | Max number of sets to scrape (0 = unlimited) |
| `proxyConfiguration` | RESIDENTIAL proxy is used by default (CGC blocks datacenter IPs) |

#### Examples

Scrape one specific set directly:

```json
{ "groupId": 16990, "vertical": "trading-cards" }
```

All Baseball cards from 2020-present:

```json
{ "vertical": "sports-cards", "category": "Baseball", "setFamily": "2020-Present" }
```

### Notes

- Data comes from CGC Cards' public population report. **Use the residential proxy** (default) — CGC blocks datacenter IPs.
- `populationByGrade` only lists grades with a non-zero count, keeping output compact.
- CGC grade scale: **Perfect 10**, **Pristine 10**, **Gem Mint 10**, half-point grades **9.5 → 1**, plus **Authentic** and **Authentic Altered**.

# Actor input Schema

## `vertical` (type: `string`):

Which CGC Cards population report to navigate. Leave blank to auto-detect from the category.

## `category` (type: `string`):

Sport or trading-card game. Examples: 'Baseball', 'Basketball', 'Football' (sports-cards); 'Pokémon', 'Magic: The Gathering', 'One Piece', 'Yu-Gi-Oh!' (trading-cards). Defaults to the first category if blank.

## `setFamily` (type: `string`):

Set family or era within the category. Examples (Pokémon): 'Original Series', 'Neo', 'Sword & Shield'. Examples (Baseball): '2020-Present', '2010s', 'Pre-War'. Leave blank to scan ALL set families.

## `set` (type: `string`):

Optional set name filter (substring match). Examples: 'Base Set', 'Jungle', 'Topps Chrome'. Leave blank to scrape all sets in the set family.

## `groupId` (type: `integer`):

Advanced: scrape one specific CGC set directly by its research group ID (skips category/setFamily/set). Find it in a set page URL: .../population-report/<vertical>/<cat>/<id>/<family>/<id>/<set>/\<GROUP\_ID>/. Pair with the matching Vertical.

## `maxResults` (type: `integer`):

Maximum number of card rows to output (0 = unlimited). Each row is one card (year/number/variety) with its full grade breakdown.

## `maxSets` (type: `integer`):

Maximum number of sets/groups to scrape (0 = unlimited). Useful to cap broad scrapes that span an entire category.

## `proxyConfiguration` (type: `object`):

CGC blocks datacenter IPs, so RESIDENTIAL proxy is strongly recommended (and used by default). Leave as-is unless you have a reason to change it.

## Actor input object example

```json
{
  "category": "Pokémon",
  "maxResults": 1000,
  "maxSets": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "category": "Pokémon",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/cgc-card-pop-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 = {
    "category": "Pokémon",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/cgc-card-pop-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 '{
  "category": "Pokémon",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call lulzasaur/cgc-card-pop-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "CGC Cards Population Scraper - Census / Grade Data",
        "description": "Scrape the CGC Cards Population Report: how many trading cards are graded at each CGC grade. Look up any sport, TCG, set or card and get per-card grade breakdowns (Perfect/Pristine/Gem Mint 10 down to 1, plus Authentic) with total population, gem rate, year, card number and variety.",
        "version": "1.0",
        "x-build-id": "hONzbD2nCibH0prLw"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/lulzasaur~cgc-card-pop-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-lulzasaur-cgc-card-pop-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/lulzasaur~cgc-card-pop-scraper/runs": {
            "post": {
                "operationId": "runs-sync-lulzasaur-cgc-card-pop-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/lulzasaur~cgc-card-pop-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-lulzasaur-cgc-card-pop-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": {
                    "vertical": {
                        "title": "Vertical",
                        "enum": [
                            "sports-cards",
                            "trading-cards",
                            "non-sports-cards"
                        ],
                        "type": "string",
                        "description": "Which CGC Cards population report to navigate. Leave blank to auto-detect from the category."
                    },
                    "category": {
                        "title": "Category (Sport / TCG)",
                        "type": "string",
                        "description": "Sport or trading-card game. Examples: 'Baseball', 'Basketball', 'Football' (sports-cards); 'Pokémon', 'Magic: The Gathering', 'One Piece', 'Yu-Gi-Oh!' (trading-cards). Defaults to the first category if blank."
                    },
                    "setFamily": {
                        "title": "Set Family / Era",
                        "type": "string",
                        "description": "Set family or era within the category. Examples (Pokémon): 'Original Series', 'Neo', 'Sword & Shield'. Examples (Baseball): '2020-Present', '2010s', 'Pre-War'. Leave blank to scan ALL set families."
                    },
                    "set": {
                        "title": "Set (Search)",
                        "type": "string",
                        "description": "Optional set name filter (substring match). Examples: 'Base Set', 'Jungle', 'Topps Chrome'. Leave blank to scrape all sets in the set family."
                    },
                    "groupId": {
                        "title": "Set / Group ID (Direct)",
                        "type": "integer",
                        "description": "Advanced: scrape one specific CGC set directly by its research group ID (skips category/setFamily/set). Find it in a set page URL: .../population-report/<vertical>/<cat>/<id>/<family>/<id>/<set>/<GROUP_ID>/. Pair with the matching Vertical."
                    },
                    "maxResults": {
                        "title": "Max Results (cards)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of card rows to output (0 = unlimited). Each row is one card (year/number/variety) with its full grade breakdown.",
                        "default": 1000
                    },
                    "maxSets": {
                        "title": "Max Sets",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of sets/groups to scrape (0 = unlimited). Useful to cap broad scrapes that span an entire category.",
                        "default": 0
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "CGC blocks datacenter IPs, so RESIDENTIAL proxy is strongly recommended (and used by default). Leave as-is unless you have a reason to change it.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
