Free Bitcoin Price Widget
Add a live BTC price box to your blog or website. It shows the Bitcoin price in Indian rupees and US dollars with the 24-hour change, refreshed every 60 seconds from CoinGecko.
Live preview
Embed code
Paste this into your page's HTML where you want the widget to appear.
<div class="btcmedia-widget"><a href="https://btcmedia.news">Powered by BtcMedia</a></div>
<script src="https://btcmedia.news/widget.js" async></script> BTC in INR ticker (one line)
A slim strip for headers, sidebars and footers: ₿ BTC, the rupee price, 24h change and the dollar price, refreshed every 60 seconds.
<div class="btcmedia-widget" data-style="ticker"><a href="https://btcmedia.news/bitcoin-price-today-inr/">Bitcoin price in INR by BtcMedia</a></div>
<script src="https://btcmedia.news/widget.js" async></script> Add it to WordPress
- In a post or page: add a Custom HTML block and paste the code (box or ticker).
- In a sidebar or footer: go to Appearance → Widgets (or the Site Editor in block themes), add a Custom HTML block to the area, paste, and save.
- WordPress.com sites: scripts in Custom HTML need a paid plan with hosting features activated. On the free plan WordPress.com removes the script, so only the text link shows (WordPress.com support). Self-hosted WordPress has no such limit for administrators.
- Caching or optimisation plugins that delay JavaScript are fine; the widget simply loads a moment later.
Add it to Blogger
- Sidebar or header: open Layout, click Add a Gadget in the area you want, choose HTML/JavaScript, paste the code and save.
- Inside a post: switch the post editor to HTML view, paste the code where you want it, and publish.
Details
- About 6 KB of JavaScript, loaded asynchronously so it won't slow your page.
- No tracking, no cookies and no analytics. It only requests prices: from the BtcMedia price feed (CoinGecko data, refreshed every 5 minutes), falling back to CoinGecko's public API.
- Works on mobile: 220–300 px wide. Add several
btcmedia-widgetdivs to show more than one. - Any coin: add
data-coin="ethereum" data-symbol="ETH" data-name="Ethereum"(CoinGecko id) to the div. Every coin price page has ready-made code. - Free to use. Please keep the "Powered by BtcMedia" link inside the div; the script moves it into the widget footer. Embeds using the older empty-div code keep working. Adding
rel="nofollow"to the link is fine.
Need an iframe instead of a script? See all embed codes.
Want more? See the Bitcoin price in INR page or our crypto tools.