API For AI agents

Sold comps for AI agents. Live prices as a tool call.

Give your agent what items really sold for on eBay, Poshmark and Mercari. The median, p25 and p75 come worked out, fetched live when it asks. Paste one tool definition, or connect the MCP server.

100 free requests · No credit card required

Tool definition (JSON Schema)
{  "name": "get_sold_comps",  "description": "eBay sold prices for an item: median, p25, p75, low and high. Best Offer sales are flagged.",  "parameters": {    "type": "object",    "properties": {      "q": { "type": "string", "description": "The item as typed on eBay, like sony wh-1000xm5 -case" },      "count": { "type": "integer", "enum": [40, 60, 120, 200] }    },    "required": ["q"]  }}
MCP server (Claude Code)
claude mcp add --transport http soldgraph \  https://api.soldgraph.com/mcp \  --header "Authorization: Bearer $SOLDGRAPH_KEY"
What you get

Prices your agent can use, not pages to scrape.

One key and one request style for every marketplace. Your agent asks, Soldgraph searches, and the answer comes back as JSON.

The numbers it needs

Every page of sold listings comes with the median, p25, p75, low, high and sale dates worked out. eBay adds a median that leaves Best Offer sales out.

Live, not a stale data set

Each search runs when your agent asks and stays cached for 15 minutes. No nightly dump to load or keep fresh.

Small enough for a prompt

Read result.summary and skip the rows, or let the MCP server return compact rows with just title, price, condition, dates and link.

No polling code

Over MCP, one tool call returns one finished result. Over HTTP, long-poll the job and the call answers the moment the search is done.

Every marketplace, one shape

Sold listings from eBay in 8 countries, Poshmark and Mercari. Listings from Depop, Whatnot, Vinted, OfferUp and Facebook Marketplace. TCGplayer prices.

Whole lists at once

A batch prices a list of items in one call and returns a summary for each search.

No key yet

Your agent can get its own key, with one approval.

No dashboard trip. Your agent asks, your user approves once in the browser, and the key arrives. The agent keys guide has the two calls.

1. The agent asks

POST /v1/agent/keys needs no key. It returns a link and a short code to show your user.

2. Your user approves

They open the link, sign in or create a free account with 100 free requests, check the code and tap Approve.

3. The agent claims it

It polls POST /v1/agent/keys/claim and gets the key once, named after the agent. Your user can revoke it anytime.

Know before you build

Three limits, stated up front.

These come from what each marketplace shows. Tell your agent about them and its answers stay honest.

One page per search

A search returns one page of results, up to 200 eBay sales, not every sale ever made. Ask for more pages when you need them.

About 90 days of eBay sales

eBay sold listings cover what eBay shows for a search now, not a multi-year history.

Best Offer amounts stay hidden

eBay doesn't publish them, so those rows show the asking price. Use the median without Best Offers for the going rate.

Every plan allows 60 API calls a minute. Full detail is in the AI agents guide and the eBay sold listings docs. Using Claude Code? See Soldgraph for Claude Code. Soldgraph is not affiliated with eBay, Poshmark, Mercari or any AI company.

Building with ChatGPT? Paste this.

One prompt gives your assistant the endpoint, the sign-in header and how to wait for a result, so its first script works.

Prompt for ChatGPT, Claude or Cursor
I'm building with the Soldgraph API. It returns sold and for-sale listings from eBay and other resale marketplaces.

Read the docs first: https://soldgraph.com/llms.txt
OpenAPI spec: https://soldgraph.com/openapi.json

Rules for the code you write:
- Base URL: https://api.soldgraph.com/v1
- Auth: send the header "Authorization: Bearer <key>". Read the key from the SOLDGRAPH_KEY environment variable. Never put it in browser code.
- No key yet? If you can make HTTP requests, get one for me: POST https://api.soldgraph.com/v1/agent/keys, show me the verification_url_complete link to approve, then claim the key with POST https://api.soldgraph.com/v1/agent/keys/claim. Steps: https://soldgraph.com/docs/guides/agent-keys.md
- eBay sold prices: GET /ebay/sold?q=<search words>. Add count=200 for up to 200 rows.
- A search often answers 202 with status "pending" and a poll_url. Request https://api.soldgraph.com plus poll_url with ?wait=20 and the same header, until status is "complete" or "failed".
- Read result.summary for the median, low and high price. The rows are in result.data, each with title, displayed_price, sold_date and link.
- Each completed search uses one request. A free account starts with 100 requests that do not refill, so save results while testing instead of repeating a search.

Start with a short script that prints the median sold price for "nintendo switch oled". Then ask me what I want to build.
Paste it in, add your key as SOLDGRAPH_KEY, and it writes working code.Open in ChatGPT Open in Claude
FAQ

Common questions

Something else? Email hello@soldgraph.com and a person will reply.

No. Each search runs live when your agent asks, and the answer stays cached for 15 minutes. eBay sold listings cover what eBay shows, about the last 90 days. This is not a multi-year history.

Any agent that can call HTTP or MCP: the OpenAI Agents SDK, the Vercel AI SDK, LangChain, n8n, Claude, Cursor and more. For function calling, paste the tool definition and have your tool call GET /v1/ebay/sold with your key on the server. Claude's API names the schema input_schema instead of parameters.

It can ask for one. POST https://api.soldgraph.com/v1/agent/keys needs no key and returns a link and a code. Your user opens the link, signs in or creates a free account, and approves. The agent then claims the key once with POST /v1/agent/keys/claim. You can also make a key yourself on the API keys page.

A search cached in the last 15 minutes answers at once. A fresh one answers 202 with a job: long-poll it with ?wait=20 and it answers the moment the search finishes. The MCP server does the waiting for you, and hands back a request_id for get_result if a search runs past about 55 seconds.

eBay in 8 countries, Poshmark in the US and Canada, and Mercari in the US return sold listings. Depop, Whatnot, Vinted, OfferUp and Facebook Marketplace return active listings and asking prices. TCGplayer returns market prices and a small sample of recent sales.

One completed search is one request, whatever the marketplace. Failed searches are free. Start with 100 free requests, no credit card required. Paid plans start at $9 a month for 2,000 requests.

Give your agent sold comps in about two minutes.

Create a free account, make a key, and send your first request. Start with 100 free requests, no credit card required.