Etherscan API
Ethereum blockchain explorer and API
Live Technical Metrics
Pre-calculated · updated every 20 min| Uptime Status | ⬜ Unknown — not yet probed |
|---|---|
| Server Latency | N/A |
| Hosting Server | Not disclosed |
| Content-Type | Not disclosed |
| Cache-Control | Not set |
| CORS Support | ✅ Enabled — safe for browser fetch() |
| Authentication | ⚠️ Requires apiKey — obtain credentials from the official documentation |
| Category | Cryptocurrency |
- Endpoint:
- https://etherscan.io/apis
Quick Integration Code
⚠️ Auth: apiKey// ⚠️ This API requires apiKey authentication
// Add your credentials to the headers below
fetch("https://etherscan.io/apis")
.then(response => {
if (!response.ok) throw new Error(`HTTP ${response.status}`);
return response.json();
})
.then(data => console.log(data))
.catch(error => console.error("Request failed:", error));
# ⚠️ This API requires apiKey authentication
# Add your credentials to the headers dict below
import requests
url = "https://etherscan.io/apis"
headers = {
"Accept": "application/json",
# "Authorization": "Bearer YOUR_TOKEN_HERE",
}
response = requests.get(url, headers=headers, timeout=10)
response.raise_for_status()
data = response.json()
print(data)
curl -X GET "https://etherscan.io/apis" \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-H "Accept: application/json" \
-H "User-Agent: MyApp/1.0" \
--max-time 10 \
--silent | python3 -m json.tool
Sample JSON Response — Cryptocurrency
Cryptocurrency{
"id": "bitcoin",
"symbol": "BTC",
"name": "Bitcoin",
"current_price": 67432.1,
"market_cap": 1328000000000,
"total_volume": 28400000000,
"price_change_24h": 1203.45,
"price_change_percentage_24h": 1.82,
"circulating_supply": 19600000,
"last_updated": "2025-01-15T18:22:01Z"
}