Links
💻

NFT Sales

Query for y00ts sales on MagicEden

You can also loop this in a while loop to turn it into a sales bot!
const axios = require('axios')
​
const url = `https://api.helius.xyz/v1/nft-events?api-key=<api_key>`
​
const getSales = async () => {
const { data } = await axios.post(url, {
query: {
sources: ["MAGIC_EDEN"],
types: ["NFT_SALE"],
nftCollectionFilters: {
// y00ts collection address
verifiedCollectionAddress: ["4mKSoDDqApmF1DqXvVTSL6tu2zixrSSNjqMxUnwvVzy2"]
}
}
});
console.log("y00ts sales: ", data.result);
};
getSales();