Interactive NFD lookup
'Looking up' an NFD interactively (debounce)
If you want to provide interactive search features for an NFD. You can use the NFD 'search' endpoint using the prefix query parameter.
The endpoint is the /nfd/v2/search endpoint. It takes many query parameters but only certain types should be specified at one time.
ie: prefix, but not owner or reservedFor.
Search NFDs via various filters
name or partial match of NFD name to filter on
The parent NFD Application ID to find. Used for fetching segments of an NFD
1000000An Algorand Account address
4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZUPattern: ^[A-Z2-7]{57}[AEIMQUY4]$An Algorand Account address
4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZUPattern: ^[A-Z2-7]{57}[AEIMQUY4]$Should NFDs reserved for an account (transfers for example or unclaimed winning auctions) be excluded
The start of an NFD name, fetching multiple NFDs that have that prefix
Part of an NFD name, fetching multiple NFDs that have that substring (minimum 3 characters)
Verified property name to search on - specify value with vvalue
telegramPossible values: Value to find in the vproperty field specified with the vproperty parameter
abc123Whether to explicitly filter on segments being locked or unlocked. Typically only valuable when filtering on unlocked
falseWhether to explicitly filter on NFD roots or segments. True to only see roots, False to only see segments.
falseMinimum price of NFD
Maximum price of NFD
Minimum price of NFD Segment in USD (cents)
Maximum price of NFD Segment in USD (cents)
Fetch NFDs that changed after the specified timestamp
1970-01-01T00:00:01ZReturn only NFDs with an expiration time at or before the specified timestamp
1970-01-01T00:00:01ZLimit the number of results returned - max 200
50Starting document in large list. Fetch 1-100 [limit 100], pass offset 100 to fetch 100-200
0What to sort on
createdDescPossible values: View of data to return, tiny (name, owner, caAlgo, unverifiedCaAlgo only), brief (default), or full
briefPossible values: etag
OK response.
ETag not changed
invalidAddress: invalidAddress is returned for an Algorand address that doesn't appear to be valid
notFound: Not Found response.
rateLimited: Too Many Requests response.
GET /nfd/v2/search HTTP/1.1
Host: api.nf.domains
Accept: */*
{
"match-check": "abc123",
"nfds": [
{
"appID": 1000000,
"asaID": 1,
"avatarOutdated": false,
"caAlgo": [
"4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZU"
],
"cache-control": "abc123",
"category": "abc123",
"currentAsOfBlock": 1,
"depositAccount": "4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZU",
"etag": "abc123",
"expired": false,
"match-check": "abc123",
"metaTags": [
"abc123"
],
"name": "abc123",
"nfdAccount": "4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZU",
"owner": "4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZU",
"parentAppID": 1000000,
"properties": {
"internal": {
"abc123": "abc123"
},
"userDefined": {
"ca:b": "abc123"
},
"verified": {
"caAlgo": "abc123"
}
},
"reservedFor": "4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZU",
"saleType": "abc123",
"sellAmount": 1,
"seller": "4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZU",
"sigNameAddress": "4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZU",
"state": "abc123",
"tags": [
"abc123"
],
"timeChanged": "1970-01-01T00:00:01Z",
"timeCreated": "1970-01-01T00:00:01Z",
"timeExpires": "1970-01-01T00:00:01Z",
"timePurchased": "1970-01-01T00:00:01Z",
"unverifiedCa": {
"btc": [
"12KKDt4Mj7N5UAkQMN7LtPZMayenXHa8KL"
]
},
"unverifiedCaAlgo": [
"4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZU"
]
}
],
"total": 1
}Example
The thumbnail view will return verified and userDefined avatars for names. This way, the UI can show avatars with choices as well, as seen here in this NFDomains search UI example:

Note the verified.avatarasaid property in this example (same exists for banner, bannerasaid when fetching with other views). For integrations that manage their own ASA caching, this may make it easier to reference already cached versions of the NFT image if the ASA id is used instead of IPFS CID references.
Last updated