# ALL.ART NFT API v1

{% hint style="info" %}
If you are an NFT project building on Solana and want your standard to be implemented into APIs, please reach out to us on Twitter [@AllArtProtocol](https://twitter.com/AllArtProtocol) or on [ALL.ART Discord](https://discord.gg/h3Jrh3MZxH)&#x20;
{% endhint %}

Check out our documentation and API:

## Get NFT

## Get NFT

<mark style="color:blue;">`GET`</mark> `https://api.all.art/v1/solana/:pubkey`

This endpoint allows you to get NFT metadata.

#### Path Parameters

| Name   | Type   | Description                                                                                                                     |
| ------ | ------ | ------------------------------------------------------------------------------------------------------------------------------- |
| pubkey | string | PubKey of Solana account that contains data (f.e. Metaplex metadata account). Mint account or token account that has the token. |

#### Query Parameters

| Name    | Type   | Description                                                                                                                  |
| ------- | ------ | ---------------------------------------------------------------------------------------------------------------------------- |
| cluster | string | “mainnet-beta” \| “devnet” \| “testnet” (Cluster from @solana/web3.js), if a cluster is not provided, “mainnet-beta” is used |
| format  | string | “default” \| “metaplex”, if a format is not provided, format is “default”                                                    |

{% tabs %}
{% tab title="200 NFT successfully retrieved." %}
{% tabs %}
{% tab title="format="default"" %}

```javascript
{
   "Blockchain":"Solana",
   "Class":"",
   "Subclass":"",
   "Platform":"Ono",
   "Platform_URL":"https://ono.art/",
   "Items":[],
   "Standard":"Metaplex",
   "Creators":[
      {
         "address":"onogkB6qRYoM21nWjMyiiP2g2xiEAMkMpf4GmQNxJYs",
         "verified":1,
         "share":16
      },
      {
         "address":"5NVNLQ4b8MauvQFQ1HWGciT7mNwFegbGF4yasPvTAPbD",
         "verified":1,
         "share":42
      },
      {
         "address":"H1pqWLQS5EHudX6ueHJjFVoYr5vD47iZoGtAudT618zj",
         "verified":1,
         "share":42
      }
   ],
   "Creation_date":1623269472,
   "Mint":"GPcKV69q8Rq2bd1arZ7t2YYceKVwAJr67Rqnr322kJzS",
   "Title":"Sacral",
   "Description":"CHAKRASTASTIC 111 is a deep exploration through the seven chakras, created to unleash the infinite abundance that exists in all of us!   The core of each platonic solid, vibration & frequency are represented within each piece.\nSeparately these pieces are the array of tools to work within one’s self. Together, they are a complete road map to unfasten what you may have blocked or sealed inside. Meditate with a deep breath and your eyes open. Focus on the center of each solid while the hypnotic movement and vibrations become your guide.\nEach piece of music has been written in 432Hz, the language of the universe, and deeply understood by every cell in our body.",
   "Preview_URL":"https://www.arweave.net/29yxuSJeo9e0zfEj1htFBZLGiUpfzd_dMsTyqRmgsZQ",
   "External_URL":"",
   "Properties":{
      "symbol":"",
      "seller_fee_basis_points":1000,
      "files":[
         "https://www.arweave.net/29yxuSJeo9e0zfEj1htFBZLGiUpfzd_dMsTyqRmgsZQ",
         "https://arweave.net/WNLzR36v80IS61yeWyPYstF3qacWDXcDmYLp-RldYFQ",
         "https://arweave.net/eYnBkJLEabDdr3l-3G1q7ORujAbLwyTPLIvJ0vE8pMk"
      ],
      "category":"video",
      "fileTypes":[
         "metadata",
         "image",
         "h.264",
         "raw"
      ],
      "creators":[
         {
            "address":"onogkB6qRYoM21nWjMyiiP2g2xiEAMkMpf4GmQNxJYs",
            "verified":true,
            "share":33
         },
         {
            "address":"5NVNLQ4b8MauvQFQ1HWGciT7mNwFegbGF4yasPvTAPbD",
            "verified":false,
            "share":33
         },
         {
            "address":"H1pqWLQS5EHudX6ueHJjFVoYr5vD47iZoGtAudT618zj",
            "verified":false,
            "share":33
         }
      ]
   }
}


```

{% endtab %}

{% tab title="format="metaplex"" %}

```javascript
{
   "authority":"onogkB6qRYoM21nWjMyiiP2g2xiEAMkMpf4GmQNxJYs",
   "mint":"GPcKV69q8Rq2bd1arZ7t2YYceKVwAJr67Rqnr322kJzS",
   "name":"Sacral",
   "symbol":"",
   "url":"https://arweave.net/P90yWv4cvVSczPnSPNn71UPVMRk5jYop6LU9ofFVkKo",
   "seller_fee_basis_points":1000,
   "creators":[
      {
         "address":"onogkB6qRYoM21nWjMyiiP2g2xiEAMkMpf4GmQNxJYs",
         "verified":1,
         "share":16
      },
      {
         "address":"5NVNLQ4b8MauvQFQ1HWGciT7mNwFegbGF4yasPvTAPbD",
         "verified":1,
         "share":42
      },
      {
         "address":"H1pqWLQS5EHudX6ueHJjFVoYr5vD47iZoGtAudT618zj",
         "verified":1,
         "share":42
      }
   ],
   "json":{
      "name":"Sacral",
      "symbol":"",
      "description":"CHAKRASTASTIC 111 is a deep exploration through the seven chakras, created to unleash the infinite abundance that exists in all of us!   The core of each platonic solid, vibration & frequency are represented within each piece.\nSeparately these pieces are the array of tools to work within one’s self. Together, they are a complete road map to unfasten what you may have blocked or sealed inside. Meditate with a deep breath and your eyes open. Focus on the center of each solid while the hypnotic movement and vibrations become your guide.\nEach piece of music has been written in 432Hz, the language of the universe, and deeply understood by every cell in our body.",
      "seller_fee_basis_points":1000,
      "image":"https://www.arweave.net/29yxuSJeo9e0zfEj1htFBZLGiUpfzd_dMsTyqRmgsZQ",
      "external_url":"",
      "properties":{
         "files":[
            "https://www.arweave.net/29yxuSJeo9e0zfEj1htFBZLGiUpfzd_dMsTyqRmgsZQ",
            "https://arweave.net/WNLzR36v80IS61yeWyPYstF3qacWDXcDmYLp-RldYFQ",
            "https://arweave.net/eYnBkJLEabDdr3l-3G1q7ORujAbLwyTPLIvJ0vE8pMk"
         ],
         "category":"video",
         "fileTypes":[
            "metadata",
            "image",
            "h.264",
            "raw"
         ],
         "creators":[
            {
               "address":"onogkB6qRYoM21nWjMyiiP2g2xiEAMkMpf4GmQNxJYs",
               "verified":true,
               "share":33
            },
            {
               "address":"5NVNLQ4b8MauvQFQ1HWGciT7mNwFegbGF4yasPvTAPbD",
               "verified":false,
               "share":33
            },
            {
               "address":"H1pqWLQS5EHudX6ueHJjFVoYr5vD47iZoGtAudT618zj",
               "verified":false,
               "share":33
            }
         ]
      }
   }
}
```

{% endtab %}
{% endtabs %}
{% endtab %}

{% tab title="404 Could not find an NFT matching this query." %}

```javascript
    {
    "name": "NotFound",
    "message": "No NFT",
    "code": 404,
    "className": "not-found",
    "errors": {}
    }
```

{% endtab %}
{% endtabs %}

### Example**s**

#### Default format

{% embed url="<https://api.all.art/v1/solana/DVjW2v8A9mnt6pQZtBf5yb2VNBFP68zJQPiHMTZjbrfw>" %}

**Metaplex format**

{% embed url="<https://api.all.art/v1/solana/DVjW2v8A9mnt6pQZtBf5yb2VNBFP68zJQPiHMTZjbrfw?format=metaplex>" %}

## Get NFTs for Wallet

## Get NFTs for Wallet

<mark style="color:blue;">`GET`</mark> `https://api.all.art/v1/wallet/:pubkey`

This methos allow you to get NFTs for specific wallet.

#### Path Parameters

| Name   | Type   | Description             |
| ------ | ------ | ----------------------- |
| pubkey | string | PubKey of Solana wallet |

#### Query Parameters

| Name    | Type   | Description                                                                                                              |
| ------- | ------ | ------------------------------------------------------------------------------------------------------------------------ |
| format  | string | "default" \| "metaplex", if a format is not provided , "default" is used                                                 |
| cluster | string | "mainnet-beta" \| "devnet" \| "test" (Clustor from @solana/web3.js), if a cluster is not provided, "mainnet-bet" is used |

{% tabs %}
{% tab title="200 NFT successfuly retrieved. Response is array of NFTs with desired format." %}
{% tabs %}
{% tab title="format="default"" %}

```javascript
[{
   "Blockchain":"Solana",
   "Class":"",
   "Subclass":"",
   "Platform":"Ono",
   "Platform_URL":"https://ono.art/",
   "Items":[],
   "Standard":"Metaplex",
   "Creators":[
      {
         "address":"onogkB6qRYoM21nWjMyiiP2g2xiEAMkMpf4GmQNxJYs",
         "verified":1,
         "share":16
      },
      {
         "address":"5NVNLQ4b8MauvQFQ1HWGciT7mNwFegbGF4yasPvTAPbD",
         "verified":1,
         "share":42
      },
      {
         "address":"H1pqWLQS5EHudX6ueHJjFVoYr5vD47iZoGtAudT618zj",
         "verified":1,
         "share":42
      }
   ],
   "Creation_date":1623269472,
   "Mint":"GPcKV69q8Rq2bd1arZ7t2YYceKVwAJr67Rqnr322kJzS",
   "Title":"Sacral",
   "Description":"CHAKRASTASTIC 111 is a deep exploration through the seven chakras, created to unleash the infinite abundance that exists in all of us!   The core of each platonic solid, vibration & frequency are represented within each piece.\nSeparately these pieces are the array of tools to work within one’s self. Together, they are a complete road map to unfasten what you may have blocked or sealed inside. Meditate with a deep breath and your eyes open. Focus on the center of each solid while the hypnotic movement and vibrations become your guide.\nEach piece of music has been written in 432Hz, the language of the universe, and deeply understood by every cell in our body.",
   "Preview_URL":"https://www.arweave.net/29yxuSJeo9e0zfEj1htFBZLGiUpfzd_dMsTyqRmgsZQ",
   "External_URL":"",
   "Properties":{
      "symbol":"",
      "seller_fee_basis_points":1000,
      "files":[
         "https://www.arweave.net/29yxuSJeo9e0zfEj1htFBZLGiUpfzd_dMsTyqRmgsZQ",
         "https://arweave.net/WNLzR36v80IS61yeWyPYstF3qacWDXcDmYLp-RldYFQ",
         "https://arweave.net/eYnBkJLEabDdr3l-3G1q7ORujAbLwyTPLIvJ0vE8pMk"
      ],
      "category":"video",
      "fileTypes":[
         "metadata",
         "image",
         "h.264",
         "raw"
      ],
      "creators":[
         {
            "address":"onogkB6qRYoM21nWjMyiiP2g2xiEAMkMpf4GmQNxJYs",
            "verified":true,
            "share":33
         },
         {
            "address":"5NVNLQ4b8MauvQFQ1HWGciT7mNwFegbGF4yasPvTAPbD",
            "verified":false,
            "share":33
         },
         {
            "address":"H1pqWLQS5EHudX6ueHJjFVoYr5vD47iZoGtAudT618zj",
            "verified":false,
            "share":33
         }
      ]
   }
}]
```

{% endtab %}

{% tab title="format="metaplex"" %}

```
[{
   "authority":"onogkB6qRYoM21nWjMyiiP2g2xiEAMkMpf4GmQNxJYs",
   "mint":"GPcKV69q8Rq2bd1arZ7t2YYceKVwAJr67Rqnr322kJzS",
   "name":"Sacral",
   "symbol":"",
   "url":"https://arweave.net/P90yWv4cvVSczPnSPNn71UPVMRk5jYop6LU9ofFVkKo",
   "seller_fee_basis_points":1000,
   "creators":[
      {
         "address":"onogkB6qRYoM21nWjMyiiP2g2xiEAMkMpf4GmQNxJYs",
         "verified":1,
         "share":16
      },
      {
         "address":"5NVNLQ4b8MauvQFQ1HWGciT7mNwFegbGF4yasPvTAPbD",
         "verified":1,
         "share":42
      },
      {
         "address":"H1pqWLQS5EHudX6ueHJjFVoYr5vD47iZoGtAudT618zj",
         "verified":1,
         "share":42
      }
   ],
   "json":{
      "name":"Sacral",
      "symbol":"",
      "description":"CHAKRASTASTIC 111 is a deep exploration through the seven chakras, created to unleash the infinite abundance that exists in all of us!   The core of each platonic solid, vibration & frequency are represented within each piece.\nSeparately these pieces are the array of tools to work within one’s self. Together, they are a complete road map to unfasten what you may have blocked or sealed inside. Meditate with a deep breath and your eyes open. Focus on the center of each solid while the hypnotic movement and vibrations become your guide.\nEach piece of music has been written in 432Hz, the language of the universe, and deeply understood by every cell in our body.",
      "seller_fee_basis_points":1000,
      "image":"https://www.arweave.net/29yxuSJeo9e0zfEj1htFBZLGiUpfzd_dMsTyqRmgsZQ",
      "external_url":"",
      "properties":{
         "files":[
            "https://www.arweave.net/29yxuSJeo9e0zfEj1htFBZLGiUpfzd_dMsTyqRmgsZQ",
            "https://arweave.net/WNLzR36v80IS61yeWyPYstF3qacWDXcDmYLp-RldYFQ",
            "https://arweave.net/eYnBkJLEabDdr3l-3G1q7ORujAbLwyTPLIvJ0vE8pMk"
         ],
         "category":"video",
         "fileTypes":[
            "metadata",
            "image",
            "h.264",
            "raw"
         ],
         "creators":[
            {
               "address":"onogkB6qRYoM21nWjMyiiP2g2xiEAMkMpf4GmQNxJYs",
               "verified":true,
               "share":33
            },
            {
               "address":"5NVNLQ4b8MauvQFQ1HWGciT7mNwFegbGF4yasPvTAPbD",
               "verified":false,
               "share":33
            },
            {
               "address":"H1pqWLQS5EHudX6ueHJjFVoYr5vD47iZoGtAudT618zj",
               "verified":false,
               "share":33
            }
         ]
      }
   }
}]
```

{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}

### Examples

#### Default format

{% embed url="<https://api.all.art/v1/wallet/fmnXTt5sUnpcAAWd6gzdrZQKpFan6WPmGZZqDaJHrZC>" %}

#### Metaplex format

{% embed url="<https://api.all.art/v1/wallet/fmnXTt5sUnpcAAWd6gzdrZQKpFan6WPmGZZqDaJHrZC?format=metaplex>" %}
