NFT API: 3 Things to Try

To help you get to grips with the NFT API, we have created the NFT API Playground. This really simple application took a few hours but provides an easy and fun way to visualize how the API works. It also gives you an indication of the type of things you can quickly develop with the NFT API.

Bear in mind that this little app is focused purely on the GET NFT Assets endpoint and utilizes only a sliver of the API’s potential.

Below, we’ve provided a few examples of how to use the app.

Get a List of NFTs Owned by a Wallet

In this example, you will quickly obtain a list of Bored Ape Yacht Club NFTs owned by a particular wallet.

Step 1: Visit the NFT API Playground.

Step 2: In the Collection field, enter: Bored Ape Yacht Club.

Step 3: In the Wallet Address field, enter any Ethereum wallet address, e.g:

0x30145D714Db337606c8f520bee9a3e3eAC910636

Note: The Request Details code block will now be updated.

Step 4: Hit the Send Request button.

Results:

  • The Response (JSON) code block will now show you the details of every Bored Ape Yacht Club NFT owned by your chosen wallet.
  • The Bored Ape images associated with your search will be shown on the right of your screen
    All BAYC Results.

Further Information: For more information on integrating this functionality into your application, check out: How to Get NFTs Owned By a Wallet

Get a List of NFTs With a Given Attribute

In this example, you will quickly obtain a list of Bored Ape Yacht Club NFTs with a given attribute/trait.

Step 1: Visit the NFT API Playground.

Step 2: In the Collection field, enter Bored Ape Yacht Club.

Step 3: Make sure the Wallet Address field is cleared.

Step 4: In the Attributes field, enter the Attribute:Value combination you want to filter on.

  • As an example, we’ll use the Mouth attribute with the value Bored Unshaven.
  • Therefore we’ll enter Mouth:Bored Unshaven in the Attributes field.

Note: The Request Details code block will now be updated:

Step 5: Hit the Send Request button.

Results:

  • The Response (JSON) code block will now show you the details of every Bored Ape Yacht Club NFT with your specified attribute.
  • The Bored Ape images associated with your search will be shown on the right of your screen.

Further Information: For more information on integrating this functionality into your application, check out: How to Get NFTs with Given Attributes in a Collection

Get a List of All NFTs in a Collection

In this example, you will quickly obtain a list of all Azuki NFTs.

Step 1: Visit the NFT API Playground.

Step 2: In the Collection field, enter the collection you want to search for.

  • In our example, we will use the Azuki collection.

Note: The Contract Address field will be automatically updated.

Note: The Request Details code block will now be updated.

Step 3: Hit the Send Request button.

Results:

  • The Response (JSON) code block will now show you the details of every Azuki NFT.
  • The Azuki images will be shown on the right of your screen.

Further Information: For more information on integrating this functionality into your application, with additional filtering, check out: How to Get All the NFTs in a Collection, Sorted by Mint Date.