API Docs

Using blockchain data from mempool.space and price data from coingecko and exchange.host, it is now possible to share bitcoin data such as address balances and transactions as an image in bitcointalk.org or any other forum using our API. The data is always updated when reloaded.

Price Image in any local currency

Parameters

Name Type Default description
coin string bitcoin Any cryptocurrency supported by Coingecko
amount float 1 The amount of cryptocurrency. Use '.' as decimal separator.
currency string USD The Fiat currency you want to see the price.

Usage:

Requesting the price of 0.1 bitcoin in BRL.

GET https://bitcoindata.science/api/localprice.php?coin=bitcoin&amount=0.1&currency=BRL

Response:

Bitcoin Local Price API

Embed in bitcointalk post:

[url=https://bitcoindata.science/bitcointalk-api.html#local-price][img height=16]https://bitcoindata.science/api/localprice.php?coin=bitcoin&amount=1&currency=BRL[/img][/url]

Address Balance Image

Parameters

Name Type Default description
address string - Bitcoin address.
currency string USD The Fiat currency you want to see the balance.

Usage:

Requesting the balance of address 3CrySAp8G1PfvjrYT4HPQhE8MouBKWd9WB in EUR.

GET https://bitcoindata.science/api/addressbalance.php?address=3CrySAp8G1PfvjrYT4HPQhE8MouBKWd9WB&currency=EUR

Response:

Bitcoin balance address API

Embed in bitcointalk post:

[url=https://bitcoindata.science/bitcointalk-api.html#address-balance][img height=16]https://bitcoindata.science/api/addressbalance.php?address=1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa&currency=EUR[/img][/url]

Bitcoin Mempool Fees

Usage:

Requesting the recommend fees (data from mempool.space).

GET https://bitcoindata.science/api/bitcoinfees.php

Response:

Bitcoin Fees

Embed in bitcointalk post:

[url=https://bitcoindata.science/bitcointalk-api.html#bitcoin-fees][img height=100]https://bitcoindata.science/api/bitcoinfees.php[/img][/url]

Transaction API

Parameters

Name Type Default description
id string - Transaction ID

Usage:

Requesting data from Transaction ID bf65241f5379e511bf79f9870253735e484ec0e2e3524a78632e1f73838b1bc2.

GET https://bitcoindata.science/api/transaction.php?id=bf65241f5379e511bf79f9870253735e484ec0e2e3524a78632e1f73838b1bc2

Response:

Bitcoin Transaction API

Embed in bitcointalk post:

[url=https://bitcoindata.science/bitcointalk-api.html#transaction][img]https://bitcoindata.science/api/transaction.php?id=bf65241f5379e511bf79f9870253735e484ec0e2e3524a78632e1f73838b1bc2[/img][/url]