> For the complete documentation index, see [llms.txt](https://astralyx.gitbook.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astralyx.gitbook.io/api/ton-market-cap-api.md).

# TON Market Cap API

## List of all jettons with information

<mark style="color:blue;">`GET`</mark> `https://api.astralyx.dev/tmc/api/public/getJettons`

{% tabs %}
{% tab title="200: OK Always is ok" %}

```javascript
{
    response: [
        {
            data: [
                // objects with jettons data
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

## Get jetton information by symbol

<mark style="color:blue;">`GET`</mark> `https://api.astralyx.dev/tmc/api/public/getJettonBySymbol`

If *response\[0].data* array is empty, no jettons is found.

#### Query Parameters

| Name                                     | Type   | Description      |
| ---------------------------------------- | ------ | ---------------- |
| symbol<mark style="color:red;">\*</mark> | String | Symbol of jetton |

{% tabs %}
{% tab title="200: OK Always is ok" %}

```javascript
{
    response: [
        {
            data: [
                {
                    // jetton data
                }
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

## Get jetton information by contract

<mark style="color:blue;">`GET`</mark> `https://api.astralyx.dev/tmc/api/public/getJettonByContract`

If *response\[0].data* array is empty, no jettons is found.

#### Query Parameters

| Name                                       | Type   | Description                |
| ------------------------------------------ | ------ | -------------------------- |
| contract<mark style="color:red;">\*</mark> | String | Address contract of jetton |

{% tabs %}
{% tab title="200: OK Always is ok" %}

```javascript
{
    response: [
        {
            data: [
                {
                    // jetton data
                }
            ]
        }
    }
```

{% endtab %}
{% endtabs %}
