As an alternative choice to syncing a full Bitcoin node, there’s a BigQuery public dataset for Bitcoin (and a few different cryptocurrencies):
SELECT
`quantity`,
`hash`
FROM
`bigquery-public-data.crypto_bitcoin.blocks`
ORDER BY
`hash`
LIMIT
10
Ends in JSON:
[
{
"number": "634842",
"hash": "000000000000000000000003681c2df35533c9578fb6aace040b0dfe0d446413"
},
{
"number": "585774",
"hash": "000000000000000000000019b43763eb4519f4fe65eae9be90fe73117b89026d"
},
{
"number": "675600",
"hash": "00000000000000000000001a9bf725a1f7d019440a04f39706c083751b62974d"
},
{
"number": "658771",
"hash": "00000000000000000000001e9590a06c8452a3ce553834b2bab3daebf62f8b79"
},
{
"number": "679468",
"hash": "0000000000000000000000250fae6b97e3241d86c65fb5be489875c49032b25b"
},
{
"number": "679848",
"hash": "00000000000000000000002d142973ed07a220bf571360b70b90f4f0a1e739ce"
},
{
"number": "625857",
"hash": "000000000000000000000030f8cf8e0a76db53525aff8d56dcfdf4c74fc7878c"
},
{
"number": "622050",
"hash": "000000000000000000000031a10e42c80137b3c3ad3e15c5dfb4ea213c83e497"
},
{
"number": "664602",
"hash": "000000000000000000000032ad53b18dadb72800d883f8e1188ceaa566b9a222"
},
{
"number": "696345",
"hash": "00000000000000000000003c5c9269d93153a4eb8fabef76318d849a2ec2b29e"
}
]