GET /api/tokens
Search and list Clanker tokens with filters, sorting, and cursor-based pagination.
Authentication: Public
Query Parameters
Response: Paginated list of tokens with optional user and market data.
Returns 503 with Retry-After: 5 on search timeout. Cached for 2 s at the edge.
GET /api/tokens/trending
Returns the Trending list (the homepage Trending tab), ranked every minute from clanker.world market data. Cached for 15 seconds.
Authentication: Public
Query Parameters
Response: Trending pools in the historical pool-list shape (
attributes from clanker.world market data) and their tokens keyed by lowercase pool address.
Cached for 5 minutes (s-maxage=300). Attributes the old pool list had that clanker.world does not track (native prices, 5m and 15m changes, dex) are left out. Returns 503 when the ranking is unavailable.
GET /api/tokens/ohlcv
USD OHLCV candles for one token in a pool. The response is this app’s chart contract, read from Codex pool bars.
Authentication: Public
Query Parameters
Response: Ascending candles. time is the candle open as unix seconds. noMore is true when Codex reports no_data, the pool side does not match, or there are no candles.
Closed non-empty ranges use s-maxage=600. The forming candle and empty results use s-maxage=15. A missing Codex key or upstream failure returns 503 and is not cached. An unrecognized pool returns an empty list for 15 seconds.
GET /api/tokens/chart-marks
Buy and sell marks for the token chart. Dev wallets are resolved on the server. The response is this app’s chart contract, not the upstream Codex payload.
Authentication: Public
Query Parameters
Response: Trade marks in the requested window. An upstream failure returns an empty list.
Cache-Control is private, no-store because the query can include a user wallet. Dev and KOL marks are the same for every viewer and are cached on the server for 60 seconds per token and range; only the caller wallets are read per request. Candles still come from /api/tokens/ohlcv.
GET /api/tokens/{address}/market
A token’s market numbers and holder count from its pool_market_data row, mapped as the token lists map them. The token page header polls it every 60 seconds.
Authentication: Public
Path Parameters
Query Parameters
Response: market and holders are null when the row is missing, has no positive market cap, or is older than 20 minutes (the lists keep a 3 hour window).
Cached at the CDN for 30 seconds (s-maxage=30, stale-while-revalidate=30). Invalid input returns 400 and a database error 500, neither cached. No Codex call.
GET /api/tokens/fetch-deployed-by-fid
Returns tokens deployed by a Farcaster FID.
Authentication: Public
Query Parameters
Response: Paginated token list.
GET /api/tokens/fetch-deployed-by-address
Returns the tokens a wallet deployed through the v2, v3 and v3.1 factories on Base (read on chain), and the tokens it is the admin of.
Authentication: Public
Query Parameters
Response: Paginated token list. Tokens are no longer looked up by the Farcaster account of the wallet.
GET /api/tokens/fetch-by-pool-address
Returns token data for a single pool address.
Authentication: Public
Query Parameters
Response: Token object or undefined.
POST /api/tokens/fetch-by-pool-addresses
Returns token data for multiple pool addresses (max 100).
Authentication: Public
Body Parameters
Response: Map of lowercase pool addresses to token objects.
POST /api/tokens/fetch-by-addresses
Returns clanker tokens for up to 100 (token address, chain) pairs, e.g. the tokens a wallet holds.
Authentication: Public
Body Parameters
Response: Array of matching token objects (with DB market data); addresses that are not clankers on that chain are left out.
GET /api/tokens/search
Deprecated: Use GET /api/tokens instead.Search tokens by query or FIDs. Authentication: Public Query Parameters
Response: Paginated token list (fixed limit of 5).
GET /api/tokens/estimate-rewards-by-pool-address
Deprecated: This endpoint is deprecated. Use the clanker-sdk availableRewards() method instead.Estimate uncollected rewards for a pool. Authentication: Public
availableRewards() reads the v4 FeeLocker. For a V5 token, GET /api/creator-earnings/{tokenAddress} gives the unclaimed FeeEscrow balances, and the token admin page claims them.
GET /api/tokens/{address}/announcements
The creator announcements of a V5 token, newest first, from the V5 announcement registry (the factory’s announcementRegistry()). Other token types return an empty list.
Authentication: Public
Path Parameters
Response: Up to 50 announcements.
timestamp is the block time in seconds. uri is the link that the creator posted, and can be empty.
Cached for 1 minute. A 502 means the registry logs could not be read: the read stops after 22 seconds, and a history of more than 2,000 log ranges (about 15 months on Base) is not read. The server keeps a failed read for up to 1 minute (a too-long history for hours), so retry after the Retry-After time. Rate limited per IP. Over a limit: 429 withRetry-After(seconds) and{ "error", "code": "rate_limited", "retryAfter" }.