API ReferenceNFT APIGet NFTsSearch NFTsVersion: 2.0Search NFTsGEThttps://deep-index.moralis.io/api/v2/nft/searchGet NFTs that match a given metadata search query.DEPRECATED ENDPOINTThis API will be deprecated on 4th September 2023. Please subscribe to the Changelog page for further announcements.QUERY PARAMSchainstringThe chain to queryeth0x1goerli0x5sepolia0xaa36a7polygon0x89mumbai0x13881bsc0x38bsc testnet0x61avalanche0xa86afantom0xfapalm0x2a15c308dcronos0x19arbitrum0xa4b1formatstringThe format of the token IDdecimalhexqstringrequiredThe search stringfilterstringWhat fields the search should match on. To look into the entire metadata set the value to 'global'. To have a better response time you can look into a specific field like namenamedescriptionattributesglobalname,descriptionname,attributesdescription,attributesname,description,attributesfrom_blocknumberThe minimum block number from which to start the searchProvide the param 'from_block' or 'from_date'If 'from_date' and 'from_block' are provided, 'from_block' will be used.to_blocknumberThe maximum block number from which to end the searchProvide the param 'to_block' or 'to_date'If 'to_date' and 'to_block' are provided, 'to_block' will be used.from_datestringThe date from which to start the search (any format that is accepted by momentjs)Provide the param 'from_block' or 'from_date'If 'from_date' and 'from_block' are provided, 'from_block' will be used.to_datestringGet search results up until this date (any format that is accepted by momentjs)Provide the param 'to_block' or 'to_date'If 'to_date' and 'to_block' are provided, 'to_block' will be used.addressesarrayThe addresses to get metadata for+ ADDcursorstringThe cursor returned in the previous response (used for getting the next page). Learn more on cursor pagination here.limitnumberThe desired page size of the result.disable_totalboolean⚠️ Deprecating soon. If the result should skip returning the total count (Improves performance). This parameter defaults to true.falsetrueResponses200 Returns the matching NFTsobjectAPI KEYTry ItNode.jsPythoncURLGoPHPimport Moralis from 'moralis';try { await Moralis.start({ apiKey: "YOUR_API_KEY" }); const response = await Moralis.EvmApi.nft.searchNFTs({ "chain": "0x1", "format": "decimal", "filter": "name" }); console.log(response.raw);} catch (e) { console.error(e);}from moralis import evm_apiapi_key = "YOUR_API_KEY"params = { "chain": "eth", "format": "decimal", "filter": "name"}result = evm_api.nft.search_nfts( api_key=api_key, params=params,)print(result)curl --request GET \ --url 'https://deep-index.moralis.io/api/v2/nft/search?chain=eth&format=decimal&filter=name' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://deep-index.moralis.io/api/v2/nft/search?chain=eth&format=decimal&filter=name" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://deep-index.moralis.io/api/v2/nft/search?chain=eth&format=decimal&filter=name', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns the matching NFTs{ "total": "2000", "page": "2", "page_size": "100", "result": { "token_id": "889", "token_address": "0x8ce66ff0865570d1ff0bb0098fa41b4dc61e02e6", "token_uri": "https://ipfs.moralis.io:2053/ipfs/QmZZbo8u8zEWg7wtmZhJS2W718WL6FA95T4XdgmCcLp1SJ/889.json", "metadata": "{\"name\":\"Bape #889\",\"description\":\"The #1 metavestor clan (NFT/DAO) by a team with multi billion dollar company experience.\",\"image\":\"https://bapesclan.mypinata.cloud/ipfs/QmTSUD5JA6qHaC5t25mcXySfz19AV9u4Mb6Na7ntQ6tEwf/889.jpg\",\"attributes\":[{\"trait_type\":\"Background\",\"value\":\"Black\"},{\"trait_type\":\"Body\",\"value\":\"Man\"},{\"trait_type\":\"Dress\",\"value\":\"Suit Tie Blue\"},{\"trait_type\":\"Face\",\"value\":\"Pipe\"},{\"trait_type\":\"Eye\",\"value\":\"Eye\"}]}", "is_valid": "1", "syncing": "2", "frozen": "0", "resyncing": "0", "contract_type": "ERC721", "token_hash": "fffa3102469ce77f569893d16d5884f9", "batch_id": "fd995c8a-f8b2-40cb-a407-f43e552638b4", "metadata_name": "Bape #889", "metadata_description": "The #1 metavestor clan (NFT/DAO) by a team with multi billion dollar company experience.", "metadata_attributes": "[{\"trait_type\":\"Background\",\"value\":\"Black\"},{\"trait_type\":\"Body\",\"value\":\"Man\"},{\"trait_type\":\"Dress\",\"value\":\"Suit Tie Blue\"},{\"trait_type\":\"Face\",\"value\":\"Pipe\"},{\"trait_type\":\"Eye\",\"value\":\"Eye\"}]", "block_number_minted": "14265936", "minter_address": "0xdcf086e3f7954b38180daae1405569da86588bfe", "transaction_minted": "0x2c8d7ec7a8439b0f67b50e93be63242de52e9b5cdfc7dc0aee80c6a2f104c41a", "last_token_uri_sync": "2021-02-24T00:47:26.647Z", "last_metadata_sync": "2021-02-24T00:47:26.647Z", "createdAt": "2022-02-24T00:47:26.647Z", "updatedAt": "2022-04-09T23:56:44.807Z", "possible_spam": "false", "verified_collection": "false" }}