Cryptocurrency Price API
Real-time cryptocurrency prices, market cap, and trading volume data
Endpoint
GET
/api/v1/crypto-price
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol |
string | Required | Cryptocurrency symbol (BTC, ETH, etc) |
Code Examples
cURL
curl -X GET "/api/v1/crypto-price" -H "Content-Type: application/json"JavaScript
fetch("/api/v1/crypto-price")
.then(function(r){return r.json()})
.then(function(d){console.log(d)});Python
import requests
r = requests.get("/api/v1/crypto-price")
print(r.json())PHP
<?php
$d = file_get_contents("/api/v1/crypto-price");
print_r(json_decode($d, true));Example Response
{
"status": "success",
"data": {
"symbol": "BTC",
"price": 65432.1,
"market_cap": 1280000000000,
"change_24h": 2.5
}
}