API Docs

Using blockchain data from mempool.space and price data from coingecko, exchange.host and binance p2p (in case of BDT), 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.
hex string 000000 Hexadecimal color code.
bold null Display font in bold when not null.

Usage:

Requesting the price of 0.1 bitcoin in BRL.

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

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&hex=000000[/img][/url]

Response:

Bitcoin Local Price API

Local Fiat to BTC

Parameters

Name Type Default description
fiatamount float 1 The amount of your fiat currency to convert to btc.
currency string USD The Fiat currency you want to see the price.
hex string 000000 Hexadecimal color code.
bold null Display font in bold when not null.

Usage:

Requesting how much bitcoin is 10 GBP.

GET https://bitcoindata.science/api/fiattobtc.php?fiatamount=10&currency=GBP

Embed in bitcointalk post:

[url=https://bitcoindata.science/bitcointalk-api.html#fiattobtc][img height=16]https://bitcoindata.science/api/fiattobtc.php?fiatamount=10&currency=GBP&hex=000000[/img][/url]

Response:

Local Fiat to BTC

Address Balance Image

Parameters

Name Type Default description
address string - Bitcoin address.
currency string USD The Fiat currency you want to see the balance.
hex string 000000 Hexadecimal color code.
bold null Display font in bold when not null.

Usage:

Requesting the balance of address 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa in EUR.

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

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&hex=000000[/img][/url]

Response:

Bitcoin balance address API

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
hex string 000000 Hexadecimal color code.
bold null Display font in bold when not null.

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]