<p>This Blockchain explorer: <a href="https://blockchair.com/" rel="nofollow noreferrer">https://blockchair.com/</a> allows you to search for embedded data in 19 different Blockchains. And on this URL <a href="https://bitcoinstrings.com/all" rel="nofollow noreferrer">https://bitcoinstrings.com/all</a> I think you can get all embedded texts.</p>

CC BY-SA 4.0
2022-04-12T15:59:21.640Z
2022-04-12T15:59:21.640Z
Jose Celano
<p>The <a href="https://chain.com/docs" rel="nofollow">Chain.com API</a> offers functionality for returning <em>OP_RETURN</em> data by:</p>

<ol>
<li><a href="https://api.chain.com/v2/bitcoin/addresses/1Bj5UVzWQ84iBCUiy5eQ1NEfWfJ4a3yKG1/op-returns?api-key-id=DEMO-4a5e1e4" rel="nofollow">Address</a></li>
<li><a href="https://api.chain.com/v2/bitcoin/transactions/4a7d62a4a5cc912605c46c6a6ef6c4af451255a453e6cbf2b1022766c331f803/op-return?api-key-id=DEMO-4a5e1e4" rel="nofollow">TxID</a></li>
<li><a href="https://api.chain.com/v2/bitcoin/blocks/308920/op-returns?api-key-id=DEMO-4a5e1e4" rel="nofollow">Block height</a></li>
</ol>

<p>The JSON return data from the REST API has a <code>text</code> field which is meant to be the decoded hex data sent (ie <code>6a``hex data</code>) but it's returned in the format <code>\\x``hex data</code>.</p>

<p>In Python you can simply do this:</p>

<pre><code>import __future__
import requests; from binascii import unhexlify
rdata = requests.get("https://api.chain.com/v2/bitcoin/addresses/%s/op-returns?api-key-id=DEMO-4a5e1e4" % "1Bj5UVzWQ84iBCUiy5eQ1NEfWfJ4a3yKG1") # substitute URL here
assert rdata.status_code == 200
jdata = rdata.json()
hexdata = [unhexlify(str(t["text"]).encode("utf-8"))) for t in jdata
print(hexdata)
</code></pre>

CC BY-SA 3.0
2015-03-16T13:51:44.373Z
How would I do a search in the bitcoin core?
Anderson Juhasc
CC BY-SA 3.0
2017-06-15T07:24:00.203Z
api.chain.com doesn't work anymore
mixdev
CC BY-SA 3.0
2015-03-16T06:32:13.160Z
2015-03-16T06:32:13.160Z
Wizard Of Ozzie
<p>You can do it via <a href="https://www.smartbit.com.au/" rel="nofollow noreferrer">https://www.smartbit.com.au/</a> that already parses all the data including op_returns</p>

CC BY-SA 4.0
2022-04-12T15:38:08.777Z
It's now offline
Jose Celano
CC BY-SA 4.0
2019-02-13T03:14:30.110Z
2019-02-13T03:14:30.110Z
Cloud Strife
<p>Is there any way to check for this data in blockchain? </p>

<p>I want to search this value: 554e6963444320 and want to return this transaction <a href="https://blockchain.info/tx/7e92e90f221ad28daf42b5b8bda4c8e244e37af48527fcd12b2518db5d3315bd" rel="nofollow">https://blockchain.info/tx/7e92e90f221ad28daf42b5b8bda4c8e244e37af48527fcd12b2518db5d3315bd</a></p>

CC BY-SA 3.0
2015-03-15T16:58:54.143Z
This will require parsing the blockchain and looking for your data string to match transaction(s) which contain that data. Building an index of all op_return transactions could speed this greatly, but to my knowledge it is not yet available as a service or product.
Scrybe
CC BY-SA 3.0
2015-03-15T17:17:08.993Z
How to identify transactions with op_return?
Anderson Juhasc
<op-return>
How can I search for OP_RETURN data?
Anderson Juhasc
# How can I search for OP_RETURN data?

(Asked by: username_0 on 2015-03-15)

Is there any way to check for this data in blockchain?

I want to search this value: 554e6963444320 and want to return this transaction <https://blockchain.info/tx/7e92e90f221ad28daf42b5b8bda4c8e244e37af48527fcd12b2518db5d3315bd>

**Tags:** op-return

> **Comments:**
> **username_1**: This will require parsing the blockchain and looking for your data string to match transaction(s) which contain that data. Building an index of all op_return transactions could speed this greatly, but to my knowledge it is not yet available as a service or product.  
> **username_0**: How to identify transactions with op_return?  

---

## 3 answers

### Answer by username_2 on 2022-04-12. Score: 2

This Blockchain explorer: <https://blockchair.com/> allows you to search for embedded data in 19 different Blockchains. And on this URL <https://bitcoinstrings.com/all> I think you can get all embedded texts.


---

### Answer by username_3 on 2015-03-16. Score: 2

The Chain.com API offers functionality for returning OP_RETURN data by:

Address
TxID
Block height

The JSON return data from the REST API has a text field which is meant to be the decoded hex data sent (ie 6a``hex data) but it's returned in the format \\x``hex data.
In Python you can simply do this:
import __future__
import requests; from binascii import unhexlify
rdata = requests.get("https://api.chain.com/v2/bitcoin/addresses/%s/op-returns?api-key-id=DEMO-4a5e1e4" % "1Bj5UVzWQ84iBCUiy5eQ1NEfWfJ4a3yKG1") # substitute URL here
assert rdata.status_code == 200
jdata = rdata.json()
hexdata = [unhexlify(str(t["text"]).encode("utf-8"))) for t in jdata
print(hexdata)

> **Comments:**
> **username_0**: How would I do a search in the bitcoin core?  
> **username_4**: api.chain.com doesn't work anymore  

---

### Answer by username_5 on 2019-02-13. Score: -1

You can do it via <https://www.smartbit.com.au/> that already parses all the data including op\_returns

> **Comments:**
> **username_2**: It's now offline  

---

