Price - Historical
curl --request GET \
--url https://public-api.birdeye.so/defi/history_price \
--header 'X-API-KEY: <api-key>'import requests
url = "https://public-api.birdeye.so/defi/history_price"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://public-api.birdeye.so/defi/history_price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"data": {
"isScaledUiToken": false,
"items": [
{
"unixTime": 1726670700,
"value": 127.97284640184616
},
{
"unixTime": 1726671600,
"value": 128.04188346328968
},
{
"unixTime": 1726672500,
"value": 127.40223856228901
}
]
}
}
Price & OHLCV
Price - Historical
Retrieve historical price line chart of a specified token.
GET
/
defi
/
history_price
Price - Historical
curl --request GET \
--url https://public-api.birdeye.so/defi/history_price \
--header 'X-API-KEY: <api-key>'import requests
url = "https://public-api.birdeye.so/defi/history_price"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://public-api.birdeye.so/defi/history_price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"data": {
"isScaledUiToken": false,
"items": [
{
"unixTime": 1726670700,
"value": 127.97284640184616
},
{
"unixTime": 1726671600,
"value": 128.04188346328968
},
{
"unixTime": 1726672500,
"value": 127.40223856228901
}
]
}
}
- Usage Note
- Accessibility
- Chain Supported
Historical price series for one token or pair.
- Set
address_typetotokenorpairdepending on what the address represents. - Use
time_from,time_to, andtypetogether to request a bounded series at the granularity you need. - Returned prices are best suited for line charts, checkpoint analysis, and broad time-series workflows rather than candle-level OHLC studies.
- Choose OHLCV endpoints instead when you need open/high/low/close/volume per bucket.
- Standard
- Lite
- Starter
- Premium
- Business
- Enterprise
All chains ⛓️ ✨
Compute Unit ⚙️
Compute Unit ⚙️
- This endpoint consumes
35 CUper request.
Use Cases 💡
Use Cases 💡
- Retrieves historical USD price series for a token or pair across a selected time window.
- Great for charting, research, and reconstructing token or pair price behavior across a past period.
- Can be used to track performance before and after events such as listings, unlocks, liquidity changes, or major announcements.
- Helpful for portfolio reconstruction, ROI calculators, trade-performance tools, and benchmark studies.
- Add historical context to trade, holder, and smart-money analysis.
How to Use 🛠️
How to Use 🛠️
- Set
x-chainfor the target network. - Pass the target
addressand chooseaddress_type=tokenoraddress_type=pair. - Define the time window with
time_fromandtime_to. - Choose
typebased on the granularity needed for your chart or analysis window.
Best Practices ✅
Best Practices ✅
- Use wider intervals for long backfills and finer intervals only when the question really needs them.
- Align chart labels and downstream joins to the same bucket size you requested here.
- When you need an exact checkpoint instead of a series, switch to
Price - Historical by unix time.
Authorizations
API key for authentication
Headers
A chain name listed in supported networks.
Available options:
solana, ethereum, bsc, base, robinhood, sui, mantle, hyperevm, arbitrum, avalanche, optimism, polygon, zksync, monad, aptos, fogo, megaeth Query Parameters
The address of the token contract.
Available options:
token, pair OHLCV time frame.
Available options:
1m, 3m, 5m, 15m, 30m, 1H, 2H, 4H, 6H, 8H, 12H, 1D, 3D, 1W, 1M Specify the start time using unix timestamps in seconds
Required range:
0 <= x <= 10000000000Specify the end time using unix timestamps in seconds
Required range:
0 <= x <= 10000000000Indicate whether to use the scaled amount for scaled ui amount tokens. Only support solana
Available options:
raw, scaled, both Was this page helpful?

