Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key

Get NFTs by contract

GEThttps://deep-index.moralis.io/api/v2.2/nft/:address

Get NFTs for a given contract address, including metadata for all NFTs (where available).

  • Results are limited to 100 per page by default
  • Requests for contract addresses not yet indexed will automatically start the indexing process for that NFT collection.
PATH PARAMS
addressstringrequired
The address of the NFT contract
QUERY PARAMS
chainstring
The chain to query
formatstring
The format of the token ID
limitnumber
The desired page size of the result.
totalRangesnumber
The number of subranges to split the results into
rangenumber
The desired subrange to query
cursorstring
The cursor returned in the previous response (used for getting the next page).
normalizeMetadataboolean
Should normalized metadata be returned?
media_itemsboolean
Should preview media data be returned?
include_pricesboolean
Should NFT last sale prices be included in the result?
Responses
200Returns a collection of NFTs
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2.2/nft/0x306b1ea3ecdf94aB739F1910bbda052Ed4A9f949?chain=eth&format=decimal&limit=25' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
{
"cursor": "",
"page": "",
"page_size": 100,
"result": [
{
"token_address": "0x306b1ea3ecdf94ab739f1910bbda052ed4a9f949",
"token_id": "0",
"amount": "1",
"token_hash": "aeeb752cb04b7e8df19f6cd1344f04de",
"block_number": "16531009",
"block_number_minted": "14492080",
"contract_type": "ERC721",
"name": "Beanz",
"symbol": "BEANZ",
"token_uri": "ipfs://QmdYeDpkVZedk1mkGodjNmF35UNxwafhFLVvsHrWgJoz6A/beanz_metadata/0",
"metadata": "...",
"last_token_uri_sync": "2025-02-18T09:58:55.950Z",
"last_metadata_sync": "2025-02-18T09:58:56.162Z",
"minter_address": "0xd45058bf25bbd8f586124c479d384c8c708ce23a",
"owner_of": "0x2ae6b0630ebb4d155c6e04fcb16840ffa77760aa",
"rarity_rank": 10072,
"rarity_percentage": 50.49,
"rarity_label": "Top 51%",
"possible_spam": "",
"verified_collection": true,
"last_sale": {
"transaction_hash": "0x19e14f34b8f120c980f7ba05338d64c00384857fb9c561e2c56d0f575424a95c",
"block_timestamp": "2024-04-04T15:59:11.000Z",
"buyer_address": "0xcb1c1fde09f811b294172696404e88e658659905",
"seller_address": "0x497a7dee2f13db161eb2fec060fa783cb041419f",
"price": "7300000000000000",
"price_formatted": "0.0073",
"usd_price_at_sale": "13.61",
"current_usd_value": "15.53",
"token_id": "0",
"payment_token": {
"token_name": "Ether",
"token_symbol": "ETH",
"token_logo": "https://cdn.moralis.io/eth/0x.png",
"token_decimals": "18",
"token_address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
}
},
"list_price": {
"listed": "",
"price": "",
"price_currency": "",
"price_usd": "",
"marketplace": ""
},
"normalized_metadata": {
"name": "Bean #0",
"description": "",
"animation_url": "",
"external_link": "",
"image": "ipfs://QmTRuWHr7bpqscUWFmhXndzf5AdQqkekhqwgbyJCqKMHrL/0.png",
"attributes": [
{
"trait_type": "Background",
"value": "Off White D",
"display_type": "",
"max_value": "",
"trait_count": "",
"order": "",
"rarity_label": "Top 25% trait",
"count": 4836,
"percentage": 24.24
}
]
},
"collection_logo": "https://i.seadn.io/gae/_R4fuC4QGYd14-KwX2bD1wf-AWjDF2VMabfqWFJhIgiN2FnAUpnD5PLdJORrhQ8gly7KcjhQZZpuzYVPF7CDSzsqmDh97z84j2On?w=500&auto=format",
"collection_banner_image": "https://i.seadn.io/gae/WRcl2YH8E3_7884mcJ0DRN7STGqA8xZQKd-0MFmPftlxUR6i1xB9todMXRW2M6SIpXKAZ842UqKDm1UrkKG8nr7l9NjCkIw-GLQSFQ?w=500&auto=format",
"collection_category": "pfps",
"project_url": "https://www.azuki.com/beanz",
"wiki_url": "",
"discord_url": "",
"telegram_url": "",
"twitter_username": "Azuki",
"instagram_username": "",
"floor_price": "0.123999",
"floor_price_usd": "195.253",
"floor_price_currency": "eth"
}
]
}