Documentation
Alt API reference for 9 operations
Reference for the Alt API: what each of its 9 operations' inputs does, how card, listing and cert ids work, and what the returned data holds.
See also: Alt API: trading card values, sales and listings overview and prices · Alt API guide: cards, grades, certs and listings
On this page
The Alt API's altxyz-card: the grade ladder, the newest sale and in_grade
altxyz-card answers card, which groups the following.
- identity:
card_id,name,year,set,number,variety,subject,category,category_code,print_run url,image,images: the card's own page link and picturespop_total: the card's overall graded population across every grading companypopulation: that same population broken down bygrading_companyandgrade_numbergrades: every grade with a recorded sale, each with its ownalt_value, confidence band andlast_sale, highest Alt Value firstlast_sale: the single newest sale across every one of those grades together, a different figure from any one grade's own last sale insidegradesalt_listings,external_listings: the card's own current listings, each tagged with itsgrade
Sending body.grade adds in_grade, which answers that one grade's figures directly instead of requiring a scan through grades for a matching entry — useful when only one grade matters and the rest of the ladder is not needed. body.grade takes one grade as the grader's short name plus its grade, such as PSA 10 or BGS 9.5.
Fields in this section (3)
altxyz-card, body.card_id, body.grade
altxyz-card-sales: scope of the history and what each row names
altxyz-card-sales answers card, naming the same identity fields as altxyz-card without its images or population, and rows, where each row is one sale.
sale_id,date,price_usd: the sale's own id, date and pricemarketplace,marketplace_name,source: the venue, including Alt's own name for it, for examplePWCC Weekly Auctionssale_type:AUCTION,BEST_OFFER,BUY_IT_NOWorFIXED_PRICEgrading_company,grade_number,grade,grade_key: the grade soldautograph,listing_url,label: the autograph flag, the listing link and Alt's own label textskipped_reason,subject_to_change: whether the sale was relisted or not paid, and whether the price can still change
Sending body.grade switches the call from the newest body.per_grade sales of every grade to the complete recorded history of that one grade, at which point body.per_grade is ignored rather than applied on top of it. body.marketplace accepts an other value here, covering auction houses such as Robert Edwards, Memory Lane, Mile High, Lelands and SCP, alongside the eight named marketplaces. body.skipped chooses whether sales marked RELISTED or NOT_PAID in skipped_reason are included, excluded, or the only ones returned.
body.sort orders the rows by date or price in either direction, and body.page together with body.limit (up to 1000 each) pages through whichever scope — one grade or every grade — the call resolved to. Dates for body.from and body.to use YYYY-MM-DD; body.page starts at 1 for the first page, and the site's own all-grades view itself shows 16 of the newest sales per grade before body.per_grade raises that count.
Fields in this section (9)
altxyz-card-sales, body.card_id, body.grade, body.marketplace, body.skipped, body.per_grade, body.sort, body.page, body.limit
altxyz-card-value-history: the daily points and the summary window
altxyz-card-value-history answers card, the grade and grade_key the history belongs to, and points, oldest first, each a date with that day's Alt Value band.
card.card_id,card.name,card.url: the card's own identity for this historypoints[].alt_value,alt_value_low,alt_value_high: that day's Alt Value and its low/high bandsummary.first_value,last_value,high,low,change_pct: the window's own start, end, extremes and overall percentage movesummary.first_date,last_date: the first and last day actually covered bypointsready_for_display: Alt's own flag for whether this window is ready to show
body.grade is required, since a value history has no meaning without naming the one grade it tracks, written as the grader's short name plus its grade, such as PSA 10 or BGS 9.5. body.from defaults to 365 days before body.to, and body.to itself defaults to today, so omitting both answers roughly the last year of points. id, asset_id or url are accepted in place of body.card_id.
date_from/start_date and date_to/end_date are accepted in place of body.from and body.to. body.from and body.to use YYYY-MM-DD.
Fields in this section (5)
altxyz-card-value-history, body.card_id, body.grade, body.from, body.to
altxyz-cert-lookup: the slab's own grade, its sales and other matches
altxyz-cert-lookup answers cert, card and in_grade, together with this slab's own sales and listings. card names the same identity fields altxyz-card uses.
cert.cert_number,cert_number_input,grader_cert_url: the certificate number, the value as sent, and a link to the grader's own recordcert.grading_company,grade_number,grade,grade_key: the grade this slab receivedcert.autograph_grade,qualifier: an autograph grade and any qualifier printed on the labelcert.subgrades: BGS only:centering,corners,edges,surfacesin_grade: that grade'salt_value, population andsales_recorded, plus the newest sale of any copy at that grade rather than of this slabsales: this one slab's own recorded sales, newest first, each taggedmatched_bycert_fieldortitlealt_listings,external_listings: the slab's current listingsother_matches: the same number at another grading company, present only when Alt finds more than one match
body.grading_company is optional — Alt reads the grader from the number on its own — but disambiguates a number that exists at two graders at once, or one whose leading zeros were dropped before it was sent. body.cert_number is 6 to 12 digits with leading zeros kept; a BGS number starts with 00.
Fields in this section (3)
altxyz-cert-lookup, body.cert_number, body.grading_company
altxyz-listing: an Alt auction's full history versus an external listing
altxyz-listing answers listing, whose shape depends on kind.
- Alt listing
type,state,list_price_usd,min_offer_usd: the auction or fixed-price terms - Alt listing
items: every card in the listing, each with its owngrade,cert_numberandalt_value - Alt listing
bids,bid_history_events: every individual bid newest first, and those bids grouped into price steps - Alt listing
view_count,pop,auction_cycle_id,card_id,card_url,url: view count, population and identifiers - External listing
marketplace,source,bid_count,highest_bid_usd,buy_it_now_usd: that marketplace's own current bid and buy-it-now price - External listing
grade,listing_urland the card's identity: no per-bid history, since that detail belongs only to Alt's own auctions
A listings row's own bid_count counts every bid and so comes out larger than the number of distinct price steps in bid_history_events. id, or a link such as alt.xyz/itm/8fd4b09d-9a85-47b8-8723-7f7eebb8ea81, is accepted in place of body.listing_id, taking a listings row's own identifier exactly as that row already provides it.
Fields in this section (2)
altxyz-listing, body.listing_id
altxyz-listings: one row shape across Alt's own and external marketplaces
altxyz-listings answers rows, one shape shared by Alt's own auctions and fixed-price listings and the external marketplaces it indexes.
listing_id,marketplace,marketplace_name,source,listing_type,is_alt_listing,title: the listing's own identity and venueprice_usd,price_not_published,bid_count,watch_count,view_count: the current bid or price, and activity countsstarts_at,ends_at,no_end_date: timing- card identity (
grading_company,grade_number,grade,grade_key,card_id,name,year,set,number,variety,subject,category,category_code,pop): the card this listing is for alt_value_at_listing,alt_value_low,alt_value_high,alt_value_confidence: the card's Alt Value as it stood when the listing was indexed, not looked up freshprice_minus_alt_value_usd: the gap betweenprice_usdandalt_value_at_listing, already computedlisting_indexed_at,listed_at: when Alt found the listing, and when it was first listedlast_external_sale: that card's most recent external sale (marketplace, source, price), for comparison
body.listing_type narrows to auctions, fixed-price listings, or Alt's own of either kind. body.min_alt_value and body.max_alt_value bound by the stored Alt Value rather than by price, which body.min_price and body.max_price bound separately. body.page starts at 1 for the first page, and body.limit goes up to 50 rows per page.
Fields in this section (15)
altxyz-listings, body.query, body.marketplace, body.listing_type, body.category, body.grade, body.grading_company, body.min_price, body.max_price, body.min_alt_value, body.max_alt_value, body.card_id, body.sort, body.page, body.limit
altxyz-sale: one sale's own figures, separate from a card-sales row
altxyz-sale answers sale by body.sale_id alone.
date,price_usd,usd_amount,currency,fees_usd,shipping_usd: the sale's price figures;usd_amountis Alt's own figure, which on a best-offer sale can hold the asking price rather than the price that actually settledmarketplace,marketplace_name,source,auction_name: the venuesale_type,grading_company,grade_number,grade,grade_key,cert_number: the grade soldautograph,listing_url,image,images,skipped_reason,subject_to_change: remaining record detailalt_listing_id: the listing it sold through, when one existscard: the card, using the same identity fieldsaltxyz-carddoes
id, or a link such as alt.xyz/itm/accb4108-8fe2-4983-87dd-6d81c1af8d2c/sold, is accepted in place of body.sale_id, taking a sales or card-sales row's own identifier exactly as that row already provides it.
Fields in this section (2)
altxyz-sale, body.sale_id
altxyz-sales: the sold feed's own fields across every card
altxyz-sales answers rows, each one sold listing from roughly the last 90 days.
sale_id,sold_date,price_usd,marketplace,marketplace_name,source,sale_type,listing_type: the sale's own figures and venuetitle: the seller's own title rather than a title Alt generates- card identity (
grading_company,grade_number,grade,grade_key,card_id,name,year,set,number,variety,subject,category,category_code,pop): the card sold serial_numbered,rookie_year: card-specific facts Alt attaches to the rowlot_id: groups rows sold together in one auction lotskipped_reason: the same relisted-or-not-paid markingaltxyz-card-salesuses
body.sale_format narrows to auction sales or fixed-price and best-offer sales. body.from and body.to bound the sale date within the roughly 90-day window the feed itself covers, so a body.from older than that window simply returns nothing earlier than what the feed still holds.
asset_id is accepted in place of body.card_id here as well, taking the same value a search or listings row's own card_id already provides. body.from and body.to on altxyz-sales also use YYYY-MM-DD.
Fields in this section (15)
altxyz-sales, body.query, body.marketplace, body.category, body.grade, body.grading_company, body.sale_format, body.min_price, body.max_price, body.from, body.to, body.card_id, body.sort, body.page, body.limit
altxyz-search: a catalogue row, with or without enrichment
altxyz-search answers rows, each one card.
card_id,name,year,set,number,variety,subject,category,category_code,print_run,url: the card's own identitypop: the population figure the card index itself carries, which can differ from the sum of the per-grade populationsaltxyz-cardreports for the same cardexternal_sales_count,grades_with_sales: the card's sales activity without naming a gradelast_sale: the newest completed sale of any grade, present only whenbody.enrichis left at its default oftruein_grade: present only withbody.grade: that one grade'salt_valuewith its confidence band (0 to 100), population and last sale
Setting body.enrich to false returns card identity alone, in one request, with none of last_sale, grades_with_sales or in_grade attached. body.year_min and body.year_max bound the card's year from 1800 to 2100 inclusive.
body.sort orders rows by Alt's own relevance score or by population in either direction. Alt's underlying card index holds roughly 29.9 million cards.
Fields in this section (10)
altxyz-search, body.query, body.category, body.year_min, body.year_max, body.grade, body.sort, body.enrich, body.page, body.limit
{
"body": {
"cert_number": "28249067"
}
}{
"body": {
"marketplace": "goldin",
"query": "charizard"
}
}Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
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.
Card
POST /api/v1/altxyz/altxyz-card
Returns one trading card by its card_id: identity and images, the graded population of every grade, the current Alt Value and last sale of each grade with a recorded sale, and Alt's own and external active listings in a given grade.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.card_id | string | Required | — | — |
body.grade | string | Optional | — | — |
Request examples
# 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"}}'Card sales
POST /api/v1/altxyz/altxyz-card-sales
Returns one card's individual sales history across multiple marketplaces, filtered by grade, marketplace and date, with every grade's newest sales when no grade is given.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.card_id | string | Required | — | — | — |
body.from | string | Optional | — | — | — |
body.grade | string | Optional | — | — | — |
body.limit | integer | Optional | 100 | — | 1–1000 |
body.marketplace | string | Optional | — | "ebay""fanatics""alt""goldin""heritage""pristine""cardhobby""myslabs""other" | — |
body.page | integer | Optional | 1 | — | 1–1000 |
body.per_grade | integer | Optional | 50 | — | 1–100 |
body.skipped | string | Optional | "include" | "include""exclude""only" | — |
body.sort | string | Optional | "date_desc" | "date_desc""date_asc""price_desc""price_asc" | — |
body.to | string | Optional | — | — | — |
Request examples
# 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-sales' \
--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","grade":"PSA 9"}}'Card value history
POST /api/v1/altxyz/altxyz-card-value-history
Returns the daily Alt Value of one card in one grade between two dates, with a confidence band for each day and a summary of how the value moved.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.card_id | string | Required | — | — |
body.grade | string | Required | — | — |
body.from | string | Optional | — | — |
body.to | string | Optional | — | — |
Request examples
# 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-value-history' \
--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","grade":"PSA 9"}}'Certificate lookup
POST /api/v1/altxyz/altxyz-cert-lookup
Looks up one graded slab by its certificate number: the card, the grade, its current Alt Value and population, and every sale and listing Alt has recorded for that slab.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.cert_number | string | Required | — | — |
body.grading_company | string | Optional | "PSA""BGS""CGC""SGC""TAG""CSG""BVG""PSA/DNA""BCCG" | — |
Request examples
# 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-cert-lookup' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"cert_number":"28249067"}}'Listing
POST /api/v1/altxyz/altxyz-listing
Returns one live listing by its listing_id, whether it is one of Alt's own auctions or fixed-price listings or an external listing on another marketplace.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.listing_id | string | Required | — | — |
Request examples
# 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-listing' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"listing_id":"8fd4b09d-9a85-47b8-8723-7f7eebb8ea81"}}'Listings
POST /api/v1/altxyz/altxyz-listings
Searches live listings across Alt's own auctions and fixed-price listings and several external marketplaces, filtered by card, grade, price and Alt Value.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.card_id | string | Optional | — | — | — |
body.category | string | Optional | — | 16 values"pokemon""baseball""basketball""football""hockey""soccer""one_piece""yugioh""magic""tcg""pop_culture""combat_sports""racing""tennis""golf""other" | — |
body.grade | string | Optional | — | — | — |
body.grading_company | string | Optional | — | "PSA""BGS""CGC""SGC""TAG""CSG""BVG""PSA/DNA""BCCG" | — |
body.limit | integer | Optional | 20 | — | 1–50 |
body.listing_type | string | Optional | — | "auction""fixed_price""alt_auction""alt_fixed_price" | — |
body.marketplace | string | Optional | — | "ebay""fanatics""alt""goldin""heritage""pristine""cardhobby""myslabs" | — |
body.max_alt_value | number | Optional | — | — | ≥ 0 |
body.max_price | number | Optional | — | — | ≥ 0 |
body.min_alt_value | number | Optional | — | — | ≥ 0 |
body.min_price | number | Optional | — | — | ≥ 0 |
body.page | integer | Optional | 1 | — | 1–500 |
body.query | string | Optional | — | — | — |
body.sort | string | Optional | "recommended" | "recommended""price_desc""price_asc""ending_soonest""newest""alt_value_desc""alt_value_asc""most_watched""most_bids""fewest_bids" | — |
Request examples
# 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-listings' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"listing_type":"alt_auction","query":"charizard"}}'Sale
POST /api/v1/altxyz/altxyz-sale
Returns one recorded sale by its sale_id: price, fees, shipping, marketplace, grade and the card sold.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.sale_id | string | Required | — | — |
Request examples
# 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-sale' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sale_id":"accb4108-8fe2-4983-87dd-6d81c1af8d2c"}}'Sales
POST /api/v1/altxyz/altxyz-sales
Returns sold listings from the last roughly 90 days across every card, filtered by keyword, marketplace, category, grade and price.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.card_id | string | Optional | — | — | — |
body.category | string | Optional | — | 16 values"pokemon""baseball""basketball""football""hockey""soccer""one_piece""yugioh""magic""tcg""pop_culture""combat_sports""racing""tennis""golf""other" | — |
body.from | string | Optional | — | — | — |
body.grade | string | Optional | — | — | — |
body.grading_company | string | Optional | — | "PSA""BGS""CGC""SGC""TAG""CSG""BVG""PSA/DNA""BCCG" | — |
body.limit | integer | Optional | 20 | — | 1–50 |
body.marketplace | string | Optional | — | "ebay""fanatics""alt""goldin""heritage""pristine""cardhobby""myslabs" | — |
body.max_price | number | Optional | — | — | ≥ 0 |
body.min_price | number | Optional | — | — | ≥ 0 |
body.page | integer | Optional | 1 | — | 1–500 |
body.query | string | Optional | — | — | — |
body.sale_format | string | Optional | — | "auction""fixed_price" | — |
body.sort | string | Optional | "date_desc" | "date_desc""date_asc""price_desc""price_asc" | — |
body.to | string | Optional | — | — | — |
Request examples
# 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-sales' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"marketplace":"goldin","query":"charizard"}}'Card search
POST /api/v1/altxyz/altxyz-search
Searches Alt's card database by keyword, year and category, with each row's graded population and last sale, and, with a grade given, that grade's current Alt Value.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.category | string | Optional | — | 16 values"pokemon""baseball""basketball""football""hockey""soccer""one_piece""yugioh""magic""tcg""pop_culture""combat_sports""racing""tennis""golf""other" | — |
body.enrich | boolean | Optional | true | — | — |
body.grade | string | Optional | — | — | — |
body.limit | integer | Optional | 20 | — | 1–50 |
body.page | integer | Optional | 1 | — | 1–500 |
body.query | string | Optional | — | — | — |
body.sort | string | Optional | "relevance" | "relevance""pop_desc""pop_asc" | — |
body.year_max | integer | Optional | — | — | 1800–2100 |
body.year_min | integer | Optional | — | — | 1800–2100 |
Request examples
# 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-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"grade":"PSA 10","query":"charizard base set 1st edition"}}'How calls work
POST /api/v1/altxyz/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: