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.
Bitcoin Stack Exchange is a question and answer site for Bitcoin users, developers, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
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
Blockchain Data API https://www.blockchain.com/api/blockchain_api:
- You can also request the block to return in binary form (Hex encoded) using ?format=hex
Blockchair has this api available that currently works (in 2022) https://blockchair.com/api/docs#link_M31
Example for block
and see the raw_block field