opreturn.net provides a simple REST JSON API to programmatically retrieve blockchain data over HTTPS.
Supported blockchains include bitcoin (btc), litecoin (ltc), dogecoin (doge), and garlicoin (grlc).
Documentation to request data is below, along with code examples and the JSON response.
all,
apikey,
address,
block,
bestblockhash,
blockchaininfo,
blockheader,
blocktimes,
hash,
mempool,
network,
peers,
pubkey,
transactionUse your apikey with the request header [apikey: $value]
["http" => ["method" => "GET", "header" => ["Content-Type: application/json", "apikey: $private_apikey"]]]