Skip to content
OSINTtools.io

BitRef API

Bitcoin explorer and balance checker for addresses, transactions and blocks, stating it does not log lookups.

Base URL
https://api.bitref.com
Sign-in
API key
Free tier
Free trial
Pricing
Subscription
Format
REST
Endpoints
9

Compiled by OSINTtools.io editors from bitref.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

BitRef's Bitcoin REST API returns address balances, transaction history and unspent outputs, transaction and block details, mempool and fee data, mining statistics and the USD price. An investigator can use it to follow funds from an address or a transaction id.

Every request goes to https://api.bitref.com with an X-API-Key header and returns JSON. Keys are requested on the site. Errors return an HTTP status code and an error key.

The docs describe a paid service with a free trial of up to 100 requests per day for 7 days. All packages are also limited to 20 requests per 10 seconds, and each response carries an X-Requests-Last-24h header. This page documents the address, transaction and block lookups; the mempool, fee, mining, stats and price endpoints are in the official reference.

Quick start

  1. Get a key

    Create an account with BitRef and copy your api key (free trial). Where to get it

  2. Make your first request

    Confirmed and unconfirmed balance of a Bitcoin address.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.bitref.com/v1/address/bc1qexample0000000000000000000000000000/balance' \
      -H 'X-API-Key: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "confirmed_balance": 150000,
      "unconfirmed_balance": 0
    }

Authentication

Send your API key in the X-API-Key header of every request.

Get a key from BitRef

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

20 requests per 10 seconds on all packages; each package also has a request limit over a sliding 24-hour window. The free trial allows up to 100 requests per day for 7 days.

Free trial. Pricing: subscription.

Errors

StatusMeaning
429The package's request limit was exceeded

Addresses

Returns the confirmed and unconfirmed balance for the address.

Path parameters

addressstringrequiredtakes your crypto wallet

Bitcoin address

Example: bc1qexample0000000000000000000000000000
Response fields · 2Show

confirmed_balanceinteger

Confirmed balance

unconfirmed_balanceinteger

Unconfirmed balance

curl 'https://api.bitref.com/v1/address/bc1qexample0000000000000000000000000000/balance' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "confirmed_balance": 150000,
  "unconfirmed_balance": 0
}

Latest transactions of an address, up to 1,000.

GET/v1/address/{address}/transactions

Returns up to the 1,000 latest transactions. The fee is present for unconfirmed transactions only.

Path parameters

addressstringrequiredtakes your crypto wallet

Bitcoin address

Example: bc1qexample0000000000000000000000000000
Response fields · 3Show

heightinteger

Block height of the transaction

tx_hashstring

Transaction id

feeinteger

Fee, unconfirmed transactions only

curl 'https://api.bitref.com/v1/address/bc1qexample0000000000000000000000000000/transactions' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
[
  {
    "height": 800000,
    "tx_hash": "aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44"
  }
]

Unspent outputs of an address.

GET/v1/address/{address}/utxo

Returns the address's unspent transaction outputs; value is in satoshis.

Path parameters

addressstringrequiredtakes your crypto wallet

Bitcoin address

Example: bc1qexample0000000000000000000000000000
Response fields · 4Show

heightinteger

Block height

tx_hashstring

Transaction id

tx_posinteger

Output index

valueinteger

Value in satoshis

curl 'https://api.bitref.com/v1/address/bc1qexample0000000000000000000000000000/utxo' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
[
  {
    "height": 800000,
    "tx_hash": "aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44",
    "tx_pos": 0,
    "value": 150000
  }
]

Transactions

Returns the decoded transaction including inputs (with prevout), outputs, fee, block hash and confirmations.

Path parameters

txidstringrequiredtakes your crypto wallet

Transaction id

Example: aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44
Response fields · 9Show

txidstring

Transaction id

sizeinteger

Size in bytes

vinarray

Inputs, each including prevout

voutarray

Outputs

feenumber

Fee

blockhashstring

Hash of the containing block

confirmationsinteger

Confirmations

timeinteger

Transaction time

blocktimeinteger

Block time

curl 'https://api.bitref.com/v1/tx/aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44/info' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "txid": "aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44",
  "size": 225,
  "fee": 0.00001,
  "confirmations": 12,
  "time": 1700000000,
  "blocktime": 1700000000
}

Returns confirmed, plus blockhash, confirmations and blocktime when available.

Path parameters

txidstringrequiredtakes your crypto wallet

Transaction id

Example: aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44
Response fields · 4Show

confirmedboolean

Whether the transaction is confirmed

blockhashstring

Block hash, if confirmed

confirmationsinteger

Confirmations, if confirmed

blocktimeinteger

Block time, if confirmed

curl 'https://api.bitref.com/v1/tx/aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44/status' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "confirmed": true,
  "confirmations": 12,
  "blocktime": 1700000000
}

Returns spent; when unspent, also bestblock, confirmations, value, scriptPubKey and coinbase.

Path parameters

txidstringrequiredtakes your crypto wallet

Transaction id

Example: aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44
voutintegerrequired

Output index

Example: 0
Response fields · 3Show

spentboolean

Whether the output is spent

valuenumber

Value, when unspent

confirmationsinteger

Confirmations, when unspent

curl 'https://api.bitref.com/v1/tx/aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44/outspend/0' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "spent": false,
  "confirmations": 12,
  "value": 0.0015
}

Blocks

  • Passive: the target is not contacted

Returns block header fields, size, weight, number of transactions and the list of txids.

Path parameters

hashstringrequired

Block hash

Example: 0000000000000000000aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55f
Response fields · 6Show

hashstring

Block hash

heightinteger

Block height

timeinteger

Block time

nTxinteger

Number of transactions

previousblockhashstring

Previous block hash

tx[]string

Transaction ids

curl 'https://api.bitref.com/v1/block/0000000000000000000aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55f/info' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "hash": "0000000000000000000aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55f",
  "height": 800000,
  "time": 1700000000,
  "nTx": 2,
  "tx": [
    "aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44"
  ]
}

Block hash for a block height.

GET/v1/block/height/{height}

  • Passive: the target is not contacted

Returns the hash of the block at that height.

Path parameters

heightintegerrequired

Block height

Example: 800000
Response fields · 1Show

blockhashstring

Block hash

curl 'https://api.bitref.com/v1/block/height/800000' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "blockhash": "0000000000000000000aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55f"
}

Price

USD price of Bitcoin at a Unix timestamp.

GET/v1/price/historic/{timestamp}

  • Passive: the target is not contacted

Returns null for timestamps before 1279408157.

Path parameters

timestampintegerrequired

Unix time

Example: 1700000000
Response fields · 2Show

timestampinteger

Unix time

usdnumber

USD price

curl 'https://api.bitref.com/v1/price/historic/1700000000' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "timestamp": 1700000000,
  "usd": 35000
}