Skip to content

babakcode/currency.prices.free

Repository files navigation

Currency Prices Free

Free web service to get currency prices

Checkout this website 👈🏻

Screenshot 2025-01-15 185120

Cryptocurrencies

// 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
  }
]

Fiat Currencies

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 👈🏻

Screenshot 2024-07-29 010842

Projects Using This API

The following project utilizes this API to provide real-time cryptocurrency price updates:

A Windows application built with Flutter that displays live cryptocurrency prices.

NeoCrypto Screenshot

🔗 Download NeoCrypto

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 🤍