<p>As you mention in your comments, blockchain.info can provide this information.</p>

<p>You can get a raw block in JSON format using the /rawblock/ links, for example:
<a href="https://blockchain.info/rawblock/0000000000000000008d49f25f7dd5d3704575a348e030a1d2e5f396b3e80516" rel="nofollow noreferrer">https://blockchain.info/rawblock/0000000000000000008d49f25f7dd5d3704575a348e030a1d2e5f396b3e80516</a></p>

<p>Then you can also get it as the hex-encoded raw block by adding <code>?format=hex</code> to the url:
<a href="https://blockchain.info/rawblock/0000000000000000008d49f25f7dd5d3704575a348e030a1d2e5f396b3e80516?format=hex" rel="nofollow noreferrer">https://blockchain.info/rawblock/0000000000000000008d49f25f7dd5d3704575a348e030a1d2e5f396b3e80516?format=hex</a></p>

<p>Hope that's what you are after :)</p>

<p>EDIT: Oh, just re-read your comment, you want <em>just</em> the headers? In that case you probably can't use blockchain.info, you could try BlockCyhper instead:</p>

<p>For example: <a href="https://api.blockcypher.com/v1/btc/main/blocks/294322" rel="nofollow noreferrer">https://api.blockcypher.com/v1/btc/main/blocks/294322</a></p>

<p>You can find more info about their API here: <a href="https://www.blockcypher.com/dev/bitcoin/#blockchain-api" rel="nofollow noreferrer">https://www.blockcypher.com/dev/bitcoin/#blockchain-api</a></p>

CC BY-SA 3.0
2017-10-25T12:29:57.350Z
thank you MeshCollider for your excellent answer.  At first view block headers by blockcypher and by blockchain look the same but blockcypher sets nonce to "0" . I have no tools to verify if other data in the block header are reliable generate charts for my paper   Just have a look: https://blockchain.info/block-height/491658  vs.  https://api.blockcypher.com/v1/btc/main/blocks/491658 or https://api.blockcypher.com/v1/btc/main/blocks/294322 nonce always set to "0" so what you get is not valid blopck header
darius
CC BY-SA 3.0
2017-10-25T02:14:45.310Z
2017-10-25T02:20:20.767Z
2017-10-25T02:20:20.767Z
meshcollider
<p>I would like to write small paper supported by Blockchain stats.
Could you tell me how to access blocks chain remotely via GUI to make a query ?</p>

<p>Blockchain's size is 159GB as of today, so download is heavy.</p>

<p>Ok, I can study block headers only to limit overheads.</p>

<p>Do you know how to download or access blockchain headers as mySQL database ?</p>

<p>How to access Blockchain remotely for statistics study ?</p>

CC BY-SA 3.0
2017-10-24T23:02:17.810Z
Ok, I can limit my interest to block headers only to create  database. 
 
https://blockchain.info/block-height/474044?format=json  So all I need is block header from the above block. Any download link ? Studied blockchain json API but no support for block header only.
darius
CC BY-SA 3.0
2017-10-24T23:37:07.330Z
https://blockchain.info/block-height/491459  is the answer but output is not generated via API, so I need raw json block header output, not full webpage code included
darius
<blockchain><api><block><synchronization>
How to access Blockchain remotely for statistics study?
darius
# How to access Blockchain remotely for statistics study?

(Asked by: username_0 on 2017-10-24)

I would like to write small paper supported by Blockchain stats.
Could you tell me how to access blocks chain remotely via GUI to make a query ?

Blockchain's size is 159GB as of today, so download is heavy.

Ok, I can study block headers only to limit overheads.

Do you know how to download or access blockchain headers as mySQL database ?

How to access Blockchain remotely for statistics study ?

**Tags:** blockchain, api, block, synchronization

> **Comments:**
> **username_0**: Ok, I can limit my interest to block headers only to create  database.    https://blockchain.info/block-height/474044?format=json  So all I need is block header from the above block. Any download link ? Studied blockchain json API but no support for block header only.  
> **username_0**: https://blockchain.info/block-height/491459  is the answer but output is not generated via API, so I need raw json block header output, not full webpage code included  

---

## 1 answers

### Answer by username_1 on 2017-10-25. Score: 2 | Accepted answer

As you mention in your comments, blockchain.info can provide this information.

You can get a raw block in JSON format using the /rawblock/ links, for example:
<https://blockchain.info/rawblock/0000000000000000008d49f25f7dd5d3704575a348e030a1d2e5f396b3e80516>

Then you can also get it as the hex-encoded raw block by adding `?format=hex` to the url:
<https://blockchain.info/rawblock/0000000000000000008d49f25f7dd5d3704575a348e030a1d2e5f396b3e80516?format=hex>

Hope that's what you are after :)

EDIT: Oh, just re-read your comment, you want *just* the headers? In that case you probably can't use blockchain.info, you could try BlockCyhper instead:

For example: <https://api.blockcypher.com/v1/btc/main/blocks/294322>

You can find more info about their API here: <https://www.blockcypher.com/dev/bitcoin/#blockchain-api>

> **Comments:**
> **username_0**: thank you MeshCollider for your excellent answer.  At first view block headers by blockcypher and by blockchain look the same but blockcypher sets nonce to "0" . I have no tools to verify if other data in the block header are reliable generate charts for my paper   Just have a look: https://blockchain.info/block-height/491658  vs.  https://api.blockcypher.com/v1/btc/main/blocks/491658 or https://api.blockcypher.com/v1/btc/main/blocks/294322 nonce always set to "0" so what you get is not valid blopck header  

---

