post https://rest-api.hellomoon.io/v0/nft/listings
The NFT Listings endpoint provides different degrees of perspective NFT datasets. Viewing NFTs from a specific market or collection, down to a single unique NFT mint.
Hello Moon also delivers the nft listing actions - ask, cancel_ask, put_for_sale, and sale_cancel
So you know what is really happening.
Data goes back 30 days
Examples
100 Most Recent Listings for a Collection on ME
const axios = require("axios");
const url = "https://rest-api.hellomoon.io/v0/nft/listings";
async function getNftListings() {
const { data } = await axios.post(
url,
{
"helloMoonCollectionId": "040de757c0d2b75dcee999ddd47689c4",
"market": "MEv2",
"limit": 100,
"page": 1,
"instructionName": "ask"
},
{
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Authorization: "Bearer <your_token>",
},
}
);
console.log(data);
}