Sales API
Find what sold, where, and for how much.
Search completed sales across supported marketplaces in one consistent schema.
Catalog API
Know what exists and identify it permanently.
Browse cards, sets, families, players, new releases, and stable typed identifiers.
Players API
Start with the athlete.
Search reviewed profiles and explore linked Catalog cards. Coverage varies by player.
Browse documentation
Quickstart
Quickstart
Get your first response in under a minute.
1. Get a free API key
Sign up at thecardapi.com → No credit card required. Your key arrives instantly.
2. Make your first request
curl "https://www.thecardapi.com/api/v1/market/sales?q=psa+10+ohtani&limit=5" \
-H "x-market-api-key: tca_your_key_here"3. Explore
Use the playground to build and test queries interactively before writing any code. The full parameter reference is in the GET /sales section below.
Authentication
Authentication
All requests require an x-market-api-key header (REST) or an Authorization: Bearer header (MCP). The same key works for both. Get one free — no credit card required.
# REST API
GET /api/v1/market/sales
x-market-api-key: tca_your_key_here
# MCP Server
POST /api/mcp
Authorization: Bearer tca_your_key_hereDon't have a key? Get one free →
Base
Base URL
REST API
https://www.thecardapi.com/api/v1/marketAll REST paths below are relative to this base.
MCP Server
https://mcp.thecardapi.com/api/mcpJSON-RPC 2.0 over streamable HTTP. See the MCP Server section.
Endpoints
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /sales | Search and filter sales records |
| GET | /sales/{id} | Single sale by ID |
| GET | /daily | Aggregate stats for a date |
| GET | /platforms | Platform list with last updated date |
| GET | /coverage | Latest data freshness status |
| GET | /sales/export/csv | Download filtered sales as CSV |
| POST | /webhook | Add a webhook endpoint (max 5) — included with Builder and Pro; $9/mo add-on on Starter |
| GET | /webhook | List active webhook endpoints |
| DELETE | /webhook/{endpoint_id} | Remove a webhook endpoint |
MCP tools are invoked via POST /api/mcp — see the MCP Tools section for individual tool references.
GET
GET /sales
Search and filter individual sale records. Results are ordered by date descending by default. Your plan's lookback window is enforced on date_from automatically.
| Parameter | Type | Description | |
|---|---|---|---|
| q | string | optional | Full-text search on listing title (min 4 chars). Supports boolean syntax: (term1,term2) for OR, -term for NOT, "exact phrase" for phrase match. |
| platform | string | optional | Filter by platform. Values: ebay · tcgplayer · goldin · lelands · scp · hakes · rea · fanatics_collect · yahoo_japan. See GET /platforms for the current list. |
| sales_channel | string | optional | Filter by a platform's sale channel when available. Fanatics values: marketplace, weekly, premier. |
| player_upid | UPID | optional | Filter by one exact reviewed player UPID, for example UP-CFH4K-4HFFR-A. Available on Sales API and CSV export. |
| listing_type | string | optional | Comma-separated: auction, fixed_price, best_offer. fixed_price includes Best Offer sales; best_offer returns only them. |
| date_from | date | optional | Start date YYYY-MM-DD. Clamped to your plan's lookback window. |
| date_to | date | optional | End date YYYY-MM-DD |
| price_min | number | optional | Minimum sale price (USD) |
| price_max | number | optional | Maximum sale price (USD) |
| print_run_min | integer | optional | Minimum print run (e.g. 1 for 1/1 only) |
| print_run_max | integer | optional | Maximum print run (e.g. 99 to filter to /99 and lower numbered cards) |
| shipping_max | number | optional | Maximum buyer shipping cost in USD. Use shipping_max=0 for free-shipping listings only. Filters to records where shipping_price ≤ this value (null shipping_price records are excluded). |
| category | string | optional | Filter by card category: sports, tcg, non_sport. Records without a classified category are excluded from a category-filtered query. |
| graded | boolean | optional | graded=true returns only professionally graded cards (any grading company); graded=false returns only raw/ungraded. Works on every platform. Autograph-authentication-only slabs (PSA/DNA, JSA, BAS) count as ungraded — the card's condition was never graded. |
| grader | string | optional | Filter by a specific grading company: PSA, BGS, SGC, CGC, etc. (case-insensitive) |
| grade | string | optional | Filter by grade value: 10, 9.5, 9, etc. Combine with grader (e.g. grader=PSA&grade=10). |
| condition | string | optional | Filter by listing condition string, e.g. Pre-Owned (ungraded) or New (Other) (graded slab). eBay records only. |
| sort | string | optional | date_desc (default) | date_asc | price_desc | price_asc |
| page | integer | optional | Page number (default: 1) |
| limit | integer | optional | Results per request (default: 25, max: 1,000). Same cap on all plans. |
| cursor | string | optional | Opaque cursor from a previous response's next_cursor field. Efficiently paginate large result sets without offset drift. When provided, page is ignored. Available on all plans. |
| indexed_after | datetime | optional | ISO 8601 UTC. Return only records indexed after this time. Useful for incremental sync. |
Cursor pagination
Every response includes a next_cursor field in pagination when more results exist. Pass it as ?cursor= on the next request to fetch the next page — no offset drift, no missed records. Available on all plans.
# Page 1 — no cursor needed GET /v1/market/sales?q=psa+10+trout&limit=1000 → pagination.next_cursor: "eyJwZ19pZCI6IDE4N..." # Page 2 — pass the cursor GET /v1/market/sales?q=psa+10+trout&limit=1000&cursor=eyJwZ19pZCI6IDE4N... → pagination.next_cursor: "eyJwZ19pZCI6IDE2N..." # or null if last page
CSV export
Download a filtered result set as a CSV file. Same filter params as GET /sales — no cursor or page. Available on Starter and above.
CSV rows count against your shared daily budget — the same pool as API calls. A Builder user who pulls 30K rows via the API has 20K remaining, usable via API or CSV.
curl "https://www.thecardapi.com/api/v1/market/sales/export/csv?q=psa+10+ohtani&date_from=2026-06-01" \ -H "x-market-api-key: tca_your_key_here" \ -o sales.csv
Search syntax
(psa,bgs) — title contains "psa" OR "bgs"-reprint — title does NOT contain "reprint"-(lot,album) — title contains neither "lot" nor "album""topps chrome" — exact phrase matchohtani (psa,bgs) -(lot,album) -reprint — combine all formsResponse
Response schema
{
"data": [
{
"id": "137222685761",
"platform": "eBay",
"sales_channel": null,
"listing_type": "auction",
"title": "2021 Bowman Chrome Kyle Harrison Auto PSA 10",
"sale_date": "2026-06-14",
"sold_at": "2026-06-14T00:00:00Z",
"price": 47.50,
"original_price": null,
"currency": "USD",
"price_confirmed": true,
"bids": 12,
"starting_bid": 9.99,
"sale_type": "winning_bid",
"listing_id": "137222685761",
"image_url": "https://i.ebayimg.com/...",
"thumbnail_url": "https://i.ebayimg.com/...",
"listing_url": "https://www.ebay.com/itm/137222685761",
"cert": "93265128",
"condition": null,
"grade": "10",
"grader": "PSA",
"grading_company": "Professional Sports Authenticator",
"has_autograph_grade": false,
"has_grade_qualifier": false,
"label": null,
"grade_qualifier": null,
"autograph_grade": null,
"player": "Kyle Harrison",
"player_identity": {
"players": [
{"name": "Kyle Harrison", "upid": "UP-CFH4K-4HFFR-A"}
],
"basis": ["canonical_name_unique"]
},
"manufacturer": "Topps",
"card_set": null,
"card_number": "BCP-42",
"year": 2021,
"season": "2021",
"league": null,
"sport": "Baseball",
"team": null,
"features": ["Auto"],
"print_run": null,
"shipping_price": 4.99,
"category": "sports"
}
],
"pagination": {
"total": 258817,
"page": 1,
"limit": 25,
"pages": 10353,
"has_more": true,
"next_cursor": "eyJwZ19pZCI6IDE4NzUwMDAwLCAic29ydCI6ICJkYXRlX2Rlc2MifQ=="
},
"meta": {
"coverage_date_from": "2026-06-01",
"coverage_date_to": "2026-06-17",
"platforms_covered": ["eBay", "Goldin", "Lelands", "SCP Auctions", "Hakes", "REA", "TCGplayer", "Fanatics Collect", "Yahoo Auctions Japan"],
"generated_at": "2026-06-17T10:00:00Z"
}
}| Field | Type | Coverage | Description |
|---|---|---|---|
| id | string | 100% | Unique sale identifier (platform-prefixed) |
| platform | string | 100% | Platform name. Values: eBay · Goldin · Lelands · SCP Auctions · Hakes · REA · TCGplayer · Fanatics Collect · Yahoo Auctions Japan |
| sales_channel | string|null | source-specific | Sale channel within a platform. Fanatics values: marketplace · weekly · premier. Null where the source has no published channel taxonomy. |
| listing_type | string|null | varies | auction · fixed_price. Best Offer listings are fixed_price with sale_type accepted_offer. Null where the source doesn't show the format. |
| title | string | 100% | Raw listing title |
| sale_date | string | 100% | YYYY-MM-DD of the sale |
| sold_at | string | 100% | ISO 8601 timestamp (UTC). Day-boundary precision: ends in T00:00:00Z unless exact time was captured. |
| price | number|null | varies | The amount shown for the sale. Check price_confirmed before treating it as the paid amount. Null only when no amount is shown, such as a Best Offer whose accepted amount is hidden. Do not substitute original_price or starting_bid when you need a confirmed final price. |
| original_price | number|null | varies | The fixed-price (Buy It Now) ask. On a hidden accepted offer, price is null and original_price holds the ask. On a plain Buy It Now sale with no separate ask on file it equals price. Not used on auctions (see starting_bid). |
| starting_bid | number|null | auctions | An auction's opening bid. Null on fixed-price sales. |
| currency | string | 100% | Currency of price and original_price (ISO 4217: USD, GBP, CAD, AUD, EUR, …). Records before Aug 2026 report USD regardless of listing currency until the historical backfill completes. |
| price_confirmed | boolean | 100% | true only when price is the proven paid amount. false on eBay auctions that ended with 0 or 1 bid (eBay shows early Buy It Now and accepted-offer endings this way, at the starting bid) and on Best Offer sales whose accepted amount is hidden. Use true rows for comps. |
| bids | integer|null | varies | Number of bids (auction only) |
| sale_type | string|null | varies | How the sale closed, only when the record shows it: winning_bid (auction with 2+ bids) · list_price (bought at the asking price) · accepted_offer (Best Offer accepted). Null when we can't tell, including 0/1-bid eBay auctions. |
| listing_id | string|null | eBay | The eBay item number for the listing. id stays the per-sale identifier. |
| image_url | string|null | Oct 2026 repaired sales cohort: ~99.993% | Full-size listing image URL. Coverage for other sources and older records varies. |
| thumbnail_url | string|null | varies | Thumbnail image URL |
| listing_url | string|null | varies | Direct link to the sold listing on eBay or another marketplace. eBay may redirect logged-in users to a product catalog page; opening the URL in an Incognito/Private window usually shows the original sold listing. This redirect does not affect API access. |
| cert | string|null | varies | Grading certificate number |
| condition | string|null | varies | Raw condition string from listing |
| grade | string|null | varies | Numeric grade (e.g. "10", "9.5", "Auth") |
| grader | string|null | varies | Grader abbreviation: PSA · BGS · CGC · SGC |
| grading_company | string|null | varies | Full grading company name |
| has_autograph_grade | boolean|null | varies | Whether the slab has a separate auto grade |
| has_grade_qualifier | boolean|null | varies | Whether the grade has a qualifier (e.g. OC, MK) |
| grade_qualifier | string|null | varies | Qualifier type (e.g. "OC", "MK", "ST") |
| label | string|null | varies | Grading label variant (e.g. "Gold Label") |
| autograph_grade | string|null | varies | Autograph sub-grade where graded separately |
| player | string|null | varies | Deprecated legacy parsed player text. It may be present when player_identity is null and must not be treated as reviewed identity. Retained through at least November 29, 2026 for compatibility. |
| player_identity | object|null | Oct 2026 eBay cohort: 79.5% | Atomic reviewed identity. players contains explicit canonical name-to-UPID objects; basis explains why the complete match was accepted. null means the matcher withheld identity rather than guessing. Filter with player_upid. |
| manufacturer | string|null | Oct 2026 eBay cohort: 89.1% | Card manufacturer when stated in the title and unambiguous (e.g. Topps, Panini, Upper Deck). |
| card_set | string|null | varies | Reviewed set name when an exact card or source mapping supplies it. |
| card_number | string|null | Oct 2026 eBay cohort: 56.6% | Set card number (e.g. #295 or BCP-42). Distinct from print run (/299). |
| year | integer|null | Oct 2026 eBay cohort: 95.3% | Card year when the title provides one unambiguous year or consecutive season. |
| season | string|null | Oct 2026 eBay cohort: 95.3% | Sports season or year (e.g. 2024-25 or 2024) when unambiguous. |
| league | string|null | varies | League when supplied by the source or reviewed card context. The title and identity enrichment does not infer league from a player's identity. |
| sport | string|null | Oct 2026 eBay cohort: 82.7% | Reviewed player sport when identity is accepted, with direct title evidence as a fallback where appropriate. |
| team | string|null | varies | Team associated with the sold card when supported by card-level evidence; not the player's current team. |
| features | string[] | Oct 2026 eBay cohort: 58.3% | Title-stated card features. Frozen launch-window rates: Auto 23.7%, Rookie 30.2%, and Patch/relic 6.3%. The Relic category includes patch, jersey, swatch, memorabilia, and game-used/worn wording. Empty array when none is populated. |
| print_run | integer|null | Oct 2026 eBay cohort: 40.3% | Print run (denominator of serial fraction). /99 → 99. /10 → 10. 1/1 → 1. Null for unlisted base cards. Filter with print_run_min / print_run_max. |
| shipping_price | number|null | varies | Buyer shipping cost in USD. 0.00 = free shipping. Null when the source doesn't provide it. Filter with shipping_max. |
| category | string|null | varies | Card category. Values: sports · tcg · non_sport. Null means the record has not been classified. Filter with ?category=sports. |
Price states
A record with price_confirmed=true has a proven paid amount in price. An eBay auction that ended with 0 or 1 bid returns the amount eBay shows in price and instarting_bid, with price_confirmed=false: eBay shows early Buy It Now and accepted-offer endings this way, so it may not be what the buyer paid. A Best Offer sale whose accepted amount is hidden returns price=null, the ask in original_price, andprice_confirmed=false. Do not use price ?? original_price when you need confirmed transaction prices.
sale_type: "accepted_offer" marks a Best Offer sale (listing_type: "fixed_price"). When the accepted amount is known, price is the negotiated price and price_confirmed is true. When it is hidden, price is null and original_price keeps the ask. The listing_type=best_offer filter still returns these sales.platform: "goldin" records, price is the hammer price— what the auctioneer called at close. The buyer also pays a buyer's premium (~22% current, ~20% pre-2022) on top. eBay prices are all-in. Factor this in when comparing values across platforms.Error
Error codes
| Status | Meaning |
|---|---|
| 401 | Invalid or missing API key |
| 403 | Action requires a higher plan or beta access |
| 404 | Resource not found |
| 422 | Validation error — check parameter types and ranges |
| 429 | Daily allowance exhausted or temporary request throttling. Read the error detail; retry temporary throttles with backoff, honoring Retry-After when present. |
| 500 | Server error — try again shortly |
Webhooks
Webhooks
Included with Builder and Pro · $9/mo add-on on Starter, billed immediately. Get started →
Register up to 5 HTTPS endpoints and receive newly indexed card sales without polling. Sales are delivered as signed batches of up to 1,000 records. Delivery is at-least-once: the cursor advances only after every active endpoint accepts a batch, and a retry may deliver the same sale again. Deduplicate on sale id.
Add an endpoint
POST /api/v1/market/webhook
x-market-api-key: tca_your_key_here
Content-Type: application/json
{
"url": "https://your-server.com/webhook",
"secret": "your-hmac-signing-secret",
"label": "prod-receiver"
}Max 5 active endpoints per key. label is optional.
List endpoints
GET /api/v1/market/webhook
x-market-api-key: tca_your_key_here{
"endpoints": [
{ "id": 1, "url": "https://your-server.com/webhook", "label": "prod-receiver", "created_at": "2026-06-20T10:00:00Z" },
{ "id": 2, "url": "https://your-server.com/backup", "label": "backup", "created_at": "2026-06-20T10:01:00Z" }
],
"count": 2,
"max": 5
}Remove an endpoint
DELETE /api/v1/market/webhook/{endpoint_id}
x-market-api-key: tca_your_key_hereDelivery payload
Each POST contains a batch with the core sale fields from GET /v1/market/sales plus delivery fields such as pg_id.
POST https://your-endpoint.com/webhook
Content-Type: application/json
X-Webhook-Signature: sha256=<hmac-sha256>
{
"event": "sales.batch",
"timestamp": "2026-06-20T06:09:00Z",
"count": 47,
"data": [
{
"id": "ebay-387214905012",
"pg_id": 123456789,
"title": "2011 Topps Update Mike Trout RC BGS 9.5",
"price": 4200.00,
"listing_type": "auction",
"sold_at": "2026-06-20T06:00:24Z",
...
}
]
}Verify the signature
Every delivery includes X-Webhook-Signature: sha256=<hex>. Verify against the raw request body before processing.
import hashlib, hmac
def verify_webhook(body: bytes, secret: str, sig_header: str) -> bool:
expected = "sha256=" + hmac.new(
secret.encode(), body, hashlib.sha256
).hexdigest()
return hmac.compare_digest(expected, sig_header)| Detail | Value |
|---|---|
| Price | Included with Builder and Pro · $9/mo add-on on Starter, billed immediately |
| Max endpoints | 5 active endpoints per API key |
| Delivery latency | Polled every 30 seconds after indexing; backlog and endpoint retries can add delay |
| Batch size | Up to 1,000 records per delivery |
| Retry policy | 3 attempts with backoff (0s / 5s / 30s). Cursor holds on all-fail. |
| Delivery contract | At-least-once. Deduplicate on sale id. |
| Poll cadence | Every 30 seconds |
| Signature | HMAC-SHA256 — X-Webhook-Signature: sha256=<hex> |
| Event type | sales.batch |
Catalog
Catalog API
The Catalog API is the structured complement to the sales feed: 16.7M+ cards across 346,000+ sets and 16 sports, with checklists, rookie/auto/relic flags, and print runs. Relationship and checklist coverage varies by release. Sales tell you what's trading — the catalog tells you what exists.
Access
Included with Pro at no extra charge. Available on Builder as a $29/mo add-on. See pricing →
Typed identifiers — UCID, USID, URID, CFID, UPID
Catalog uses stable typed identifiers in one format, like UC-1KJZD-TZG7C-6: UC- for cards (ucid), US- for individual sets and checklists (usid), UR- for releases (urid), CF- for corresponding card families (cfid), and UP- for subjects (upid). Where an existing UF-family anchor maps one-to-one to a release, it remains a permanent lookup alias for that release's UR- ID. The final character is a check digit, so a typo returns an error instead of the wrong record. Names and years may be corrected over time; issued IDs remain stable. Key your integration on issued IDs.
- • Use each ID with its documented route or filter:
/catalog/{ucid},set_id=US-..., orplayer_id=UP-.... - • Case-insensitive, dashes optional —
uc1kjzdtzg7c6works - • Responses also include a display
slug(2023-topps/27) — for URLs and UI only, never a join key - • The integer card
idfield remains during the transition and is deprecated
Releases, checklists, and card families
A Release (URID) identifies one Catalog release anchor. A checklist (USID), also called a Catalog Set, is one named card list within that release. Each exact catalog card or version has its own UCID; a UCID does not identify an individual physical copy. An unlinked checklist remains available by USID and is absent from Release membership results.
Conceptual example · one Catalog release · URID
Whole table = Release · Column = checklist · Row = card family · Cell = exact catalog card. Labels are illustrative and appear only when reviewed.
A CFID groups corresponding exact catalog cards within the same Release/design boundary. For exact-correspondence coverage inferred from checklists, complete normalized card-number and subject rosters must match. Reviewed families are accepted separately. Each card keeps its own UCID. The relationship subtype is separate: an exact correspondence does not by itself mean parallel. Parallel, image variation, promo, and proof labels appear only where reviewed; unclassified members return version_subtype=unknown and subtype_classification_state=unknown. This leaves the correspondence usable without assigning an unproved version label.
Find a card's corresponding versions
Start with GET /catalog/{ucid}. The card detail includes release_id, card_family_id, and card_family_href. Follow the family link to retrieve the member UCIDs and each member's version subtype. Each UCID still identifies a separate exact card.
Family coverage is partial. A null family ID and link mean that the card has no published family assignment; they do not establish that no other versions exist. An unresolved release is also null. These Catalog relationships do not by themselves identify the exact version offered in a sale or establish a Sales-to-UCID match.
Example — 2025 Bowman #17
The 2025 Bowman Shohei Ohtani #17 card has its own UCID. Its published CFID connects 23 corresponding cards across checklists in the same release and design component. Each member keeps a separate UCID and USID. The correspondence is established; the version subtype of these members remains unknown unless separately reviewed.
# Look up the exact card, then follow its card_family_href
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/catalog/UC-J8FJK-CEYCS-P"
# This family's 23 corresponding card versions
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/catalog/card-families/CF-GXXDT-9630C-7"Endpoints
Base URL: https://www.thecardapi.com/api/v1/catalog — same x-api-key header as the sales API.
| /catalog | Search cards — at least one filter required |
| /catalog/{id} | Single card by UCID (or integer id), with release and CFID links when assigned |
| /catalog/categories | Preferred taxonomy for building catalog navigation and filters |
| /catalog/sets | Browse and search sets by category, subcategory, name, year, and more |
| /catalog/sets/{id} | Single set by USID with card counts |
| /catalog/families | Legacy direct-parent family index — UFID, name, year, and direct member count |
| /catalog/releases | Browse releases by name, sport, or year |
| /catalog/releases/{id} | Resolve a release URID or its mapped durable UFID alias |
| /catalog/releases/{id}/checklists | List that release's main, insert, and version checklists |
| /catalog/card-families | Browse CFIDs within one release; requires release_id |
| /catalog/card-families/{id} | One CFID with its member UCIDs and known version subtypes |
| /catalog/subjects | Broad Catalog subject search — athletes, teams, characters, and other depicted subjects |
| /catalog/players | Legacy alias of /catalog/subjects — retained for compatibility |
| /catalog/new-releases | Sets added to the catalog, newest first — filter by sport or year |
| /catalog/sports | Legacy source-category list — retained for compatibility |
Reviewed player profiles and game stats
The player registry contains 10,441 reviewed profiles. Search by canonical name, reviewed alias, or an exact reviewed nickname, then use the returned UPID for a profile, Catalog cards, or reviewed game logs. Responses always return the canonical name; aliases and nicknames are matching evidence, not second identities.
| GET /players?search= | Search profiles by canonical name, reviewed alias, or exact reviewed nickname |
| GET /players/{upid} | Canonical profile, reviewed aliases and nicknames, Catalog footprint, and available sections |
| GET /players/{upid}/cards | Catalog cards associated with that subject UPID |
| GET /players/{upid}/stats | Reviewed final-game logs; optional season, season_type, page, and limit filters |
The first game-stats revision contains 53,582 reviewed player-game rows across MLB, NFL, NBA, NHL, and WNBA. Every response includes the active stats and registry revisions, its source as-of time, and the observed coverage window. Coverage varies by player and league.
# Find a reviewed profile, then request its game logs
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/players?search=Kyle%20Harrison"
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/players/UP-CFH4K-4HFFR-A/stats?season=2026"Categories and subcategories
Use /catalog/categoriesto discover the catalog's stable, developer-facing taxonomy. Every set response includes one top-level category and one primary subcategory. The endpoint returns machine IDs, display labels, descriptions, and the valid subcategories beneath each category, so applications can build filter UIs without hardcoding our labels.
| category | string | optional | Top-level ID: sports, trading_card_games, or entertainment. |
| subcategory | string | optional | Stable primary ID such as baseball, pokemon, lorcana, magic_the_gathering, marvel, or star_wars. |
| sport | string | optional | Legacy source-category field retained for compatibility. New navigation should use category and subcategory. |
# Discover every valid category and subcategory
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/catalog/categories"
# Browse Lorcana sets
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/catalog/sets?subcategory=lorcana&limit=100"{
"data": [{
"usid": "US-...",
"set_name": "Disney Lorcana ...",
"category": "trading_card_games",
"subcategory": "lorcana",
"sport": "Gaming"
}],
"pagination": { "total": 22, "page": 1, "limit": 100, "pages": 1 }
}Machine IDs are stable; display labels may improve over time. /catalog/sports and thesport filter continue to work for existing integrations.
Set browse parameters — GET /catalog/sets
| category | string | optional | Top-level category ID from /catalog/categories. |
| subcategory | string | optional | Subcategory ID from /catalog/categories. A subcategory also implies its parent category. |
| sport | string | optional | Legacy source-category filter, case-insensitive. |
| q | string | optional | Case-insensitive set-name search (min 2 chars). |
| year | integer | optional | Filter by set year. |
| family_of | USID or UFID | optional | Legacy filter for the currently linked root checklist and its direct children. Use release_id to browse the release's assigned checklists. |
| release_id | URID or UFID | optional | Return checklists in the specified release anchor; a mapped UFID alias resolves to the same release. |
| main_only | boolean | optional | true returns top-level sets only, excluding inserts, parallels, autos, and other sub-sets. |
| page / limit | integer | optional | Pagination. Default limit: 25; maximum: 100. |
Card search parameters — GET /catalog
| set_id | USID | optional | Filter by set — fastest path. Accepts the set's USID. |
| release_id | URID or UFID | optional | Filter to cards in a release, using its URID or mapped legacy UFID alias. |
| card_family_id | CFID | optional | Filter to the exact cards in one published card family. |
| player_id | UPID | optional | Discover Catalog cards associated with a subject UPID. These source-backed subject links have partial coverage; they are not reviewed exact-athlete or Sales attributions. |
| card_number | string | optional | Exact card number, case-insensitive (leading # ignored). Combine with set_id for a one-record existence check. |
| set_name | string | optional | Case-insensitive substring match on set name (min 2 chars). |
| q | string | optional | Full-text search across card subject and set name (min 2 chars). |
| sport | string | optional | Baseball, Basketball, Football, Hockey, Soccer, Gaming (TCG), Racing, and more. |
| year | integer | optional | Set year. |
| is_rookie / is_auto | boolean | optional | Card attribute filters. |
| page / limit | integer | optional | Pagination. Max limit: 100 (Builder), 1,000 (Pro). |
Unrecognized parameters return a 400 listing the supported ones — a misspelled filter never silently returns unfiltered results.
Example — one-record existence check
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/catalog?set_id=US-J28FC-5H09C-4&card_number=27"{
"data": [{
"ucid": "UC-1KJZD-TZG7C-6",
"slug": "2023-topps/27",
"set_usid": "US-J28FC-5H09C-4",
"set_name": "2023 Topps",
"parent_set_name": null,
"card_number": "27",
"subject": "Mike Trout",
"is_rookie": false,
"is_auto": false,
"print_run": null
}],
"pagination": { "total": 1, "page": 1, "limit": 100, "pages": 1 }
}Existing set responses retain parent product context through parent_set_name and parent_set_usid. A parent link alone does not establish whether the checklist is an insert, parallel, or another version. Serial-numbered cards expose print_run when known.
Catalog allowance
Catalog usage has its own daily pool — it never consumes your sales budget, and vice versa. Each record returned counts as 1 (minimum 1 per request); counters reset at 00:00 UTC. Every /catalog response carries X-RateLimit-Limit / X-RateLimit-Remaining headers for this pool.
| Builder + Catalog add-on | 500 records/day |
| Pro (included) | 2,000 records/day |
One-time Catalog records. Every plan includes a one-time allowance of Catalog records you can use without Catalog access, or after your daily Catalog pool runs out: Free 100, Starter 1,000, Builder 10,000, Pro 100,000. It starts with your first Catalog request on that plan, lasts 90 days, and is shared by all keys on the same account email. Responses drawn from it carry an X-Catalog-Stock-Remaining header.
Players
Players API
Search a reviewed cohort of 10,441 athlete identities, open a profile by stable UPID, browse Catalog cards linked to that subject, read reviewed final-game statistics, and read timestamped bookmaker prices for reviewed player-award futures. Coverage is intentionally partial. A missing Players result does not mean the athlete or their cards are missing from the broader Catalog.
For broad subject discovery, use /catalog/subjects. It includes athletes, teams, characters, and other depicted subjects; /catalog/players remains an equivalent legacy alias. A Catalog subject is not automatically a reviewed athlete profile.
Endpoints
Base URL: https://www.thecardapi.com/api/v1/players — use the same x-api-key header and Catalog entitlement.
| GET /players?search= | Search canonical names and reviewed aliases; exact-match reviewed nicknames |
| GET /players/{upid} | Reviewed athlete profile with Catalog and futures section links |
| GET /players/{upid}/cards | Paginated Catalog cards linked to the subject UPID |
| GET /players/{upid}/stats | Reviewed final-game logs with team and league observed at each event |
| GET /players/{upid}/futures | Reviewed player-award futures prices from a local snapshot |
Search parameters — GET /players
| search | string | required | Case-insensitive canonical-name and alias search (2–100 characters), exact UPID, or exact reviewed nickname. A leading 'The' is optional for nicknames. |
| sport | string | optional | Optional reviewed primary-sport filter. |
| page | integer | optional | Page number. Default: 1. |
| limit | integer | optional | Results per page. Default: 20; maximum: 50. |
Nicknames match only as a whole phrase: Wemby, King James, andGreat One match, while individual words such as king do not. A nickname result reports matched_on: "nickname". Results are ordered by match quality, canonical name, then UPID. Responses include deterministic pagination,schema_version, an opaque data_revision, and ISO data_as_of. Coverage is partial: a missing result does not establish that the athlete is absent from Catalog.
Profile and discovery fields
| upid | string | optional | Stable player identifier. |
| canonical_name | string | optional | Reviewed athlete display name. |
| primary_sport | string | optional | Reviewed primary sport. |
| primary_league | string | optional | Reviewed league, normalized separately from primary sport. |
| aliases | string[] | optional | Reviewed legal and spelling names when available. |
| nicknames | string[] | optional | Reviewed public nicknames when available. Kept separate from aliases. |
| schema_version / data_revision / data_as_of | string / string / ISO date or datetime | optional | Public schema version, opaque dataset revision, and data freshness. |
| catalog.card_count | integer | optional | Cards linked to this Catalog subject. |
| catalog.first_card_year / last_card_year | integer|null | optional | Observed linked-card year range; this is not the athlete's career range. |
| latest_observed_team / latest_observed_team_as_of | object|null / datetime|null | optional | Most recent team observed in the reviewed final-game data and the game time supporting it. This is not a current-roster claim. |
| latest_observed_league / latest_observed_league_as_of | string|null / datetime|null | optional | Normalized league for that same latest observed game: MLB, NFL, NBA, NHL, or WNBA, with the supporting game time. |
| sections.cards / sections.stats / sections.futures | object | optional | Status and link for each available or separately permissioned section. |
Latest-observed fields describe the most recent reviewed game in this dataset. They do not claim that a player remains on that roster today. Profiles do not claim an upcoming game or confirmed honor.
Final-game statistics
GET /players/{upid}/stats returns reviewed final-game logs across MLB, NFL, NBA, NHL, and WNBA. Filter with season and season_type; paginate withpage and limit. Every row includes team_at_event andleague_at_event, so historical rows retain the team and league associated with that game.
| game_id / game_at | string / datetime | optional | Stable game identifier and event time. |
| league_at_event | string | optional | Normalized league at the event: MLB, NFL, NBA, NHL, or WNBA. |
| team_at_event | object|null | optional | Team name and abbreviation observed for the player in that game. |
| season / season_type | string | optional | Reviewed season and phase such as regular or postseason. |
| stats | object | optional | Sport-specific final-game statistics. |
| stats_revision / as_of | string / datetime | optional | Opaque release revision and dataset freshness timestamp. |
Card links and allowance
/players/{upid}/cards uses the same query, ordering, pagination, and accounting as /catalog?player_id=. Card-link coverage is partial. These links support Catalog discovery; they are not independently reviewed exact-athlete card attribution and do not assert a match to any Sales API record.
Players requests use the existing Catalog daily record pool and return its standard quota headers. Search and card-list requests charge records returned, with a minimum of one record per request; a profile request charges one. Unknown or unreviewed UPIDs return 404. A registry or Catalog identity mismatch fails closed with 503.
Build a player card browser
Search for a reviewed athlete, use the returned UPID to open the small discovery profile, then follow its cards section to browse linked Catalog cards. The profile's card count and card-year range describe Catalog links, not playing-career statistics.
# Search by name; exact UPID lookup also works in search=
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/players?search=Shohei"
# Open the reviewed profile and its section links
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/players/UP-CRNYZ-EV13Q-8"
# Browse the first five linked Catalog cards
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/players/UP-CRNYZ-EV13Q-8/cards?limit=5"Selected fields from the held Shohei Ohtani profile, using a Builder or higher key:
{
"upid": "UP-CRNYZ-EV13Q-8",
"canonical_name": "Shohei Ohtani",
"primary_sport": "baseball",
"primary_league": "MLB",
"latest_observed_team": {"name": "Los Angeles Dodgers", "abbreviation": "LAD"},
"latest_observed_team_as_of": "2026-10-16T00:00:00+00:00",
"latest_observed_league": "MLB",
"latest_observed_league_as_of": "2026-10-16T00:00:00+00:00",
"catalog": {"card_count": 18822},
"sections": {
"cards": {"status": "partial", "href": "/api/v1/players/UP-CRNYZ-EV13Q-8/cards"},
"stats": {"status": "available", "href": "/api/v1/players/UP-CRNYZ-EV13Q-8/stats"},
"futures": {"status": "available", "href": "/api/v1/players/UP-CRNYZ-EV13Q-8/futures"}
},
"schema_version": "2026-10-30"
}Player-award futures — Builder and Pro
GET /players/{upid}/futures returns reviewed player-award market prices from local snapshots. Current coverage is 781 players and 2,253 player-award quote links across MLB, NFL, NBA, and NHL; a player can have no matched quotes. Coverage is partial. Starter keys are denied, including those with Catalog access. Eligible requests use the normal Catalog daily allowance: each response charges its returned rows, with a minimum of one record, and returns X-RateLimit-Limit and, for capped plans, X-RateLimit-Remaining from the Catalog pool. Customer requests read our saved snapshot; they do not contact the quote source live.
Player futures market data powered by PropLine; prices originate from the named bookmakers. The response identifies PropLine once as thedata_provider, while each quote identifies its bookmaker.
| data_provider | string | optional | Market-data provider for this futures response: PropLine. |
| market | object | optional | Normalized key, readable name, scope=player_award, and reviewed league. |
| bookmaker / outcome_name | string / string | optional | Bookmaker and priced player outcome. |
| price_american / price_decimal | integer|null / number|null | optional | Bookmaker market price in American and decimal formats; null when unpriced. |
| source_updated_at / observed_at | datetime|null / datetime | optional | Source quote time and our capture time, so clients can assess age. |
| state | string | optional | quoted, stale, unpriced, settled, or unknown_freshness when source time is unavailable. |
| seven_day_baseline | object|null | optional | Actual same-book quote near seven days earlier; null until comparable history exists. |
| raw_implied_probability_change_pp | number|null | optional | Change in raw implied probability, in percentage points; bookmaker margin is not removed. |
We plan one four-sport snapshot per day at launch. Seven-day movement is unavailable at launch and appears only after actual captures provide a comparable same-book baseline. These are market prices, not confirmed honors, predictions, fair probabilities, or card valuations. Player statistics, upcoming games, current team, team futures, and game lines are outside this release.
Compare books on one award
Fetch a reviewed player's futures and compare rows with the same market key and league. The captured Connor McDavid Hart Trophy rows below illustrate why each book's source time matters: one line is stale while another is freshly quoted. This is a selected-fields excerpt from the held snapshot, not a current price or a complete API response.
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/players/UP-KYTXM-Z8Z5H-P/futures"{
"upid": "UP-KYTXM-Z8Z5H-P",
"data_provider": "PropLine",
"quotes": [
{
"market": {"key": "hart_trophy_winner", "name": "2026-27 Hart Trophy Winner", "scope": "player_award", "league": "NHL"},
"bookmaker": "fanduel", "outcome_name": "Connor McDavid",
"price_american": 250, "price_decimal": 3.5,
"source_updated_at": "2026-10-01T22:02:41Z",
"observed_at": "2026-10-08T23:53:37Z", "state": "stale",
"seven_day_baseline": null, "raw_implied_probability_change_pp": null
},
{
"market": {"key": "hart_trophy_winner", "name": "NHL Awards 2026/27 - Hart Trophy Winner", "scope": "player_award", "league": "NHL"},
"bookmaker": "draftkings", "outcome_name": "Connor McDavid",
"price_american": 300, "price_decimal": 4.0,
"source_updated_at": "2026-10-08T23:52:36Z",
"observed_at": "2026-10-08T23:53:37Z", "state": "quoted",
"seven_day_baseline": null, "raw_implied_probability_change_pp": null
}
]
}Watch real seven-day movement
A watchlist can alert only when raw_implied_probability_change_pp is non-null and crosses a threshold you choose, comparing the same bookmaker and outcome with an actual earlier snapshot. At launch this field and seven_day_baseline are null; do not treat missing history as zero movement. A player with no accepted quote returns an emptyquotes: [] with partial coverage; that does not prove no market exists. A stale or unpriced row keeps its explicit state.
# Read the saved award prices once a real seven-day baseline exists
curl -H "x-api-key: $KEY" \
"https://www.thecardapi.com/api/v1/players/UP-KYTXM-Z8Z5H-P/futures"A player without an accepted award link has an empty quote list:
{
"quotes": [],
"coverage": {"status": "partial", "scope": "reviewed_player_awards"}
}Rate
Rate limits
Sales requests are limited by rows returned per UTC day and how far back you can query. Catalog and Players share a separate daily Catalog record allowance.
Lookback controls how far back your key may query. Daily allowance controls how many rows may be returned. Neither is a completeness guarantee. Platform availability and reporting time vary; see Status for current freshness.
| Plan | Daily sales-row allowance | Lookback |
|---|---|---|
| Free | 2,000 | 30 days |
| Starter | 10,000 | 60 days |
| Builder | 50,000 | 90 days |
| Pro | 200,000 | 180 days |
Daily counters reset at 00:00:00 UTC each day. API calls and CSV exports draw from the same shared budget — a Builder user who downloads 30K rows via CSV has 20K remaining for API calls that day.
Sales: max limit is 1,000 rows per request on standard plans. View full pricing →
Catalog & Players: shared daily pool
Builder + Catalog add-on: 500 records/day, up to 100 per request. Pro: 2,000 records/day, up to 1,000 per request. Catalog & Players require the appropriate entitlement; they are not included in Free or Starter. Endpoint-specific limits may be lower.
Catalog and Players share one pool, separate from Sales. Returned records count toward it, with a minimum of one record per request, including empty results. Daily counters reset at midnight UTC. Sales lookback windows do not limit Catalog or Players.
Usage headers and retries
Check your balance with GET /api/v1/catalog/usage and your x-api-key header. This lookup uses zero records, even when your daily balance is zero. The response includes used, limit, remaining, and reset_at (UTC). For keys without a daily record cap, limit and remaining are null. For example, a card search with limit=1 costs one record, and its remaining header reflects the balance after that search.
Sales and Catalog report their separate daily pools through X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset (Unix seconds). Your account page also shows request counts for today and the last 30 days.
A 429 can mean daily exhaustion or a temporary burst/concurrency throttle. Read the error detail. For temporary throttles, reduce concurrency and retry with exponential backoff; honor Retry-After when present. Daily exhaustion requires waiting for the UTC reset. Protective request limits apply even when daily allowance remains.
Use the usage headers returned by /api/v1/market/sales responses to track its daily pool:
| Header | Description |
|---|---|
| X-RateLimit-Limit | Your plan's daily sales cap |
| X-RateLimit-Remaining | Sales rows remaining today |
| X-RateLimit-Reset | Unix timestamp of next reset (00:00:00 UTC) |
MCP
MCP Server
The MCP (Model Context Protocol) server offers two tools over a single streamable HTTP endpoint. Connect an assistant that supports remote MCP with a bearer API key. Your API plan determines access, sales history and daily row usage.
Endpoint
Protocol: JSON-RPC 2.0 · Transport: streamable HTTP
Discover available tools
{
"jsonrpc": "2.0",
"id": "1",
"method": "tools/list"
}Claude Desktop
{
"mcpServers": {
"thecardapi": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.thecardapi.com/api/mcp",
"--header", "Authorization: Bearer YOUR_API_KEY"]
}
}
}Claude Code
claude mcp add --transport http thecardapi \
https://mcp.thecardapi.com/api/mcp \
--header "Authorization: Bearer YOUR_API_KEY"Cursor / Windsurf
{
"mcpServers": {
"thecardapi": {
"url": "https://mcp.thecardapi.com/api/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}See the full MCP integration guide → for all clients.
MCP
MCP Tools
Each tool is called via method: "tools/call" with a name and arguments object.
find_catalog_cards looks up possible printings by query, with optional set name, card number and year. Compare the candidates before choosing a printing.
search_sales returns dated sale links with optional grader, grade, grading status, platform, listing type and date filters. Results are title matches. Use only confirmed final prices in price summaries.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search_sales",
"arguments": {
"query": "1986 Fleer Michael Jordan 57",
"grader": "psa",
"grade": "8",
"limit": 10
}
}
}Code
Code examples
Python — REST API
import requests
API_KEY = "tca_your_key_here"
BASE = "https://www.thecardapi.com/api/v1/market"
HEADERS = {"x-market-api-key": API_KEY}
# Search recent Ohtani auctions
r = requests.get(f"{BASE}/sales", headers=HEADERS, params={
"q": "Shohei Ohtani",
"listing_type": "auction",
"price_min": 50,
"limit": 50,
})
for sale in r.json()["data"]:
print(sale["sale_date"], sale["price"], sale["title"][:60])
# Incremental sync — only records indexed since your last poll
r = requests.get(f"{BASE}/sales", headers=HEADERS, params={
"indexed_after": "2026-06-15T10:00:00Z",
"limit": 100,
})Python — MCP tools/call
import requests
MCP_URL = "https://mcp.thecardapi.com/api/mcp"
HEADERS = {"Authorization": "Bearer tca_your_key_here", "Content-Type": "application/json"}
def call_tool(name: str, arguments: dict) -> dict:
payload = {
"jsonrpc": "2.0", "id": "1",
"method": "tools/call",
"params": {"name": name, "arguments": arguments},
}
r = requests.post(MCP_URL, headers=HEADERS, json=payload)
result = r.json()
if result.get("error"):
raise RuntimeError(result["error"]["message"])
tool_result = result["result"]
if tool_result.get("isError"):
raise RuntimeError(tool_result["content"][0]["text"])
return tool_result["structuredContent"]
# Find the original printing and any related Catalog candidates
data = call_tool("find_catalog_cards", {
"query": "1986 Fleer Michael Jordan 57",
"limit": 5,
})
for card in data["data"]:
print(card["ucid"], card["set_name"], card["card_number"])cURL
# REST — search for PSA 10 cards
curl "https://www.thecardapi.com/api/v1/market/sales?q=psa+10&limit=25" \
-H "x-market-api-key: tca_your_key_here"
# MCP — search for PSA 8 sale receipts
curl https://mcp.thecardapi.com/api/mcp \
-H "Authorization: Bearer tca_your_key_here" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":"1","method":"tools/call","params":{"name":"search_sales","arguments":{"query":"1986 Fleer Michael Jordan 57","grader":"PSA","grade":"8","limit":10}}}'Node.js
const res = await fetch(
"https://www.thecardapi.com/api/v1/market/sales?q=topps+chrome&limit=50",
{ headers: { "x-market-api-key": "tca_your_key_here" } }
);
const { data, pagination } = await res.json();
console.log(`${pagination.total} results`);LangChain (Python)
import asyncio
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_anthropic import ChatAnthropic
async def main():
async with MultiServerMCPClient({
"thecardapi": {
"url": "https://mcp.thecardapi.com/api/mcp",
"transport": "streamable_http",
"headers": {"Authorization": "Bearer tca_your_key_here"},
}
}) as client:
tools = await client.get_tools()
model = ChatAnthropic(model="claude-sonnet-4-6")
agent = create_react_agent(model, tools)
result = await agent.ainvoke({
"messages": "Is grading my 1986 Fleer Jordan worth it at $6,500?"
})
print(result["messages"][-1].content)
asyncio.run(main())Ready to start building?
Free tier includes 2,000 sales rows returned per UTC day with 30-day lookback. No credit card required.