# SGC Pop Report Scraper - Graded Card Population Data (`lulzasaur/sgc-pop-scraper`) Actor

Get SGC (Sportscard Guaranty) graded card population data for an entire set. Full grade breakdown: Authentic, 1-10 with half grades, Gem Mint 10, and Pristine 10 (gold label). Covers baseball, basketball, football, hockey, soccer, Pokemon, and vintage T205/T206 tobacco cards.

- **URL**: https://apify.com/lulzasaur/sgc-pop-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** E-commerce
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 1 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## SGC Pop Report Scraper — Graded Card Population Data

Get **SGC (Sportscard Guaranty Company)** graded-card population data for an entire set in one run. SGC is one of the top trading-card grading companies, and its Pop Report tracks how many copies of each card exist at each grade.

Returns a structured, per-card grade breakdown including SGC's full scale:

- **Pristine 10** (the "gold label" top tier)
- **Gem Mint 10**
- Numeric grades **1 – 9.5** with half grades
- **Authentic** (cards graded but not numerically scored)
- Cumulative **"population at grade or higher"** counts
- A computed **Gem Rate %** (share graded Gem 10 / Pristine 10)

Covers Baseball, Basketball, Football, Hockey, Soccer, Boxing, Golf, Non-Sport, Pokemon, Racing, Tennis, Wrestling — plus the vintage **T205 / T206** tobacco-card master pops.

### Input

| Field | Description |
|-------|-------------|
| `cardSet` | **Exact** SGC set name (e.g. `1986-87 Fleer`, `1952 Topps`). Recommended. |
| `sport` | The set's sport/category. SGC requires this for set lookups. If blank, common sports are tried automatically. |
| `masterPop` | `t206` or `t205` — pull the full vintage tobacco master pop (thousands of cards). |
| `searchQuery` | Partial set-name search. **reCAPTCHA-gated** — requires `recaptchaToken`. |
| `recaptchaToken` | A valid reCAPTCHA token minted from gosgc.com/pop-report (only for `searchQuery`). |
| `maxResults` | Cap rows returned (0 = unlimited). |

#### Finding exact set names

SGC's set-name search is protected by reCAPTCHA, so the most reliable workflow is:

1. Browse to [gosgc.com/pop-report](https://gosgc.com/pop-report) and search for your set.
2. Note the exact set name and sport shown.
3. Run this actor with `cardSet` + `sport`.

### Example input

```json
{
  "cardSet": "1986-87 Fleer",
  "sport": "Basketball"
}
```

### Example output

```json
{
  "cardNumber": "1",
  "subject": "Kareem Abdul-Jabbar",
  "variety": null,
  "setName": "1986-87 Fleer",
  "sport": "Basketball",
  "year": "1986",
  "sgcPop": {
    "total": 818,
    "grade10Pristine": 0,
    "grade10": 3,
    "grade9_5": 4,
    "grade9": 60,
    "grade8_5": 94,
    "grade8": 145,
    "grade7": 139,
    "authentic": 64
  },
  "sgcPopHigher": { "grade9": 7, "grade8": 161, "authentic": 818 },
  "gemRate": 0.37
}
```

### Use cases

- Card collectors gauging rarity / scarcity before buying or grading
- Resellers and dealers pricing inventory against population scarcity
- Building price-guide and pop-report datasets across graders (pair with PSA / CGC scrapers)
- Identifying low-pop and high-gem-rate cards

# Actor input Schema

## `cardSet` (type: `string`):

Exact SGC set name and get ALL cards with grade breakdowns. Find the exact name on gosgc.com/pop-report. Examples: '1986-87 Fleer', '1952 Topps', '1909 Piedmont Cigarettes (T206)'.

## `sport` (type: `string`):

The SGC sport/category for the set above. Required by SGC for set lookups. One of: Baseball, Basketball, Football, Hockey, Soccer, Boxing, Golf, Non-Sport, Pokemon, Racing, Tennis, Wrestling. If left blank, common sports are tried automatically.

## `masterPop` (type: `string`):

Pull the full SGC master population report for a vintage tobacco-card series. T206 (~4,900 cards) or T205 (~1,600 cards). These are not gated and return the entire series.

## `searchQuery` (type: `string`):

Search for sets by partial name. NOTE: SGC protects this search with reCAPTCHA, so it only works if you also provide a valid 'recaptchaToken' below. For most uses, prefer the exact 'Card Set Name' input above (not gated).

## `recaptchaToken` (type: `string`):

A valid reCAPTCHA v2 token minted from gosgc.com/pop-report. Only needed for the set-name search above. Not needed for direct set lookups.

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

Cap the number of card rows returned (0 = unlimited). Useful for limiting cost on huge sets like T206.

## Actor input object example

```json
{
  "cardSet": "1986-87 Fleer",
  "sport": "Basketball",
  "masterPop": "",
  "maxResults": 0
}
```

# 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 = {
    "cardSet": "1986-87 Fleer",
    "sport": "Basketball"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/sgc-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 = {
    "cardSet": "1986-87 Fleer",
    "sport": "Basketball",
}

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/sgc-pop-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "cardSet": "1986-87 Fleer",
  "sport": "Basketball"
}' |
apify call lulzasaur/sgc-pop-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lulzasaur/sgc-pop-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8MVzgeSxZDXUcCxvo/builds/ToASLyXj9oOxg43F5/openapi.json
