Skip to main content

Get NFTs by ids

GEThttps://mainnet-aptos-api.moralis.io/nfts
QUERY PARAMS
token_idsarrayrequired
The identifiers of the tokens to get
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'Bearer': 'YOUR_API_KEY'
},
};

fetch('https://mainnet-aptos-api.moralis.io/nfts', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
Empty