← Protocols
Birdeye
Indexing / Data·Solana · Ethereum · BSC · Arbitrum · Optimism · Polygon · Base · Avalanche · zkSync · Sui · Monad

Birdeye

01Description

Multi-chain market data and portfolio API with Solana-first coverage. Provides token prices, OHLCV, trending tokens, wallet PnL, and trader analytics over REST and WebSocket.

02Best for
  • 01Solana token prices
  • 02memecoin discovery feeds
  • 03wallet PnL/portfolio APIs
  • 04OHLCV charts
  • 05trending tokens
04Environment variables
VariableScopeDescription
BIRDEYE_API_KEYServerBirdeye API key from the bds.birdeye.so dashboard. Required for both Public and Premium endpoints; sent as the `X-API-KEY` header.
05Prompt snippet
Use Birdeye REST endpoints rooted at `https://public-api.birdeye.so` with `X-API-KEY: $BIRDEYE_API_KEY` and `x-chain: solana` (or another supported chain). Common reads: `GET /defi/price?address={mint}`, `GET /defi/multi_price`, `GET /defi/ohlcv`, `GET /defi/token_overview`, `GET /defi/v3/token/trending`, and wallet endpoints like `GET /v1/wallet/token_list?wallet={addr}` and `/v1/wallet/tx_list`. For live updates open a WebSocket at `wss://public-api.birdeye.so/socket/{chain}?x-api-key=$BIRDEYE_API_KEY` (origin must be set) and subscribe to `SUBSCRIBE_PRICE` / `SUBSCRIBE_TXS`. Cache responses server-side and never ship the key to the browser.
06Gotchas
  • API key must stay server-side — Birdeye keys carry billable quotas and are easily scraped from a browser bundle.
  • Prices for very low-liquidity memecoin pairs can flicker or briefly show stale values; sanity-check against the underlying pool reserves before quoting users.
  • WebSocket connections require the correct `Origin` header and an `x-api-key` query param; many client libs drop one or the other and silently fail to receive ticks.
  • Rate limits and accessible endpoints differ between Standard, Starter, Premium, and Business plans — code paths that work in dev may 402/429 in production.
  • Chain coverage is uneven — Solana has the deepest data; some EVM chains lack OHLCV or trending feeds, so feature-detect before relying on a route.
07Alternatives