TokensAPI

Overview

What the Tokens API v1 covers, how it is organised, and where to start.

The Tokens API v1 is a JSON HTTP API for registered Solana assets: canonical asset groups such as solana, usd or tesla, the Solana mints that represent them (their variants), and the market, chart, risk and news data around them.

  • Base URL: https://api.tokens.xyz/v1
  • Auth: an API key in the x-api-key header. See Authentication.
  • Format: JSON in, JSON out. POST bodies are application/json.

Call Tokens servers directly. You do not deploy your own copy of the API; if you want a proxy for key management or caching, your proxy calls https://api.tokens.xyz/v1/... upstream.

What v1 does

  • Discover assets. Search by text, browse curated lists, or read the trending set.
  • Resolve any reference. Map an assetId, alias or Solana mint to its registered asset and variant, and use the assetId to group balances that represent the same thing.
  • Read one asset in depth. Identity, aggregate stats, the primary variant, every variant grouped by kind, and optional include blocks for profile, risk, OHLCV and markets in one call.
  • Market primitives. Per-mint market snapshots (single and batch), DEX markets, exchange tickers.
  • Charts. Per-mint OHLCV candles and a canonical price chart per asset.
  • Risk. A quick 0 to 100 market-based score per mint, detailed scoring inputs, operator advisories, and stablecoin peg and structural health.
  • News. A filterable feed of market news and @tokens posts, global or per token.

v1 serves registered assets only. A mint that is not a variant of a registered asset returns 404 with details.code: "asset_not_registered" on every asset route; the batch endpoints keep a null row for it instead. To track other tokens, use Token Lists in API v2. See Assets and variants.

Endpoints

All routes require x-api-key and the assets:read scope unless noted.

MethodPathWhat it doesReference
GET/v1/healthLiveness check, no key neededHealth
GET/v1/assets/searchSearch registered assetsSearch and resolve
GET/v1/assets/resolveMint, alias or id to registered assetSearch and resolve
GET/v1/assets/curatedCurated asset lists with statsLists and trending
GET/v1/assets/curated/listsCatalog of curated listsLists and trending
GET/v1/assets/trendingTrending Solana mintsLists and trending
POST/v1/assets/market-snapshotsBatch market snapshots, up to 250 mintsBatch snapshots
GET/v1/assets/variant-marketsBatch variant market snapshots, up to 50 mintsBatch snapshots
GET/v1/assets/risk-summaryQuick risk score for a mintRisk
GET/v1/assets/{assetId}Asset detail with optional includesAsset detail
GET/v1/assets/{assetId}/variantsThe asset's variants with market dataVariants and markets
GET/v1/assets/{assetId}/variant-marketMarket snapshot for one variantVariants and markets
GET/v1/assets/{assetId}/variant-top-marketsTop DEX market per variantVariants and markets
GET/v1/assets/{assetId}/marketsDEX markets for a mintVariants and markets
GET/v1/assets/{assetId}/tickersExchange tickersVariants and markets
GET/v1/assets/{assetId}/ohlcvOHLCV candles for a mintCharts
GET/v1/assets/{assetId}/price-chartCanonical price candlesCharts
GET/v1/assets/{assetId}/risk-summaryRisk score plus stablecoin healthRisk
GET/v1/assets/{assetId}/risk-detailsRisk score with every scoring inputRisk
GET/v1/assets/{assetId}/profileProfile, links and global statsProfile
GET/v1/assets/{assetId}/descriptionDescription textProfile
GET/v1/assets/{assetId}/launchesCoins launched against the asset's mintsProfile
GET/v1/news/feedMarket news and @tokens postsNews

Where to start

  1. Quickstart: set up a key and make your first calls.
  2. Assets and variants: the two ids you will use everywhere.
  3. Workflows: how the endpoints chain together for search pages, wallets and watchlists.
  4. Errors and limits: the error envelope and how to retry.

If you need tokens outside the registered set, or assets on other chains, use API v2.