<p>Blockchain Data API
<a href="https://www.blockchain.com/api/blockchain_api" rel="nofollow noreferrer">https://www.blockchain.com/api/blockchain_api</a>:</p>
<blockquote>
<p>Single Block</p>
<ul>
<li><code>https://blockchain.info/rawblock/$block_hash</code></li>
<li>You can also request the block to return in binary form (Hex encoded) using ?format=hex</li>
</ul>
</blockquote>

CC BY-SA 4.0
2018-10-08T20:27:41.597Z
2018-10-08T20:34:53.493Z
2020-06-16T11:10:03.350Z
user3601435
<p>Blockchai<strong>r</strong> has this api available that currently works (in 2022) <a href="https://blockchair.com/api/docs#link_M31" rel="nofollow noreferrer">https://blockchair.com/api/docs#link_M31</a></p>
<p>Example for block <code>000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f</code></p>
<p><a href="https://api.blockchair.com/bitcoin/raw/block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" rel="nofollow noreferrer">https://api.blockchair.com/bitcoin/raw/block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f</a></p>
<p>and see the raw_block field</p>

CC BY-SA 4.0
2022-03-15T22:47:36.287Z
2022-03-15T22:47:36.287Z
premek.v
<p>What kind of API do you want? Do you mean API with your local Bitcoin Core or do you need web-API?</p>

<p>Have a look to <a href="http://webbtc.com/block/000000000000000001f942eb4bfa0aeccb6a14c268f4c72d5fff17270da771b9" rel="nofollow noreferrer">http://webbtc.com/block/000000000000000001f942eb4bfa0aeccb6a14c268f4c72d5fff17270da771b9</a> (this is an example)</p>

<p>It is possible to download block as [json] / [hex] / [binary] there if you know the hash of the block</p>

<p>UPDATE (december'17):
block in raw hex example : <a href="https://blockchain.info/block/000000000000000000a7b4999c723ed9f308425708577c76827ade51062e135a?format=hex" rel="nofollow noreferrer">https://blockchain.info/block/000000000000000000a7b4999c723ed9f308425708577c76827ade51062e135a?format=hex</a></p>

CC BY-SA 4.0
2018-05-10T11:39:30.203Z
At least webbtc is opensource, can set up own instance.
weston
CC BY-SA 3.0
2015-05-27T10:53:41.517Z
2017-12-02T17:56:54.820Z
2017-12-02T17:56:54.820Z
amaclin
<p>Is there any Web API available for us to query Blockchain data in hex format? </p>

<p>The format should follow the standard (<a href="https://en.bitcoin.it/wiki/Block#Block_structure" rel="noreferrer">https://en.bitcoin.it/wiki/Block#Block_structure</a>) structure rather than JSON.</p>

<blockchain><raw-data>
Raw Block data in Hexadecimals
fyquah95
# Raw Block data in Hexadecimals

(Asked by: username_0 on 2015-05-27)

Is there any Web API available for us to query Blockchain data in hex format?

The format should follow the standard (<https://en.bitcoin.it/wiki/Block#Block_structure>) structure rather than JSON.

**Tags:** blockchain, raw-data


---

## 3 answers

### Answer by username_3 on 2015-05-27. Score: 7 | Accepted answer

What kind of API do you want? Do you mean API with your local Bitcoin Core or do you need web-API?

Have a look to <http://webbtc.com/block/000000000000000001f942eb4bfa0aeccb6a14c268f4c72d5fff17270da771b9> (this is an example)

It is possible to download block as [json] / [hex] / [binary] there if you know the hash of the block

UPDATE (december'17):
block in raw hex example : <https://blockchain.info/block/000000000000000000a7b4999c723ed9f308425708577c76827ade51062e135a?format=hex>

> **Comments:**
> **username_4**: At least webbtc is opensource, can set up own instance.  

---

### Answer by username_1 on 2018-10-08. Score: 1

Blockchain Data API
<https://www.blockchain.com/api/blockchain_api>:

> Single Block
>
> * `https://blockchain.info/rawblock/$block_hash`
> * You can also request the block to return in binary form (Hex encoded) using ?format=hex


---

### Answer by username_2 on 2022-03-15. Score: 0

Blockchai**r** has this api available that currently works (in 2022) <https://blockchair.com/api/docs#link_M31>

Example for block `000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f`

<https://api.blockchair.com/bitcoin/raw/block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f>

and see the raw\_block field


---

