> For the complete documentation index, see [llms.txt](https://docs.taal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.taal.com/core-products/whatsonchain/search.md).

# Search

## Get Explorer Links

This endpoint identifies whether the posted query string is a `block hash`, `txid`, or `address`, and responds with WoC links. Ideal for extending customized search in apps.

{% code title="HTTP Request" %}

```
POST https://api.whatsonchain.com/v1/<chain>/<network>/search/links
```

{% endcode %}

#### Example Request

{% tabs %}
{% tab title="BSV" %}

```sh
curl -X POST https://api.whatsonchain.com/v1/bsv/main/search/links   -H 'Content-Type: application/json' -d '{    "query": "1GJ3x5bcEnKMnzNFPPELDfXUCwKEaLHM5H"
```

{% endtab %}

{% tab title="BTC" %}

```sh
curl -X POST https://api.whatsonchain.com/v1/btc/main/search/links   -H 'Content-Type: application/json' -d '{    "query": "bc1q89zqat5x9cye7v2uwun2ds7980p25n02g7g90w"}'
```

{% endtab %}
{% endtabs %}

#### Example Response

{% tabs %}
{% tab title="BSV" %}

```json
{
    "results": [{
        "type": "address",
        "url": "https://whatsonchain.com/address/1GJ3x5bcEnKMnzNFPPELDfXUCwKEaLHM5H"
    }]
}
```

{% endtab %}

{% tab title="BTC" %}

```json
{
    "results": [{
        "type": "address",
        "url": "https://btc.whatsonchain.com/address/1GJ3x5bcEnKMnzNFPPELDfXUCwKEaLHM5H"
    }]
}
```

{% endtab %}
{% endtabs %}

**URL Parameters**

| Parameter | Description                         |
| --------- | ----------------------------------- |
| chain     | Desired blockchain: `bsv` or `btc`. |
| network   | Selected network: `main` or `test`. |

**Request Parameters**

| Parameter | Description           |
| --------- | --------------------- |
| query     | The string to search. |
