From a keyword to a full card record in the Alt API
A card search can go straight to its full record:
- Send the keyword as
body.querytoaltxyz-search, withbody.categoryand a year range narrowing the results when the keyword alone matches too many cards. - Take the
card_idof the row that matches. - Send that
card_idtoaltxyz-cardfor the full graded population, grade ladder and current listings.
Leaving body.enrich at its default on the search call already attaches each row's last_sale, so a caller only needs the follow-up altxyz-card call when the fuller population and listing detail actually matter. q and keyword are accepted in place of body.query on the search call, taking the same keyword either name would.
Tracking one grade's Alt Value over the past year
A single grade's value trend takes one call once the card and grade are known:
- Take
card_idfrom a search or card-sales result, and thegradestringaltxyz-card'sgradeslist already uses, such asPSA 10. - Send both to
altxyz-card-value-history, leavingbody.fromandbody.tounset for the default roughly-365-day window, or setting both for a shorter one. - Read
summary.change_pctfor the overall move across the window, then readpointsfor the day-by-day detail behind that figure.
Because points comes back oldest first, charting it directly keeps the dates in the order a line chart expects without a sort step first.
Verifying a slab before buying it
A certificate number printed on a slab's label can be checked before money changes hands:
- Send the number as
body.cert_numbertoaltxyz-cert-lookup; includebody.grading_companyonly if the number could belong to more than one grader or its leading zeros were dropped. - Compare the returned
cert.gradeandcert.grading_companyagainst what the seller's listing claims. - Read
in_grade.sales_recordedand the slab's ownsaleslist to see whether that specific slab, not just that card and grade in general, has a sale history behind it.
A cert number Alt has never seen sold or listed through its own records, Heritage, Goldin, or a title match on eBay or Fanatics still returns the card and grade, just with an empty sales list rather than an error, so an empty list is a normal answer worth checking for rather than a failed call.
Comparing a card's sold price against its current asking price
A card's recent sold prices and its current listings answer two different questions side by side:
- Send the card's
card_idtoaltxyz-salesfor sold rows from roughly the last 90 days, each with its ownprice_usdandmarketplace. - Send the same
card_idtoaltxyz-listingsfor current asking prices and bids across Alt's own and external marketplaces. - Compare a listing's
price_usddirectly againstaltxyz-sales' recentprice_usdfigures for the same card and grade, rather than againstaltxyz-listings' ownalt_value_at_listing, which is the Alt Value stored at indexing time rather than a sold price.
altxyz-listings already computes price_minus_alt_value_usd for each row, which shortcuts the same comparison against Alt Value without a manual subtraction.
Paging through a card's full sales history one grade at a time
A card with a long sales history is read a page at a time rather than in one unbounded call:
- Call
altxyz-card-saleswithbody.card_idand thegradewhose full history you want; without agrade, the call instead answers only the newestbody.per_gradesales of every grade. - Set
body.limitto 1000, the largest page this operation accepts, and raisebody.pagewhile a call keeps answering further rows. - Set
body.sorttodate_ascwhen the goal is the earliest sales first rather than the newest.
Switching body.skipped to exclude partway through a read removes rows marked RELISTED or NOT_PAID from every later page as well, so comparing paged results across different body.skipped values benefits from starting the pagination over rather than mixing pages read under different settings.
Finding a listing's full bid history from a browse result
A listing's own bid history only appears once its id is looked up directly:
- Browse with
altxyz-listings, filtering bybody.category,body.gradeorbody.min_alt_valueto narrow a long list of current offers. - Take the
listing_idof a row showing bid activity. - Send that id to
altxyz-listingfor the fullbidslist andbid_history_events, neither of which the browse call's row shape carries.
An external listing's listing_id carries a live_ prefix rather than Alt's own listing id shape, and altxyz-listing still resolves it to that marketplace's own highest_bid_usd and buy_it_now_usd in place of Alt's bid history.
Alt explained
Before buying a graded card, a buyer can look up its certificate number to confirm the slab is genuine and that the returned grade matches what is printed on the label. A population report, published by the grading company itself, is a running count of how many copies of one specific card have reached each grade; collectors read it to judge how rare a given grade actually is. Alt's own marketplace covers sports cards first and widened over time to Pokémon, Yu-Gi-Oh! and other trading-card categories collectors invest in as they would any other asset.
{
"body": {
"card_id": "e5c5faea-533f-48fe-8013-a918d87a8b52",
"grade": "PSA 9"
}
}[
{
"body": {
"query": "charizard base set 1st edition",
"category": "pokemon"
}
},
{
"body": {
"card_id": "e5c5faea-533f-48fe-8013-a918d87a8b52"
}
}
]Server-side request template
This server-side template shows authentication and request identity using the first operation of this API. Choose the operation for your use case and check its current availability and price on the API page. After a timeout, resend the unchanged request with the same Idempotency-Key.
The gateway request is always POST.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/altxyz/altxyz-card' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"card_id":"e5c5faea-533f-48fe-8013-a918d87a8b52"}}'Integration checklist
- The API key is stored in a server-side secret manager and never sent to a browser.
- Each request carries its own Idempotency-Key, kept until the request has a final answer.
- The integration reads ok and error.code and handles each error code as the error table describes.
- An uncertain POST is inspected using its original identity, never blindly repeated with a new one.
- The operation’s current availability and price have been checked on its API page.
Alt API: trading card values, sales and listings overview and prices · Read the API reference · Try it in the playground