<p>I'd recommend using the Esplora <a href="https://github.com/Blockstream/esplora/blob/master/API.md" rel="nofollow noreferrer">API</a> that powers <a href="https://blockstream.info/testnet/" rel="nofollow noreferrer">blockstream.info</a> for testnet blockchain data.</p>
<p>For example you can use curl to get the latest testnet block hash:</p>
<pre><code>curl https://blockstream.info/testnet/api/blocks/tip/hash
</code></pre>

CC BY-SA 4.0
2021-07-26T14:50:59.653Z
2021-07-26T14:50:59.653Z
Michael Folkson
<p><code>~&gt; curl --head https://testnet.blockchain.info
HTTP/1.1 503 Service Unavailable</code></p>

<p>It's likely the service just isn't something that exists. </p>

CC BY-SA 3.0
2017-11-27T14:07:35.833Z
I found out another way to do this. smartbit.com.au provide api for both testnet and mainnet for bitcoin with some awesome api playground. I built my app over this website. But thanks for your comment though. :)
Jon Hebrews
CC BY-SA 3.0
2017-11-27T13:13:49.027Z
2017-11-27T13:13:49.027Z
Claris
<p>When I try to connect testnet websocket provided by blockchain.info api. Connection doesn't establish, when i looked into the code. It says for testnet it uses "wss://ws.testnet.blockchain.info/inv" url. I guess that blockchain.info stops the service for testnet. Is there any other websocket api provider for bitcoin testnet?</p>

<bitcoind><blockchain.info><api><testnet>
Blockchain.info testnet websocket doesn't work
Jon Hebrews
# Blockchain.info testnet websocket doesn't work

(Asked by: username_0 on 2017-11-27)

When I try to connect testnet websocket provided by blockchain.info api. Connection doesn't establish, when i looked into the code. It says for testnet it uses "wss://ws.testnet.blockchain.info/inv" url. I guess that blockchain.info stops the service for testnet. Is there any other websocket api provider for bitcoin testnet?

**Tags:** bitcoind, blockchain.info, api, testnet


---

## 2 answers

### Answer by username_1 on 2021-07-26. Score: 1

I'd recommend using the Esplora [API](https://github.com/Blockstream/esplora/blob/master/API.md) that powers [blockstream.info](https://blockstream.info/testnet/) for testnet blockchain data.

For example you can use curl to get the latest testnet block hash:

```
curl https://blockstream.info/testnet/api/blocks/tip/hash

```


---

### Answer by username_2 on 2017-11-27. Score: 0

`~> curl --head https://testnet.blockchain.info
HTTP/1.1 503 Service Unavailable`

It's likely the service just isn't something that exists.

> **Comments:**
> **username_0**: I found out another way to do this. smartbit.com.au provide api for both testnet and mainnet for bitcoin with some awesome api playground. I built my app over this website. But thanks for your comment though. :)  

---

