Authentication

Generate a Birdeye API key in BDS and send it in the X-API-KEY header on every request.

Log in to see your API keys
API KeyLabelLast Used

Authentication

Birdeye APIs use API-key authentication.

Get your API key

  1. Sign in at bds.birdeye.so
  2. Open the Security tab in the dashboard
  3. Click Generate key
  4. Copy the key and store it securely

Send the key in request headers

Include your key in the X-API-KEY header on every request.

curl --request GET \
  --url 'https://public-api.birdeye.so/defi/price?address=So11111111111111111111111111111111111111112' \
  --header 'X-API-KEY: YOUR_API_KEY' \
  --header 'x-chain: solana'

JavaScript

const response = await fetch(
  "https://public-api.birdeye.so/defi/price?address=So11111111111111111111111111111111111111112",
  {
    headers: {
      "X-API-KEY": process.env.BIRDEYE_API_KEY,
      "x-chain": "solana",
    },
  }
);

const data = await response.json();

Python

import os
import requests

response = requests.get(
    "https://public-api.birdeye.so/defi/price",
    params={"address": "So11111111111111111111111111111111111111112"},
    headers={
        "X-API-KEY": os.environ["BIRDEYE_API_KEY"],
        "x-chain": "solana",
    },
)

print(response.json())

Notes

  • Generate keys from the Security page in BDS.
  • Rotate keys if they are exposed or shared accidentally.
  • Use whitelist and blacklist controls in the dashboard for tighter production security.
  • Some endpoints also require headers such as x-chain or x-perp.
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json

Did this page help you?