# Tap Reader API

**Mainnet:** <https://api.ordinalsbot.com/tapreader>

**Testnet:** <https://testnet-api.ordinalsbot.com/tapreader>

You can refer to official TAP documentation for all available endpoints.

{% embed url="<https://github.com/Trac-Systems/tap-reader/tree/main?tab=readme-ov-file#tap-protocol-api>" %}

## Get TAP Token Deployment

<mark style="color:green;">`POST`</mark> `https://api.ordinalsbot.com/tapreader/getDeployment/:ticker`

#### Path Parameters

| Name                                     | Type   | Description                              |
| ---------------------------------------- | ------ | ---------------------------------------- |
| ticker<mark style="color:red;">\*</mark> | String | Ticker to get deployment inscription for |

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| x-api-key<mark style="color:red;">\*</mark> | String | API Key     |

{% tabs %}
{% tab title="200: OK " %}

```json
{
    "result": {
        "tick": "tap",
        "max": "21000000000000000000000000",
        "lim": "21000000000000000000000000",
        "dec": 18,
        "blck": 801996,
        "tx": "cbc1900b8b0f02fdf481137c587896781a721a35369d4eae47c7445622ecb671",
        "ins": "cbc1900b8b0f02fdf481137c587896781a721a35369d4eae47c7445622ecb671i0",
        "num": 21953432,
        "ts": 1691356378,
        "addr": "bc1pcf4jawvk9gjhjske5mch045szhtgsgpt4df5ftnqpxlc27qtaxyqxxmjsf",
        "crsd": false,
        "dmt": false,
        "elem": null,
        "prj": null,
        "dim": null,
        "dt": null
    }
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```
{
    status: 'error',
    error: 'error reason'
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ordinalsbot.com/tap-protocol/tap-reader-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
