opreturn.net

API Documentation

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, transaction

API Key
API requests without an apikey are limited to 500 calls in a 24-hour rolling period. To increase this limit, submit an apikey request at the request form below, and we'll provide an apikey for 2000 API calls per 24-hours.

https://opreturn.net/api/docs/requestapikey/
Use your apikey with the request header [apikey: $value]

["http" => ["method" => "GET", "header" => ["Content-Type: application/json", "apikey: $private_apikey"]]]


Or use your apikey by adding it as a get variable at the end of the curl request

curl "https://opreturn.net/api/btc/blockchaininfo/?apikey=$value"