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
Version: 2.2

Get NFT collections by collection ID hashes

GEThttps://mainnet-aptos-api.moralis.io/collections/ids

Get one or many NFT Collections by collection ID hash.

QUERY PARAMS
idsarrayrequired
The identifiers of the collections to get
No items in the array
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.AptosApi.collections.getNFTCollectionsByIds({
"network": "mainnet"
});

console.log(response);
} catch (e) {
console.error(e);
}
Response Example
[
{
"collection_data_id_hash": "6993fb8b5688d392a2d94127b9926519d6327e69f2bcf3dc0c5df2c060aec97d",
"collection_name": "Topaz Troopers",
"creator_address": "0x9125e4054d884fdc7296b66e12c0d63a7baa0d88c77e8e784987c0a967c670ac",
"description": "A badge which proves you are an OG #TopazTrooper.",
"description_mutable": "false",
"last_transaction_timestamp": "2022-09-17T22:03:32.000000Z",
"last_transaction_version": "210373856",
"maximum": "18446744073709551615",
"maximum_mutable": "false",
"metadata_uri": "https://static-cdn.risewallet.io/nft/aptos-monkeys/1572.jpeg",
"supply": "32976",
"table_handle": "0x293d59ded27fc85fef070b026834d2be7e7ced76c3c32ecbcd4f44b461518c30",
"uri_mutable": "false"
}
]