CryptoHubCoin API
Access high-quality, aggregated cryptocurrency data and custom tokens for your decentralized apps. Our REST API gives you everything you need — coin metadata, live prices, market caps, and historical charts.
Authentication
All endpoints require a valid API key passed via the x-api-key header. Keys are tied to your account and can be rotated from the dashboard.
Example Request
# Pass your key in the x-api-key header curl https://api.cryptohubcoin.com/v1/coins \ -H "x-api-key: ch_live_YOUR_KEY_HERE"
const res = await fetch('https://api.cryptohubcoin.com/v1/coins', { headers: { 'x-api-key': 'ch_live_YOUR_KEY_HERE' } }); const data = await res.json();
import requests res = requests.get( "https://api.cryptohubcoin.com/v1/coins", headers={"x-api-key": "ch_live_YOUR_KEY_HERE"} ) data = res.json()
Rate Limits
To ensure fair usage, the API enforces per-key rate limits. Limits depend on your plan and reset every minute.
Rate Limit Headers
Every response includes headers that tell you where you stand:
X-RateLimit-Limit: 600 X-RateLimit-Remaining: 587 X-RateLimit-Reset: 1715432400
Errors
The API uses standard HTTP status codes. Error responses always include a code and message for debugging.
Error response shape
{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "The provided API key is invalid or has been revoked."
}
}
List all coins
Returns every cryptocurrency tracked by CryptoHubCoin, ordered by market cap. Supports pagination for large result sets.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of results per page. Default 50, max 250. |
page | integer | Page number for pagination. Starts at 1. |
network | string | Filter by network (e.g. BSC, ETH, SOL). |
Example Response
{
"success": true,
"count": 3,
"data": [
{
"id": "ethereum",
"symbol": "ETH",
"name": "Ethereum",
"network": "ETH",
"price_usd": 3842.17,
"market_cap": 462100000000
},
{
"id": "solana",
"symbol": "SOL",
"name": "Solana",
"network": "SOL",
"price_usd": 178.42,
"market_cap": 82400000000
}
]
}
Get coin by ID
Fetch full metadata for a single coin including description, official links, logo, and current market stats.
| Parameter | Type | Description |
|---|---|---|
idRequired | string | The unique coin slug (e.g. ethereum, solana). |
Example Response
{
"success": true,
"data": {
"id": "ethereum",
"symbol": "ETH",
"name": "Ethereum",
"logo_url": "https://cdn.cryptohubcoin.com/logos/eth.png",
"description": "Ethereum is a decentralized smart-contract platform…",
"website": "https://ethereum.org",
"price_usd": 3842.17
}
}
Market data
Live market statistics for a coin: price, 24h change, volume, circulating supply, and trading pairs.
| Parameter | Type | Description |
|---|---|---|
idRequired | string | The coin slug to fetch market data for. |
currency | string | Quote currency (e.g. usd, eur, btc). Default usd. |
Example Response
{
"success": true,
"data": {
"price": 3842.17,
"change_24h": 2.41,
"volume_24h": 18420000000,
"market_cap": 462100000000,
"circulating_supply": 120280000
}
}
Historical prices
Time-series price data for any coin across multiple intervals. Perfect for charts and backtesting.
| Parameter | Type | Description |
|---|---|---|
idRequired | string | The coin slug to fetch history for. |
interval | string | One of 1h, 1d, 1w, 1m. Default 1d. |
from | timestamp | Unix timestamp for the start of the range. |
to | timestamp | Unix timestamp for the end of the range. |
Example Response
{
"success": true,
"interval": "1d",
"data": [
[1715000000, 3801.22],
[1715086400, 3827.91],
[1715172800, 3842.17]
]
}