SoldMint

Building · Guide

Integrating a sports card pricing API: a developer’s checklist

What to build, in what order, when you connect a card catalogue to a pricing API, and the questions to put to any provider before you depend on it.

Short answer

Map each card in your catalogue to the provider’s card id once and store it; never price by title text. Cache each price keyed on card id and grade, refresh it according to how much evidence it rests on, and design your interface for “no estimate” from day one. Before you sign, ask where the data comes from and whether you may show or redistribute it. SoldMint’s API is not deployed yet; the requests below show its planned contract and are illustrative.

Every request and response on this page uses the v1 API at https://data.soldmint.com/v1. The card in the examples is fictional. The quickstart covers authentication and the full request format.

Map your catalogue to card ids

The first job is identity, and it happens once per card, not on every price request. A common source of wrong prices is looking a card up by a string such as “2025-26 Topps Chrome Basketball Marlowe Gold /50” each time a price is needed. Strings drift, abbreviations differ and a search that returns the closest match will happily return the base card or the wrong colour of refractor.

Do it in two steps instead:

  1. Search with structured fields. Send year, product, card number, player and the parallel as separate parameters, not one free-text query.
  2. Confirm and store the id. Check the returned identity field by field against your record, then store the provider’s card_id in your own table. From then on, every price call uses the stored id.
Search for one card by structured fieldsIllustrative — not live output
curl -G https://data.soldmint.com/v1/cards/search \
  -H "Authorization: Bearer $SOLDMINT_KEY" \
  --data-urlencode "sport=baseball" \
  --data-urlencode "year=2024" \
  --data-urlencode "product=Topps Chrome Basketball" \
  --data-urlencode "card_number=150" \
  --data-urlencode "parallel=Gold Refractor"

The comparison that matters is every identity field, especially the ones title text loses: parallel, serial run, autograph and memorabilia.

One card, fully identifiedIllustrative
sport
Basketball · NBA
year
2025-26
manufacturer
Topps
product
Topps Chrome Basketball
set
Base
card number
150
player
Alex Marlowe (fictional)
team
Example City
rookie
Rookie (first year)
parallel
Gold Refractor
serial
Numbered to 50
autograph
None
memorabilia
None
grade
PSA 10 (asked for)

Change any one field and it is a different card with different sales. Highlighted: the two fields most often lost when sales are matched by title text.

Keep a mapping status on each of your records: matched, ambiguous (several candidates, needs a person) or not in catalogue. Ambiguous records should not get a price until someone resolves them, because a guessed match produces a confident wrong price. The parallels guide lists the distinctions that cause most ambiguity.

Cache by evidence tier and as_of

A price is a function of two keys: the card and the grade. Cache on the pair (card_id, grade), and keep the response’s as_of timestamp with it. as_of says when the provider computed the estimate; your own fetch time is a separate fact and tells you less.

How long a cached price stays useful depends on how much evidence it rests on. A card that sells often can move between computations; a card with one sale a year will not change until it sells again. SoldMint’s evidence tiers make that visible in every response, so you can use them to set refresh intervals.

Suggested cache policy by SoldMint evidence tier (a starting point to tune, not a provider rule)
TierEvidenceWhat you holdRefresh approach
A8+ comps in 90 daysPoint estimate and rangeShortest interval of the four; or refresh when the updates feed lists the card
B3–7 comps in 180 daysPoint estimate and rangeLonger interval; refresh on the updates feed
C1–2 comps in 365 daysRange only, no point estimateLong interval; the range changes only when a new sale arrives
NoneBelow tier Cestimate: null, a reason and the nearest evidenceCache the null too, so you do not re-request it on every page view

Two details are easy to miss. Cache the null result as well as the estimates, or every view of a rare card becomes an API call. And when you display a cached price, show its as_of date, not the time your server last fetched it.

Handle estimate: null

Any honest pricing source will sometimes have nothing to say. A 1/1, a /5 parallel or a grade nobody has sold may have no comps at all. SoldMint’s response for that case is estimate: null with reason: insufficient_evidence, the evidence it does have and suggested next calls.

GET /v1/cards/smc_bk_2526_tcb_150_red_r5/estimate?grade=PSA_10Illustrative — not live output
{
    "card": {
        "card_id": "smc_bk_2526_tcb_150_red_r5",
        "year": "2025-26",
        "product": "Topps Chrome Basketball",
        "card_number": "150",
        "player": "Alex Marlowe",
        "parallel": {
            "name": "Red Refractor",
            "color": "red",
            "finish": "refractor"
        },
        "serial": {
            "numbered": true,
            "print_run": 5
        }
    },
    "grade": {
        "company": "PSA",
        "value": "10",
        "code": "PSA_10"
    },
    "estimate": null,
    "reason": "insufficient_evidence",
    "evidence": {
        "sales_used": 0,
        "nearest_sales_available": 1,
        "window_days": 365
    },
    "next_steps": [
        "GET /v1/cards/{card_id}/sales?grade=any — every recorded sale of this card at any grade",
        "GET /v1/cards/{card_id}/estimate?grade=raw — the ungraded estimate, if one exists"
    ],
    "as_of": "2026-11-25T06:00:00Z",
    "illustrative": true
}

Treat this as a normal state of the data, with its own interface:

  • Never coerce null to zero. A zero price in a portfolio total is worse than a gap, because it looks like information.
  • Show a clear label such as “Not enough sales to estimate” and, where useful, the nearest evidence: sales at another grade, or the raw estimate.
  • Keep nulls out of totals and averages, and say how many cards were excluded from a collection value.
  • Do not substitute your own multiplier from another grade. The raw vs graded guide explains why that number would be a guess.

Tier C deserves similar care. It returns a range and no point estimate, so the field your interface would normally read is empty by design. Test both shapes before you ship, using the sample responses.

Show evidence to users

A number with no context invites the wrong decision. The response already carries what users need to judge it; the work is deciding how much to show at each size of screen.

The evidence object inside an estimateIllustrative — not live output
{
    "tier": "B",
    "sales_used": 4,
    "sales_excluded": 1,
    "window_days": 180,
    "oldest_sale": "2026-06-14",
    "newest_sale": "2026-11-02",
    "sale_types": {
        "auction": 2,
        "fixed_price": 1,
        "accepted_offer_verified": 1
    }
}

A compact presentation that works in a list row: the estimate, then “4 sales, Jun–Nov” and the tier. On a card’s own page, add the range, the sale types and a link to the individual sales if your plan includes them. Say which sales were excluded and why when the provider tells you; the illustrative sales list on this site shows one fixed-price sale excluded as a jersey-number match, which is the kind of detail that builds trust in the rest. The methodology explains each tier in plain terms you can link to from your own help pages.

Rate limits and the 429 response

Plan for two limits: a per-minute request rate and a monthly quota. Both vary by plan, and SoldMint’s are on the pricing page. SoldMint’s published rule is a hard stop: a request over quota gets HTTP 429 and is not billed as overage. Your integration has to handle a 429 as an expected response, not an outage.

  • Back off and retry with jitter for per-minute limits. If the response carries a Retry-After header, honour it.
  • Distinguish a rate limit from an exhausted monthly quota; retrying the second wastes effort until the quota resets or the plan changes. Read the error body your provider documents (SoldMint’s is in the errors reference).
  • When limited, serve the cached price with its as_of date rather than an error.
  • Count your own usage. A sudden rise usually means a cache miss loop, often on null results that were never cached.

Bulk sync with an updates feed

Once a catalogue runs to many thousands of cards, polling each id on a timer spends most requests on prices that have not changed. Two endpoints replace that loop: POST /v1/cards/bulk for many ids in one call, and GET /v1/cards/updates?since=, which lists cards whose estimate changed after a timestamp. Both are on the higher plans.

A changed-cards sync loopIllustrative — not live output
# 1. Ask what changed since the last successful sync
curl -G https://data.soldmint.com/v1/cards/updates \
  -H "Authorization: Bearer $SOLDMINT_KEY" \
  --data-urlencode "since=2026-11-24T06:00:00Z"

# 2. Fetch fresh estimates for the changed ids you hold
curl https://data.soldmint.com/v1/cards/bulk \
  -H "Authorization: Bearer $SOLDMINT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"items":[{"card_id":"smc_bk_2526_tcb_150_gold_r50","grade":"PSA_10"}]}'

Store the since cursor only after a sync completes, so a failed run repeats rather than skips. Filter the feed to card ids you actually hold before calling bulk. Run a slow full reconciliation now and then as well, to catch anything a missed run let through.

Attribution and licensing

The legal questions matter as much as the technical ones, because a price feed you cannot show to customers is of little use. Sold-price data usually starts on marketplaces and at auction houses, and their terms govern what anyone downstream may do with it. eBay, for example, publishes an API License Agreement and a User Agreement, and its developer documentation marks the sold-item Marketplace Insights API as restricted.

Ask any provider, in writing:

  • Where do the sales come from, and under what agreement or licence is each source used?
  • May you display the prices to your users, store them, and keep them after the contract ends?
  • May you show individual sales, or only estimates? May you redistribute either to your own API customers?
  • What attribution, if any, must appear next to the data?

SoldMint names its sources (eBay, Goldin, Fanatics Collect and ALT) on the methodology page, and every sale it returns is labelled with where it took place.

Evaluation checklist for any provider

Use this table on every provider you consider, SoldMint included. A provider that cannot answer a row clearly has told you something.

Pricing API evaluation checklist
QuestionA good answerA warning sign
How is a card identified?A stable id with parallel, serial run, autograph and memorabilia as separate fieldsLookup by title string only
Is grade part of the key?Company and grade on every price, raw kept separateOne price per card, or graded prices derived from raw
Which sales count?Verified sales only; asking prices and unsold listings excludedAsking prices mixed in, or no answer
How are auctions treated?States whether a buyer’s premium is includedHammer and premium-inclusive prices mixed
What evidence comes with a price?Sale count, date range, sale types and exclusionsA bare number
What happens with no comps?An explicit null with a reasonA price for every card, however rare
Can you see the sales?Individual sales available on some planEstimates only, with no way to check
How do you sync changes?A changed-since feed or bulk endpointPolling every id is the only option
What happens over quota?Documented 429 behaviour and known chargesSilent overage billing
Where does the data come from?Named sources and the basis for using them“Proprietary” with no detail
May you display and redistribute it?Written terms covering display, storage and redistributionTerms that are silent or verbal

SoldMint’s answers to most rows are in the methodology and the docs. The source and attribution rows are answered on the methodology page.

Sources

Try it against your own catalogue

A free Sandbox key lets you test id mapping, caching and null handling on live data before you choose a plan.