How to get NFT Sales Data?

If Quicknode able to get sale price from NFTs sold on marketplaces such as blur?

I tried use the graphql api but get value = 0,
please give example of api usage, doesn’t need to be graphql api, just any way to do it using quicknode

Hey KnightCoder,

You can attempt to query the GraphQL API by using something like

query BoredApe1($contractAddress: String!, $filter: TokenEventsFilterInput) {
  ethereum {
    collection(contractAddress: $contractAddress) {
        tokenEvents(filter: $filter) {
          edges {
            node {
              ... on TokenSaleEvent {
                fromAddress
                receivedTokenQuantity
                receivedTokenContract {
                  ... on TokenContract {
                    name
                    supportedErcInterfaces
                    symbol
                  }
                }
                sentTokenQuantity
                sentTokenId
                sentTokenContract {
                  symbol
                  name
                  address
                }
              }
              transactionHash
            }
          }
        }
      }
    }
  }
}

Variables

{
  "contractAddress": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
  "filter": {
    "marketplace": {
      "in":["BLUR"]
    }
  }
}

-Nick