Implement Search

Estimated completion time: 5 minutes.

Integrating our NFT search endpoints is simple: just follow along, no previous blockchain experience needed - just follow along. ✌️

You can see our Search APIs live with Fingible.

Enhanced APIs

This quickstart covers:

  1. How to perform Multi-chain NFT search

Pre-requirements

  1. Sign up for your free API key

How to perform Multi-chain NFT search

Using our Search API you can perform powerful search across multiple chains using a text query.

Add your API key, set Content-Type as application/json and set text to the desired search query. You can set a filter_by_contract_address to perform search in a particular collection.

For API reference and more code samples, see Multi-chain NFT search.

curl --request GET \
  --url 'https://api.nftport.xyz/v0/search?chain=all&text=fruit' \
  --header 'Authorization: <<apiKey>>' \
  --header 'Content-Type: application/json'
import requests

url = "https://api.nftport.xyz/v0/recommendations/similar_nfts/urls"

payload = {
    "url": "https://art.art/wp-content/uploads/2021/09/jamesnielsen_art.jpg",
    "page_number": 1,
    "page_size": 50
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "<<apiKey>>"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'GET',
  headers: {'Content-Type': 'application/json', Authorization: '<<apiKey>>'}
};

fetch('https://api.nftport.xyz/v0/search?chain=all&text=fruit&filter_by_contract_address=None', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));

What this looks like:

Search API

Join the Community for Support and to Build Together

Join our Discord community if you need support from our team and a space to discuss NFT related topics, voice feature requests, and engage with other like-minded NFT developers.