# BitRef API reference

> 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…

Source: https://osinttools.io/apis/bitref/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/bitref/

- Base URL: https://api.bitref.com
- Authentication: API key in the `X-API-Key` header. Get a key: https://bitref.com/api/
- Free tier: a free trial only
- Pricing: Subscription
- Rate limits: 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.
- Vendor docs: https://bitref.com/api/

## Overview

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](https://bitref.com/api/).

## Errors

| Status | Meaning |
| --- | --- |
| 429 | The package's request limit was exceeded |

## Addresses

### Confirmed and unconfirmed balance of a Bitcoin address.

`GET /v1/address/{address}/balance`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

Returns the confirmed and unconfirmed balance for the address.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `address` | path | string | yes | Bitcoin address Example: bc1qexample0000000000000000000000000000 |

Response fields:

- `confirmed_balance` (integer): Confirmed balance
- `unconfirmed_balance` (integer): Unconfirmed balance

```bash
curl 'https://api.bitref.com/v1/address/bc1qexample0000000000000000000000000000/balance' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

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

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

`GET /v1/address/{address}/transactions`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `address` | path | string | yes | Bitcoin address Example: bc1qexample0000000000000000000000000000 |

Response fields:

- `[].height` (integer): Block height of the transaction
- `[].tx_hash` (string): Transaction id
- `[].fee` (integer): Fee, unconfirmed transactions only

```bash
curl 'https://api.bitref.com/v1/address/bc1qexample0000000000000000000000000000/transactions' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "height": 800000,
    "tx_hash": "aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44"
  }
]
```

### Unspent outputs of an address.

`GET /v1/address/{address}/utxo`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `address` | path | string | yes | Bitcoin address Example: bc1qexample0000000000000000000000000000 |

Response fields:

- `[].height` (integer): Block height
- `[].tx_hash` (string): Transaction id
- `[].tx_pos` (integer): Output index
- `[].value` (integer): Value in satoshis

```bash
curl 'https://api.bitref.com/v1/address/bc1qexample0000000000000000000000000000/utxo' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "height": 800000,
    "tx_hash": "aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44",
    "tx_pos": 0,
    "value": 150000
  }
]
```

## Transactions

### Full details of a transaction, with inputs and outputs.

`GET /v1/tx/{txid}/info`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `txid` | path | string | yes | Transaction id Example: aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44 |

Response fields:

- `txid` (string): Transaction id
- `size` (integer): Size in bytes
- `vin` (array): Inputs, each including prevout
- `vout` (array): Outputs
- `fee` (number): Fee
- `blockhash` (string): Hash of the containing block
- `confirmations` (integer): Confirmations
- `time` (integer): Transaction time
- `blocktime` (integer): Block time

```bash
curl 'https://api.bitref.com/v1/tx/aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44/info' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "txid": "aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44",
  "size": 225,
  "fee": 0.00001,
  "confirmations": 12,
  "time": 1700000000,
  "blocktime": 1700000000
}
```

### Whether a transaction is confirmed.

`GET /v1/tx/{txid}/status`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `txid` | path | string | yes | Transaction id Example: aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44 |

Response fields:

- `confirmed` (boolean): Whether the transaction is confirmed
- `blockhash` (string): Block hash, if confirmed
- `confirmations` (integer): Confirmations, if confirmed
- `blocktime` (integer): Block time, if confirmed

```bash
curl 'https://api.bitref.com/v1/tx/aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44/status' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "confirmed": true,
  "confirmations": 12,
  "blocktime": 1700000000
}
```

### Whether one output of a transaction has been spent.

`GET /v1/tx/{txid}/outspend/{vout}`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `txid` | path | string | yes | Transaction id Example: aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44 |
| `vout` | path | integer | yes | Output index Example: 0 |

Response fields:

- `spent` (boolean): Whether the output is spent
- `value` (number): Value, when unspent
- `confirmations` (integer): Confirmations, when unspent

```bash
curl 'https://api.bitref.com/v1/tx/aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44/outspend/0' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "spent": false,
  "confirmations": 12,
  "value": 0.0015
}
```

## Blocks

### Details of a block by hash, with its transaction ids.

`GET /v1/block/{hash}/info`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `hash` | path | string | yes | Block hash Example: 0000000000000000000aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55f |

Response fields:

- `hash` (string): Block hash
- `height` (integer): Block height
- `time` (integer): Block time
- `nTx` (integer): Number of transactions
- `previousblockhash` (string): Previous block hash
- `tx[]` (string): Transaction ids

```bash
curl 'https://api.bitref.com/v1/block/0000000000000000000aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55f/info' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "hash": "0000000000000000000aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55f",
  "height": 800000,
  "time": 1700000000,
  "nTx": 2,
  "tx": [
    "aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44"
  ]
}
```

### Block hash for a block height.

`GET /v1/block/height/{height}`

- Footprint: passive (the target is not contacted)

Returns the hash of the block at that height.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `height` | path | integer | yes | Block height Example: 800000 |

Response fields:

- `blockhash` (string): Block hash

```bash
curl 'https://api.bitref.com/v1/block/height/800000' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "blockhash": "0000000000000000000aa11bb22cc33dd44ee55ff66aa11bb22cc33dd44ee55f"
}
```

## Price

### USD price of Bitcoin at a Unix timestamp.

`GET /v1/price/historic/{timestamp}`

- Footprint: passive (the target is not contacted)

Returns null for timestamps before 1279408157.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `timestamp` | path | integer | yes | Unix time Example: 1700000000 |

Response fields:

- `timestamp` (integer): Unix time
- `usd` (number): USD price

```bash
curl 'https://api.bitref.com/v1/price/historic/1700000000' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "timestamp": 1700000000,
  "usd": 35000
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
