Free web service to get currency prices
Checkout this website 👈🏻
// request
fetch('https://currency.babakcode.com/api/v2/crypto/all/USD' ,{
method: "GET",
headers: {
"Content-Type": "application/json",
"Accept": "application/json",
"api-key": "YOUR-API-KEY",
}
})
.then(res => res.json())
.then(json => console.log(json))
Response:
[
{
"name": "Bitcoin",
"price": 95975.84,
"priceStr": "$95,975.84",
"logo": "https://currency.babakcode.com/api/v1/images/crypto/bitcoin_btc.png",
"symbol": "BTC",
"timestamp": 1733269152488
},
{
"name": "Ethereum",
"price": 3623.2,
"priceStr": "$3,623.20",
"logo": "https://currency.babakcode.com/api/v1/images/crypto/ethereum_eth.png",
"symbol": "ETH",
"timestamp": 1733269152938
}
]
USD
, United State Dollar
// request
fetch('https://currency.babakcode.com/api/v2/currency/all/USD' ,{
method: "GET",
headers: {
"Content-Type": "application/json",
"Accept": "application/json",
"api-key": "YOUR-API-KEY",
}
})
.then(res => res.json())
.then(json => console.log(json))
Response:
[
{
"priceStr": "$1.00",
"price": 1,
"currency": "USD",
"name": "Dollar",
"svg": "https://currency.babakcode.com/api/v1/images/flags/US.svg",
"timestamp": 1733267190311
},
{
"priceStr": "$1.0547858499",
"price": 1.0547858499191223,
"currency": "EUR",
"name": "Euro",
"svg": "https://currency.babakcode.com/api/v1/images/flags/EU.svg",
"timestamp": 1733267190356
}
]
API docs: Documentation 👈🏻
The following project utilizes this API to provide real-time cryptocurrency price updates:
A Windows application built with Flutter that displays live cryptocurrency prices.
If you have built a project using this API, feel free to submit a pull request to add it here!
I hope you enjoy it 🤍