← eBay Price Checker
Your token

eBay Price Checker API

Reading a sold-results page, the filters, the typical price, the outlier trim, the list prices, the checks and every download run free in the browser and need no API. The API is for the one metered step: send a description of your item and the sold listings' titles and conditions, and get back, as JSON, a verdict per sale: the same item, a different one (and why), or unsure. The page builds this input for you, never sends prices, and recomputes every price from the sales judged the same.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is {"data": ...} or {"error": {"code", "message"}}; read error.code and error.message rather than the HTTP status alone.

The task field

This app has one task. Always send "task": "match".

taskWhat it doesReply
matchJudges each sold listing against your item: same item, different (with a reason code) or unsure.One JSON object

Input fields

Every field is a string; facts holds JSON text. All three are required.

FieldMeaning
task"match"
itemYour item, as you would describe it to a buyer: model, size or edition, and condition, for example "Apple iPhone 13 128GB unlocked, used". At most 300 characters.
factsJSON object: currency and comps, each {id, title, condition} with ids C1, C2...; at most 80 sales and 150 characters per title. No prices.

The reply

job.output.output is text holding one JSON object: matches, one {id, verdict, why} per sale sent, in order. verdict is same, different or unsure. why is same_item for same, unclear for unsure, and for different one of parts_or_not_working, accessory_only, lot_or_bundle, other_model, other_size, other_condition. Before using it, check it as the page does: ignore ids you did not send and repeated ids, ignore a reason that does not fit its verdict, and leave any sale without a verdict as you had it. Then work out the prices yourself from the sales judged the same. If the balance ran low, truncated is true and the object may stop early; the page keeps the verdicts that arrived whole.

Worked example

Input (input.json), from the page's "Trading card (CSV)" example:

{
  "task": "match",
  "item": "2023 Topps Chrome Elly De La Cruz #212 rookie, PSA 10, base card",
  "facts": "{\"currency\":\"USD\",\"comps\":[{\"id\":\"C1\",\"title\":\"2023 Topps Chrome Elly De La Cruz Rookie RC #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C2\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 PSA 10 GEM MINT\",\"condition\":\"Graded\"},{\"id\":\"C3\",\"title\":\"2023 Topps Chrome Elly De La Cruz Rookie RC #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C4\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 PSA 9 MINT\",\"condition\":\"Graded\"},{\"id\":\"C5\",\"title\":\"2023 Topps Chrome Elly De La Cruz #212 Rookie PSA 10 Reds\",\"condition\":\"Graded\"},{\"id\":\"C6\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 Refractor PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C7\",\"title\":\"2023 Topps Chrome Elly De La Cruz Rookie #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C8\",\"title\":\"(3) Lot 2023 Topps Chrome Elly De La Cruz RC #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C9\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 Raw Ungraded\",\"condition\":\"Ungraded\"},{\"id\":\"C10\",\"title\":\"2023 Topps Chrome Elly De La Cruz Rookie RC #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C11\",\"title\":\"2023 Topps Chrome Elly De La Cruz #212 PSA 10 Gem Mint Rookie\",\"condition\":\"Graded\"},{\"id\":\"C12\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C13\",\"title\":\"2023 Topps Chrome Elly De La Cruz Rookie Card #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C14\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 PSA 10 Reds Rookie\",\"condition\":\"Graded\"}]}"
}

Reply:

{"matches":[{"id":"C1","verdict":"same","why":"same_item"},{"id":"C2","verdict":"same","why":"same_item"},{"id":"C3","verdict":"same","why":"same_item"},{"id":"C4","verdict":"different","why":"other_condition"},{"id":"C5","verdict":"same","why":"same_item"},{"id":"C6","verdict":"different","why":"other_model"},{"id":"C7","verdict":"same","why":"same_item"},{"id":"C8","verdict":"different","why":"lot_or_bundle"},{"id":"C9","verdict":"different","why":"other_condition"},{"id":"C10","verdict":"same","why":"same_item"},{"id":"C11","verdict":"same","why":"same_item"},{"id":"C12","verdict":"same","why":"same_item"},{"id":"C13","verdict":"same","why":"same_item"},{"id":"C14","verdict":"same","why":"same_item"}]}

Errors

HTTPWhat to do
401The token is missing, expired or a guest token on a run. Get a personal token on the token page.
402The balance is below what the run reserves. Top up at skillsafe.ai/account/billing.
400The body is not a JSON object of the fields above, or a required field is missing or empty.
429Wait and retry with the same Idempotency-Key.

Step 1 — a tiny client helper

One function that sends JSON and unwraps the {data, error} envelope.

BASE="https://api.skillsafe.ai/v1/app-api"
TOKEN="paste-your-token-here"   # from https://ebay-price-checker.skillsafe.ai/tokens.html
api() { # api METHOD PATH [JSON-BODY]
  curl -s -X "$1" "$BASE$2" -H "Content-Type: application/json" \
    ${TOKEN:+-H "Authorization: Bearer $TOKEN"} ${3:+--data "$3"}
}

Step 2 — a token

A guest token is enough for /me and /estimate. A run is metered, so it needs your personal token: sign in on the token page and copy it.

# a guest token (enough for /me and /estimate); a run needs your personal token from /tokens.html
TOKEN=$(curl -s -X POST "$BASE/guest" -H "Content-Type: application/json" -d '{"slug":"ebay-price-checker"}' | jq -r '.data.token')

Step 3 — who am I, and my balance

subject_type is guest or user; credits is the balance (1 credit = $0.0001).

api GET /me | jq '.data | {subject_type, credits}' 

Step 4 — price a run for free

/estimate charges nothing and starts no job. hold_credits is the amount reserved while a run is in flight, not the price; the run is charged what it uses.

# input.json: the run input object - {"task": "match", "item": "2023 Topps Chrome Elly De La Cruz #212 rookie, PSA 10, base card", "facts": "{\"currency\":\"USD\",\"comps\":[{\"id\":\"C1\",\"title\":\"2023 Topps Chrome Elly De La Cruz Rookie RC #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C2\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 PSA 10 GEM MINT\",\"condition\":\"Graded\"},{\"id\":\"C3\",\"title\":\"2023 Topps Chrome Elly De La Cruz Rookie RC #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C4\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 PSA 9 MINT\",\"condition\":\"Graded\"},{\"id\":\"C5\",\"title\":\"2023 Topps Chrome Elly De La Cruz #212 Rookie PSA 10 Reds\",\"condition\":\"Graded\"},{\"id\":\"C6\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 Refractor PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C7\",\"title\":\"2023 Topps Chrome Elly De La Cruz Rookie #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C8\",\"title\":\"(3) Lot 2023 Topps Chrome Elly De La Cruz RC #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C9\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 Raw Ungraded\",\"condition\":\"Ungraded\"},{\"id\":\"C10\",\"title\":\"2023 Topps Chrome Elly De La Cruz Rookie RC #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C11\",\"title\":\"2023 Topps Chrome Elly De La Cruz #212 PSA 10 Gem Mint Rookie\",\"condition\":\"Graded\"},{\"id\":\"C12\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C13\",\"title\":\"2023 Topps Chrome Elly De La Cruz Rookie Card #212 PSA 10\",\"condition\":\"Graded\"},{\"id\":\"C14\",\"title\":\"2023 Topps Chrome Elly De La Cruz RC #212 PSA 10 Reds Rookie\",\"condition\":\"Graded\"}]}"}
api POST /estimate "$(cat input.json)" | jq '.data | {hold_credits, min_credits, model, model_alias, markup_bps, warnings}' 

Step 5 — run it and wait for the job

Send an Idempotency-Key derived from the input: a retry with the same key is never billed twice.

KEY="ebay-price-checker:match:$(shasum -a 256 input.json | cut -c1-16):a1"
JOB=$(curl -s -X POST "$BASE/run" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $KEY" --data @input.json | jq -r '.data.job_id')
while :; do
  J=$(api GET "/jobs/$JOB"); S=$(echo "$J" | jq -r '.data.status')
  case "$S" in succeeded|failed|cancelled) break;; esac; sleep 2
done
echo "$J" | jq -r '.data.output.output' > reply.json   # one JSON object: matches
echo "$J" | jq '.data | {charged_credits, truncated}' 

Step 6 — or stream it

/run-stream sends Server-Sent Events while the job runs and the finished job at the end.

# Server-Sent Events: tick/delta events while the job runs, then a final event with the job
curl -N -s -X POST "$BASE/run-stream" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: ebay-price-checker:match:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json