added
Multi-chain Collection Search
almost 2 years ago by Indrek Mossov
NFTPort introduces a new Collection Search multi-chain feature, covered in
- Ethereum
- Polygon
- Solana
Using a simple text query you can perform a search like on Google
This search considers collections volumes and other parameters to filter out the best and most relevant search results for you.
The response includes the current top 50 most relevant results, sorted in descending order
Why it's helpful?
Search is an important feature if you aggregate multiple collections and NFTs - simplify access to your data
Options
text
- Search querychain
- Blockchains from which to query contracts. The default chains are Ethereum and Polygon. Choose only one chain for faster response.
REST
GET /v0/search/contracts?text=keyword&chain=ethereum&chain=polygon&chain=solana&page_size=10
CURL
curl --request GET \
--url 'https://api.nftport.xyz/v0/search/contracts?text=keyword&chain=ethereum&chain=polygon&chain=solana&page_size=10' \
--header 'Authorization: YOUR_API_KEY' \
--header 'accept: application/json'
Example response
"response": "OK",
"search_results": [
{
"chain": "solana",
"contract_address": "degods-2e761366",
"name": "DeGods",
"symbol": "degods",
"metadata": {
"description": "A collection of degenerates, punks, and misfits. Gods of the metaverse & masters of our own universe. DeGods can be converted to DeadGods with DUST.",
"thumbnail_url": "https://i.imgur.com/fO3tI1t.png",
"cached_thumbnail_url": "https://storage.googleapis.com/sentinel-nft/raw-assets/fO3tI1t.png",
"banner_url": null,
"cached_banner_url": null
}
},