jordimetil (OP)
Newbie
Offline
Activity: 19
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 02, 2024, 08:47:12 PM |
|
i'll make this clear and short, i wanna know which is most comprehensive API for Bitcoin, made for developing?
|
|
|
|
BitMaxz
Legendary
Offline
Activity: 3304
Merit: 3038
BTC price road to $80k
|
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node. But if you still insist on looking for them I have a list of a good source for Bitcoin development that I think you can use for developing check this link below. - https://github.com/igorbarinov/awesome-bitcoin
|
|
|
|
jordimetil (OP)
Newbie
Offline
Activity: 19
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 02, 2024, 10:29:34 PM |
|
Thanks a lot ![Cheesy](https://bitcointalk.org/Smileys/default/cheesy.gif)
|
|
|
|
ABCbits
Legendary
Offline
Activity: 2926
Merit: 7623
Crypto Swap Exchange
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 03, 2024, 10:58:00 AM Last edit: June 07, 2024, 08:16:39 AM by ABCbits |
|
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node.
FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io getblock.io) which offer Bitcoin Core API. At a glance, the list looks decent although it doesn't contain any service which designed to accept Bitcoin payment (such as Coinbace Commerce).
|
|
|
|
DaveF
Legendary
Offline
Activity: 3528
Merit: 6389
Crypto Swap Exchange
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 03, 2024, 11:09:28 AM |
|
More of a comment to the OP but it also matters what you are doing with it.
You need the best car..... Are you doing around town deliverers with it? Are you doing long road trips with it? Do you just need it to go a few miles to and from work? Do you need to have your large family in it comfortably? and so on.
The answer to what car depends on it's use.
There are a bunch of APIs that work well, but there are some better then others for certain tasks.
-Dave
|
|
|
|
jordimetil (OP)
Newbie
Offline
Activity: 19
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 04, 2024, 12:09:10 AM |
|
More of a comment to the OP but it also matters what you are doing with it.
You need the best car..... Are you doing around town deliverers with it? Are you doing long road trips with it? Do you just need it to go a few miles to and from work? Do you need to have your large family in it comfortably? and so on.
The answer to what car depends on it's use.
There are a bunch of APIs that work well, but there are some better then others for certain tasks.
-Dave
i understand your point, sorry i didn't show my intentions more clear. anyways, i want best BTC API to make live bitcoin price tracker for my website.
|
|
|
|
|
aliveNFT
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 316
Merit: 151
aliveNFT.github.io | Track your love.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 04, 2024, 02:40:55 AM |
|
~
i understand your point, sorry i didn't show my intentions more clear. anyways, i want best BTC API to make live bitcoin price tracker for my website. If you just want free api which allows you display crypto prices, use coingecko's free api (but there are some limitations) you can also pay for better one. ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.ibb.co%2FP5XXZvv%2Fimage.png&t=663&c=ALyAlCY7fAeqeQ) ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.ibb.co%2FSy0Ms41%2Fimage.png&t=663&c=Jp5wlpMu9bQJ3g) here is code jsimport React, { useEffect, useState } from 'react'; import './CryptoPriceTracker.css'; import Modal from 'react-modal';
const CryptoPriceTracker = () => { const [prices, setPrices] = useState([]); const [selectedCoin, setSelectedCoin] = useState(null); const [search, setSearch] = useState('');
useEffect(() => { fetch('https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd') .then(response => response.json()) .then(data => setPrices(data)) .catch(error => console.error('Error fetching prices:', error)); }, []);
const handleSelectCoin = (coin) => { setSelectedCoin(coin); };
const handleSearchChange = (event) => { setSearch(event.target.value); };
const closeModal = () => { setSelectedCoin(null); };
const filteredCoins = prices.filter((coin) => coin.name.toLowerCase().includes(search.toLowerCase()) );
return ( <div className={`crypto-price-tracker-container ${selectedCoin ? 'blurred' : ''}`}> <h1 className="text-hackerGreen font-pixel">Crypto Price Tracker</h1> <input type="text" className="search-input" placeholder="Search for a cryptocurrency" value={search} onChange={handleSearchChange} /> <ul className="coin-list"> {filteredCoins.map((coin) => ( <li key={coin.id} className="coin-item" onClick={() => handleSelectCoin(coin)} > <img src={coin.image} alt={coin.name} className="coin-image" /> <span>{coin.name}</span> </li> ))} </ul> {selectedCoin && ( <Modal isOpen={!!selectedCoin} onRequestClose={closeModal} contentLabel="Crypto Info" className="crypto-modal" overlayClassName="crypto-modal-overlay" > <button onClick={closeModal} className="close-button">X</button> <h2>{selectedCoin.name}</h2> <p>Symbol: {selectedCoin.symbol.toUpperCase()}</p> <p>Current Price: ${selectedCoin.current_price.toFixed(2)}</p> <p>24h Change: {selectedCoin.price_change_percentage_24h.toFixed(2)}%</p> <p>Market Cap: ${selectedCoin.market_cap.toLocaleString()}</p> </Modal> )} </div> ); };
export default CryptoPriceTracker;
css.blurred { filter: blur(5px); transition: filter 0.3s ease; }
.search-input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #39ff14; border-radius: 5px; background-color: rgba(0, 0, 0, 0.9); color: #39ff14; }
.coin-list { list-style-type: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; /* Add some space between the boxes */ }
.coin-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; margin: 10px; border: 1px solid #39ff14; border-radius: 10px; background-color: rgba(0, 0, 0, 0.9); box-shadow: 0 0 10px #39ff14; cursor: pointer; width: 100px; height: 130px; transition: transform 0.3s; text-align: center; overflow: hidden; }
.coin-item span { font-size: 0.7rem; /* Increase font size */ text-align: center; margin-top: 5px; white-space: nowrap; /* Prevents text from wrapping */ overflow: hidden; /* Hides overflow text */ text-overflow: ellipsis; /* Adds ellipsis for overflow text */ width: 80px; /* Ensures the ellipsis is shown within the box */ }
.coin-item.selected, .coin-item:hover { transform: scale(1.1); }
.coin-image { width: 50px; height: 50px; }
.crypto-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.9); border: 2px solid #39ff14; border-radius: 10px; padding: 20px; box-shadow: 0 0 20px #39ff14; width: 90%; max-width: 500px; box-sizing: border-box; text-align: left; }
.crypto-modal-overlay { background-color: rgba(0, 0, 0, 0.75); }
.close-button { position: absolute; top: 10px; right: 10px; background: none; border: none; color: #39ff14; font-size: 1.5rem; cursor: pointer; }
.crypto-modal h2 { margin: 0 0 10px; font-size: 1.5rem; }
.crypto-modal p { margin: 5px 0; }
/* Responsive adjustments */ @media (max-width: 768px) { .coin-item { width: 90px; height: 120px; }
.coin-item span { font-size: 0.65rem; width: 70px; }
.coin-image { width: 40px; height: 40px; } }
This code requires react to install
|
|
|
|
aliveNFT
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 316
Merit: 151
aliveNFT.github.io | Track your love.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 04, 2024, 05:22:50 AM |
|
upd You can also make as chart, this time i used coincap free api. ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.ibb.co%2FzHZkCt5%2Fimage.png&t=663&c=BzY6AjauS2iS-Q) requires libraries to display that chart also.
|
|
|
|
NotATether
Legendary
Offline
Activity: 1652
Merit: 6937
In memory of o_e_l_e_o
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 04, 2024, 08:24:17 AM |
|
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node.
FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API. Those online providers of RPC APIs have a serious limitation. Because they only allow so many (lat's say X) amount of calls a day, it means you cannot use their APIs for building a transaction database which would otherwise let you work offline, because that requires literally millions of RPC calls which are way above what any provider is willing to allow.
|
. .BLACKJACK ♠ FUN. | | | ███▄██████ ██████████████▀ ████████████ █████████████████ ████████████████▄▄ ░█████████████▀░▀▀ ██████████████████ ░██████████████ █████████████████▄ ░██████████████▀ ████████████ ███████████████░██ ██████████ | | CRYPTO CASINO & SPORTS BETTING | | │ | | │ | ▄▄███████▄▄ ▄███████████████▄ ███████████████████ █████████████████████ ███████████████████████ █████████████████████████ █████████████████████████ █████████████████████████ ███████████████████████ █████████████████████ ███████████████████ ▀███████████████▀ ███████████████████ | | .
|
|
|
|
DaveF
Legendary
Offline
Activity: 3528
Merit: 6389
Crypto Swap Exchange
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 04, 2024, 01:39:45 PM |
|
Agree with @aliveNFT coingecko is probably one of the better ones. And if you are just displaying the BTC price and updating every few minutes you will never run into any API call limitations. Keep in mind what you are seeing at that point is a general idea of the price averaged across many exchanges. You can also get the price from a single exchange as most of them offer that too.
As of this moment i.e. Average BTCprice according to coingecko is: $69313 BTC price at Coinbase is: $69378 so you can give interesting comparisons.
-Dave
|
|
|
|
aliveNFT
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 316
Merit: 151
aliveNFT.github.io | Track your love.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 04, 2024, 03:16:23 PM |
|
Agree with @aliveNFT coingecko is probably one of the better ones. And if you are just displaying the BTC price and updating every few minutes you will never run into any API call limitations. Keep in mind what you are seeing at that point is a general idea of the price averaged across many exchanges. You can also get the price from a single exchange as most of them offer that too.
As of this moment i.e. Average BTCprice according to coingecko is: $69313 BTC price at Coinbase is: $69378 so you can give interesting comparisons.
-Dave
Yes.. Unfortunately, in order to get the highest quality API for processing a bunch of calls per second and whatever it is in real time, it is necessary to throw out a considerable amount per month. But I think in the case of the OP, he just needed an api to display the value of BTC. I think that free ones will be enough for him.
|
|
|
|
BitMaxz
Legendary
Offline
Activity: 3304
Merit: 3038
BTC price road to $80k
|
FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.
Does this getnodes.io work for you? Can you access the site? I can't seem to access the site and my AV Kaspersky blocking it I also tried accessing it through other devices but it seems it's down. Anyway, OP does not look exactly what we pointed to. i understand your point, sorry i didn't show my intentions more clear. anyways, i want best BTC API to make live bitcoin price tracker for my website.
Now, it's clear well, that the links that I provided are for blockchain development so it won't fit if you are building a live Bitcoin price tracker. The best API for price tracking is already mentioned above Coingecko and another one is Coinmarketcap but if you still looking for another price tracker with API check this one for Bitcoin only. https://blockchain.com/api/exchange_rates_api https://blockchain.com/ticker https://blockchain.com/tobtc?currency=USD&value=500
http://www.coindesk.com/api/ http://api.coindesk.com/v1/bpi/currentprice.json http://api.coindesk.com/v1/bpi/currentprice/USD.json
|
|
|
|
ABCbits
Legendary
Offline
Activity: 2926
Merit: 7623
Crypto Swap Exchange
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2024, 08:36:05 AM |
|
--snip-- FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.
Those online providers of RPC APIs have a serious limitation. Because they only allow so many (lat's say X) amount of calls a day, it means you cannot use their APIs for building a transaction database which would otherwise let you work offline, because that requires literally millions of RPC calls which are way above what any provider is willing to allow. You're right. But when i made that reply, i didn't know what kind of data OP wants or how frequent he need to obtain it. FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.
Does this getnodes.io work for you? Can you access the site? I can't seem to access the site and my AV Kaspersky blocking it I also tried accessing it through other devices but it seems it's down. Anyway, OP does not look exactly what we pointed to. I also cannot access getnodes.io, although i'm sure i accessed it normally few months ago.
|
|
|
|
promise444c5
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Online
Activity: 336
Merit: 203
Keep Promises !
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2024, 10:31:29 PM |
|
Sniped ~
Was there no dependency installed Maybe the package.json will just be fine to install .... Or he can just make use of it's own ui along with the api because I think he only wants to use it in his project, generally it's a cool idea with the css for easy testing He can also use it without installing react too he just need to declear those state use a required var.. + promise + functions =>(Js)
|
|
|
|
NotATether
Legendary
Offline
Activity: 1652
Merit: 6937
In memory of o_e_l_e_o
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 06, 2024, 11:19:01 AM |
|
FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.
Does this getnodes.io work for you? Can you access the site? I can't seem to access the site and my AV Kaspersky blocking it I also tried accessing it through other devices but it seems it's down. Anyway, OP does not look exactly what we pointed to. I also cannot access getnodes.io, although i'm sure i accessed it normally few months ago. Getnodes.io doesn't have any IP address attached to it. Are you sure that you wen't trying to go to get block.io or maybe bitnodes.io? Because both of them work on my end. The best API for price tracking is already mentioned above Coingecko and another one is Coinmarketcap but if you still looking for another price tracker with API check this one for Bitcoin only.
Personally, the most responsive price API I've seen so far is the Binance API, and you can couple that with any fiat currency exchange rate API in order to get things like BTC-USD price and stuff like that. But it needs an API key for both sites. That's fine though because you can just cache the fiat data and update it every 24 hours or at midnight.
|
. .BLACKJACK ♠ FUN. | | | ███▄██████ ██████████████▀ ████████████ █████████████████ ████████████████▄▄ ░█████████████▀░▀▀ ██████████████████ ░██████████████ █████████████████▄ ░██████████████▀ ████████████ ███████████████░██ ██████████ | | CRYPTO CASINO & SPORTS BETTING | | │ | | │ | ▄▄███████▄▄ ▄███████████████▄ ███████████████████ █████████████████████ ███████████████████████ █████████████████████████ █████████████████████████ █████████████████████████ ███████████████████████ █████████████████████ ███████████████████ ▀███████████████▀ ███████████████████ | | .
|
|
|
|
ABCbits
Legendary
Offline
Activity: 2926
Merit: 7623
Crypto Swap Exchange
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 07, 2024, 08:18:36 AM |
|
FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.
Does this getnodes.io work for you? Can you access the site? I can't seem to access the site and my AV Kaspersky blocking it I also tried accessing it through other devices but it seems it's down. Anyway, OP does not look exactly what we pointed to. I also cannot access getnodes.io, although i'm sure i accessed it normally few months ago. Getnodes.io doesn't have any IP address attached to it. Are you sure that you wen't trying to go to get block.io or maybe bitnodes.io? Because both of them work on my end. Thanks for the reminder, i actually trying to say getblock.io. Looks like i forget their actual domain since i never use their service and i primarily remember they offer node API.
|
|
|
|
alexeyneu
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Online
Activity: 350
Merit: 32
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 13, 2024, 10:41:59 AM |
|
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node. But if you still insist on looking for them I have a list of a good source for Bitcoin development that I think you can use for developing check this link below. - https://github.com/igorbarinov/awesome-bitcoindisagree. It doesn't support balance on external address which you most probably will need. bcoin library has it
|
|
|
|
ABCbits
Legendary
Offline
Activity: 2926
Merit: 7623
Crypto Swap Exchange
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 14, 2024, 08:58:58 AM |
|
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node. But if you still insist on looking for them I have a list of a good source for Bitcoin development that I think you can use for developing check this link below. - https://github.com/igorbarinov/awesome-bitcoindisagree. It doesn't support balance on external address which you most probably will need. bcoin library has it That could be solved by also running self-hosted block explorer or Electrum server. Besides, bcoin development is very slow these days where one of bcoin member state they're yet to support new features[1]. [1] https://github.com/bcoin-org/bcoin/issues/1183#issuecomment-2107543005
|
|
|
|
alexeyneu
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Online
Activity: 350
Merit: 32
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 15, 2024, 06:12:01 PM |
|
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node. But if you still insist on looking for them I have a list of a good source for Bitcoin development that I think you can use for developing check this link below. - https://github.com/igorbarinov/awesome-bitcoindisagree. It doesn't support balance on external address which you most probably will need. bcoin library has it That could be solved by also running self-hosted block explorer or Electrum server. Besides, bcoin development is very slow these days where one of bcoin member state they're yet to support new features[1]. [1] https://github.com/bcoin-org/bcoin/issues/1183#issuecomment-2107543005 https://www.quicknode.com/chains/btcstill supported. that's where i've used it. i can go without taproot to be fair . support on commercial platform means they do not have any real flaws for now
|
|
|
|
|