Comprehensive guides and API references to help you get started with our cryptocurrency data platform.
Welcome to CryptoData API. This guide will help you get started with our service in minutes.
curl -H "X-API-Key: your_api_key_here" \
https://api.cryptodata.com/v1/exchangesAll API requests require your API key to be included in the request headers.
X-API-Key: your_api_key_here?api_key=your_api_key_here/v1/exchangesGet list of all supported exchanges
{
"exchanges": [
{"id": "binance", "name": "Binance"},
{"id": "okx", "name": "OKX"},
{"id": "bybit", "name": "Bybit"}
]
}/v1/trades/:exchange/:pairGet trade history for specific trading pair
/v1/orderbook/:exchange/:pairGet order book snapshot
All API responses use JSON format by default, easy to parse and integrate.
Content-Type: application/jsonDownload historical data in CSV format for use in Excel and data analysis tools.
format=csvEfficient columnar format ideal for large-scale data analysis and ML.
format=parquetimport requests
API_KEY = "your_api_key_here"
BASE_URL = "https://api.cryptodata.com/v1"
headers = {"X-API-Key": API_KEY}
# Get exchanges
response = requests.get(f"{BASE_URL}/exchanges", headers=headers)
exchanges = response.json()
# Get trades for BTC-USDT on Binance
trades = requests.get(
f"{BASE_URL}/trades/binance/BTC-USDT",
headers=headers,
params={"limit": 100}
).json()
print(f"Found {len(trades)} trades")const axios = require('axios');
const API_KEY = 'your_api_key_here';
const BASE_URL = 'https://api.cryptodata.com/v1';
const headers = { 'X-API-Key': API_KEY };
// Get exchanges
const getExchanges = async () => {
const response = await axios.get(`${BASE_URL}/exchanges`, { headers });
return response.data;
};
// Get order book
const getOrderBook = async (exchange, pair) => {
const response = await axios.get(
`${BASE_URL}/orderbook/${exchange}/${pair}`,
{ headers }
);
return response.data;
};
getExchanges().then(data => console.log(data));# Get exchanges
curl -H "X-API-Key: your_api_key_here" \
https://api.cryptodata.com/v1/exchanges# Get trades with pagination
curl -H "X-API-Key: your_api_key_here" \
"https://api.cryptodata.com/v1/trades/binance/BTC-USDT?limit=100"