# NFT

## Latest NFTs List

<mark style="color:green;">`POST`</mark> `/nft_recent`

Get latest Inscription NFTs list

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Request**

<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th data-type="checkbox">Optional</th></tr></thead><tbody><tr><td><code>include_image_data</code></td><td>bool</td><td>include image base64 data</td><td>true</td></tr><tr><td><code>page</code></td><td>number</td><td>page number</td><td>true</td></tr></tbody></table>

**Response**

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

```json
{
    "data": [
        {
            "blocknumber": 12031704,
            "event_logs": [],
            "from": "0x90f7562249916a4e690c16ca69ebfd6533d42499",
            "id": 83705317,
            "mime_category": "1",
            "mime_data": "Dragon",
            "mime_type": "",
            "owner": "0x90f7562249916a4e690c16ca69ebfd6533d42499",
            "signature": "eb22c5e28adf024cfee08804c00ddb9ac2973892",
            "timestamp": 1709395063,
            "to": "0x90f7562249916a4e690c16ca69ebfd6533d42499",
            "tx_hash": "0x20a2da84e86edd78dc75f304537587e32a6e25b0c0733f0224a688188c95aba5",
            "tx_index": 4,
            "verified": "1"
        }, {
            ...
        },
        ...
    ],
    "error_code": 0
} 
```

{% endtab %}
{% endtabs %}

## NFT Collections

<mark style="color:green;">`GET`</mark> `/nft_collections`

Get NFT collections list

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Request**

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| `page` | number | page number |

**Response**

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

```json
{

}
```

{% endtab %}
{% endtabs %}

## NFTs List

<mark style="color:green;">`GET`</mark> `/nfts`

Get NFTs list owned by specific address.

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Request**

<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th data-type="checkbox">Optional</th></tr></thead><tbody><tr><td><code>address</code></td><td>string</td><td>Wallet address</td><td>false</td></tr><tr><td><code>include_image_data</code></td><td>bool</td><td>include image base64 data</td><td>true</td></tr><tr><td><code>page</code></td><td>number</td><td>page number</td><td>true</td></tr></tbody></table>

**Response**

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

```json
{
    "data": [
        {
            "blocknumber": 12031704,
            "event_logs": [],
            "from": "0x90f7562249916a4e690c16ca69ebfd6533d42499",
            "id": 83705317,
            "mime_category": "1",
            "mime_data": "Dragon",
            "mime_type": "",
            "owner": "0x90f7562249916a4e690c16ca69ebfd6533d42499",
            "signature": "eb22c5e28adf024cfee08804c00ddb9ac2973892",
            "timestamp": 1709395063,
            "to": "0x90f7562249916a4e690c16ca69ebfd6533d42499",
            "tx_hash": "0x20a2da84e86edd78dc75f304537587e32a6e25b0c0733f0224a688188c95aba5",
            "tx_index": 4,
            "verified": "1"
        }, {
            ...
        },
        ...
    ],
    "error_code": 0
} 
```

{% endtab %}
{% endtabs %}

## NFT

<mark style="color:green;">`GET`</mark> `/nft/{path}`

Get specific NFT content.

**Headers**

| Name         | Value        |
| ------------ | ------------ |
| Content-Type | `plain/text` |
| Content-Type | `image/png`  |

**Request**

| Name   | Type   | Description          |
| ------ | ------ | -------------------- |
| `path` | string | Inscription ID or Tx |

**Response**

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

```
image/png;base64,...
```

{% endtab %}

{% tab title="404" %}

```json
Inscription not found
```

{% endtab %}
{% endtabs %}

## NFT Transfers

<mark style="color:green;">`GET`</mark> `/nft_transfers`

\<Description of the endpoint>

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Body**

<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th data-type="checkbox">Optional</th></tr></thead><tbody><tr><td><code>tx</code></td><td>string</td><td>tx of NFT</td><td>true</td></tr><tr><td><code>id</code></td><td>number</td><td>id of NFT</td><td>true</td></tr><tr><td><code>page</code></td><td>number</td><td>page number</td><td>true</td></tr></tbody></table>

**Response**

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

```json
{
    "data": [
        {
            "blocknumber": 12031704,
            "event_logs": [],
            "from": "0x90f7562249916a4e690c16ca69ebfd6533d42499",
            "id": 83705317,
            "mime_category": "4",
            "mime_data": "0x20a2da84e86edd78dc75f304537587e32a6e25b0c0733f0224a688188c95aba5",
            "mime_type": "",
            "owner": "0x90f7562249916a4e690c16ca69ebfd6533d42499",
            "signature": "eb22c5e28adf024cfee08804c00ddb9ac2973892",
            "timestamp": 1709395063,
            "to": "0x90f7562249916a4e690c16ca69ebfd6533d42499",
            "tx_hash": "0x20a2da84e86edd78dc75f304537587e32a6e25b0c0733f0224a688188c95aba5",
            "tx_index": 4,
            "verified": "1"
        }, {
            ...
        },
        ...
    ],
    "error_code": 0
} 
```

{% endtab %}
{% endtabs %}
