Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

Bitcoin API

REST API to get the latest Bitcoin price in USD with 24-hour market data — daily high, low, volume, and price change. One endpoint. Real-time data.

Features

  • Get current Bitcoin price in USD with a single API call
  • 24-hour market data: daily high, low, volume, price change
  • No parameters required — just call the endpoint
  • 100 requests/month on free tier
  • 99.99% uptime SLA
  • Example Response:
{
"price_usd": "68849.12000000",
"daily_high_usd": "72250.87000000",
"daily_low_usd": "68452.45000000",
"daily_volume": "14.47241000",
"daily_price_change_usd": "-2229.41000000",
"daily_price_change_percent": "-3.137",
"updated_at": "2026-02-09T11:51:59+00:00"
}

Get API Key

Create an account at omkar.cloud to get your API key, and use it in requests. 100 requests are free every month.

Quick Start

curl -X GET "https://bitcoin-api.omkar.cloud/bitcoin-price" \
-H "API-Key: YOUR_API_KEY"
{
"price_usd": "68849.12000000",
"daily_high_usd": "72250.87000000",
"daily_low_usd": "68452.45000000",
"daily_volume": "14.47241000",
"daily_price_change_usd": "-2229.41000000",
"daily_price_change_percent": "-3.137",
"updated_at": "2026-02-09T11:51:59+00:00"
}

Installation

Python

pip install requests
importrequestsresponse=requests.get(
"https://bitcoin-api.omkar.cloud/bitcoin-price",
headers={"API-Key": "YOUR_API_KEY"}
)
data=response.json()
print(f"Bitcoin Price: ${data['price_usd']}")

Node.js

npm install axios
importaxiosfrom"axios";constresponse=awaitaxios.get("https://bitcoin-api.omkar.cloud/bitcoin-price",{headers: {"API-Key": "YOUR_API_KEY"}});console.log(`Bitcoin Price: $${response.data.price_usd}`);

API Reference

Endpoint

GET https://bitcoin-api.omkar.cloud/bitcoin-price

Headers

HeaderRequiredDescription
API-KeyYesAPI key from omkar.cloud/api-key

Parameters

None. Just call the endpoint with your API key.

Response Fields

FieldTypeDescription
price_usdstringCurrent Bitcoin price in USD
daily_high_usdstringHighest price in the last 24 hours
daily_low_usdstringLowest price in the last 24 hours
daily_volumestring24-hour trading volume
daily_price_change_usdstringPrice change in USD over the last 24 hours
daily_price_change_percentstringPrice change as a percentage over the last 24 hours
updated_atstringWhen the data was last updated (ISO 8601)

Examples

Get Bitcoin price for a trading bot

importrequestsresponse=requests.get(
"https://bitcoin-api.omkar.cloud/bitcoin-price",
headers={"API-Key": "YOUR_API_KEY"}
)
data=response.json()
price=float(data["price_usd"])
ifprice<70000:
print(f"Buy signal: Bitcoin is at ${price:,.2f}")
else:
print(f"Hold: Bitcoin is at ${price:,.2f}")

Track 24-hour price movement

importrequestsresponse=requests.get(
"https://bitcoin-api.omkar.cloud/bitcoin-price",
headers={"API-Key": "YOUR_API_KEY"}
)
data=response.json()
change=float(data["daily_price_change_percent"])
print(f"24h Change: {change}% | High: ${data['daily_high_usd']} | Low: ${data['daily_low_usd']}")

Error Handling

response=requests.get(
"https://bitcoin-api.omkar.cloud/bitcoin-price",
headers={"API-Key": "YOUR_API_KEY"}
)
ifresponse.status_code==200:
data=response.json()
elifresponse.status_code==401:
# Invalid API keypasselifresponse.status_code==429:
# Rate limit exceededpass

Rate Limits

PlanPriceRequests/Month
Free$0100
Starter$163,000
Grow$4815,000
Scale$14875,000

Questions? We have answers.

Reach out anytime. We will solve your query within 1 working day.

Contact Us on WhatsApp about Bitcoin API

Contact Us on Email about Bitcoin API

Releases

Sponsor this project

Packages

Contributors