Get metadata for multiple NFT contracts
curl --request POST \
--url https://deep-index.moralis.io/api/v2.2/nft/metadata \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"addresses": [
"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"
]
}
'import requests
url = "https://deep-index.moralis.io/api/v2.2/nft/metadata"
payload = { "addresses": ["0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({addresses: ['0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']})
};
fetch('https://deep-index.moralis.io/api/v2.2/nft/metadata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://deep-index.moralis.io/api/v2.2/nft/metadata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'addresses' => [
'0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://deep-index.moralis.io/api/v2.2/nft/metadata"
payload := strings.NewReader("{\n \"addresses\": [\n \"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://deep-index.moralis.io/api/v2.2/nft/metadata")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"addresses\": [\n \"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://deep-index.moralis.io/api/v2.2/nft/metadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"addresses\": [\n \"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d\"\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"token_address": "0x2d30ca6f024dbc1307ac8a1a44ca27de6f797ec22ef20627a1307243b0ab7d09",
"name": "KryptoKitties",
"symbol": "RARI",
"contract_type": "ERC721",
"possible_spam": "false",
"verified_collection": "false",
"synced_at": "<string>",
"collection_logo": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png",
"collection_banner_image": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png",
"collection_category": "Art",
"project_url": "https://www.cryptokitties.co/",
"wiki_url": "https://en.wikipedia.org/wiki/CryptoKitties",
"discord_url": "https://discord.com/invite/cryptokitties",
"telegram_url": "https://t.me/cryptokitties",
"twitter_username": "CryptoKitties",
"instagram_username": "cryptokitties",
"floor_price": "12345",
"floor_price_usd": "12345.4899",
"floor_price_currency": "eth",
"last_sale": {
"transaction_hash": "0x19e14f34b8f120c980f7ba05338d64c00384857fb9c561e2c56d0f575424a95c",
"block_timestamp": "2023-04-04T15:59:11.000Z",
"buyer_address": "0xcb1c1fde09f811b294172696404e88e658659905",
"seller_address": "0x497a7dee2f13db161eb2fec060fa783cb041419f",
"price": "7300000000000000",
"price_formatted": "0.0073",
"payment_token": {
"token_name": "Ether",
"token_symbol": "ETH",
"token_logo": "https://cdn.moralis.io/eth/0x.png",
"token_decimals": "18",
"token_address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
},
"usd_price_at_sale": "13.61",
"current_usd_value": "15.53",
"token_address": "0xe8778996e096b39705c6a0a937eb587a1ebbda17",
"token_id": "170"
}
}
]Metadata & Info
Collection Metadata (Batch)
Retrieve metadata (name, symbol) for up to 25 NFT contracts in one call. Also returns off-chain metadata, floor prices and more where available.
POST
/
nft
/
metadata
Get metadata for multiple NFT contracts
curl --request POST \
--url https://deep-index.moralis.io/api/v2.2/nft/metadata \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"addresses": [
"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"
]
}
'import requests
url = "https://deep-index.moralis.io/api/v2.2/nft/metadata"
payload = { "addresses": ["0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({addresses: ['0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']})
};
fetch('https://deep-index.moralis.io/api/v2.2/nft/metadata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://deep-index.moralis.io/api/v2.2/nft/metadata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'addresses' => [
'0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://deep-index.moralis.io/api/v2.2/nft/metadata"
payload := strings.NewReader("{\n \"addresses\": [\n \"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://deep-index.moralis.io/api/v2.2/nft/metadata")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"addresses\": [\n \"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://deep-index.moralis.io/api/v2.2/nft/metadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"addresses\": [\n \"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d\"\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"token_address": "0x2d30ca6f024dbc1307ac8a1a44ca27de6f797ec22ef20627a1307243b0ab7d09",
"name": "KryptoKitties",
"symbol": "RARI",
"contract_type": "ERC721",
"possible_spam": "false",
"verified_collection": "false",
"synced_at": "<string>",
"collection_logo": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png",
"collection_banner_image": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png",
"collection_category": "Art",
"project_url": "https://www.cryptokitties.co/",
"wiki_url": "https://en.wikipedia.org/wiki/CryptoKitties",
"discord_url": "https://discord.com/invite/cryptokitties",
"telegram_url": "https://t.me/cryptokitties",
"twitter_username": "CryptoKitties",
"instagram_username": "cryptokitties",
"floor_price": "12345",
"floor_price_usd": "12345.4899",
"floor_price_currency": "eth",
"last_sale": {
"transaction_hash": "0x19e14f34b8f120c980f7ba05338d64c00384857fb9c561e2c56d0f575424a95c",
"block_timestamp": "2023-04-04T15:59:11.000Z",
"buyer_address": "0xcb1c1fde09f811b294172696404e88e658659905",
"seller_address": "0x497a7dee2f13db161eb2fec060fa783cb041419f",
"price": "7300000000000000",
"price_formatted": "0.0073",
"payment_token": {
"token_name": "Ether",
"token_symbol": "ETH",
"token_logo": "https://cdn.moralis.io/eth/0x.png",
"token_decimals": "18",
"token_address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
},
"usd_price_at_sale": "13.61",
"current_usd_value": "15.53",
"token_address": "0xe8778996e096b39705c6a0a937eb587a1ebbda17",
"token_id": "170"
}
}
]Query Parameters
The chain to query
Available options:
eth, 0x1, polygon, 0x89, bsc, 0x38, avalanche, 0xa86a, cronos, 0x19, arbitrum, 0xa4b1, chiliz, 0x15b38, gnosis, 0x64, base, 0x2105, optimism, 0xa, linea, 0xe708, moonbeam, 0x504, moonriver, 0x505, flow, 0x2eb, ronin, 0x7e4, lisk, 0x46f, pulse, 0x171, sei, 0x531, monad, 0x8f Response
200 - application/json
Returns the metadata for the requested NFT collections.

