Live from stonkfun
Pairs, tokens, leaders and runners read stonkfun.xyz live and are cached at the edge. X-Cache and X-Data-Age show the hit type and age.
v1
Pairs, tokens, leaders, Dex paid profiles and verification. Market data comes live from stonkfun.xyz. Every JSON route needs an API key from /signup. Add the domain you call from.
Pairs, tokens, leaders and runners read stonkfun.xyz live and are cached at the edge. X-Cache and X-Data-Age show the hit type and age.
Catalog with category, sector and status. etf and sector can be set in /admin. count is null; use /v1/pairs/{mint} total for a pair's token count.
Boosts and paid profiles, ads excluded. Jupiter verified list joined onto listing stonks, not a raw proxy.
FAQ
StonkAPI is a JSON API for quote-paired token markets on Solana. It serves pairs, tokens, leaders, runners, Dex paid profiles and Jupiter verification from the edge, and the same surfaces are shown as HTML tables on the site.
Market data comes live from stonkfun.xyz's public API. API keys, admin pair settings, the curated projects list, and history for community, rewards, dex and verified still come from StonkAPI's own store.
Responses are cached in memory and at the Cloudflare edge for 10 seconds to 10 minutes, depending on the route. A once-a-minute job refreshes the busiest lists. The X-Cache and X-Data-Age headers, and GET /v1/health, show the age of the copy you received.
Sign up with email at https://stonkapi.xyz/signup. We email a 6-digit code, then generate a key. Add the domain you will call from, and send the key as Authorization: Bearer sa_... or X-StonkAPI-Key. Every /v1 route requires a key.
Yes. An API key is free to request at /signup. There is no paid plan or usage fee in the product today. A key is access, not a contract for uptime.
StonkAPI does not publish a per-key rate limit. All StonkAPI traffic shares stonkfun.xyz's 60 requests a minute, so prefer cached responses and avoid tight polling. Key changes can take up to 60 seconds to apply.
GET, HEAD and OPTIONS on /v1/tokens, /v1/tokens/{mint}, /v1/pairs, /v1/pairs/{mint}, /v1/runners, /v1/trending, /v1/leaders, /v1/stocks, /v1/projects, /v1/verified, /v1/community, /v1/rewards, /v1/dex and /v1/health. The machine-readable list is at /openapi.json.
Yes. Download a zero-dependency client from https://stonkapi.xyz/sdk/stonkapi.ts (or /sdk/stonkapi.mjs for JavaScript). It covers every /v1 route, with paging helpers, typed errors and retries. The package name stonkapi is not on npm yet.
stonkfun.xyz is the live market and the upstream data source. StonkAPI is a keyed JSON API on top of that data: a stable envelope, edge caching, HTML tables, a TypeScript client, and StonkAPI-specific lists such as curated projects and history for community, rewards, dex and verified.