Cover Image for Bitquery NFT Marketplace APIs: How to get NFT Data

Bitquery NFT Marketplace APIs: How to get NFT Data

NFT

Tracking NFT prices is important, but is it enough?

Most of the NFT liquidity (called mercenary liquidity) is provided by investors only interested in making a quick profit or following the new NFT in town. These investors are often willing to enter or exit a market quickly, regardless of the underlying fundamentals of the asset. This can make the market more volatile and less stable.

This is where Bitquery steps in with its extensive marketplace data covering major marketplaces, real-time prices, and ownership information through NFT APIs. You can start today for free with a developer plan.

In fact, Bitquery’s Explorer is a visual way to see the data in real-time. Below is a screenshot of real-time data on CRYPTOPUNKS NFT:

punks

Bitquery's APIs can be used with virtually any programming language, so don't worry about juggling platforms.

ide

Let’s see an example of how you can query BLUR token with Bitquery. In this below query, we get the top traded NFTs on the BLUR Marketplace. We do this by mentioning the marketplace contract in the transaction: to the field. We limit the result to the top 10 tokens.


query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {in: "seaport_v1.4"}}}, Transaction: {To: {is: "0x39da41747a83aeE658334415666f3EF92DD0D541"}}}
      orderBy: {descendingByField: "count"}
      limit: {count: 10}
    ) {
      tradeVol: sum(of: Trade_Buy_Amount)
      count
      buyers: count(distinct: Trade_Buy_Buyer)
      seller: count(distinct: Trade_Buy_Seller)
      nfts: count(distinct: Trade_Buy_Ids)
      Trade {
        Buy {
          Currency {
            Name
            ProtocolName
            Symbol
            Fungible
            SmartContract
          }
        }
      }
    }
  }
}

The information available for all NFT marketplaces through Bitquery's APIs, includes metadata, ownership history, and pricing data. But let's dive deeper into the unique offerings for each specific marketplace:

Bitquery Blur NFT API

The Bitquery BLUR API provides data on NFTs from the BLUR marketplace. This includes metadata, transfers, ownership history, and pricing data.

The introduction of Blend, the p2p lending platform made it easier for people to buy expensive NFTs. With these APIs, you can also track events like:

  • NFT Loans and Lending Information: Blur uses the Blend protocol to enable NFT loans. We can query Blur's Blend smart contract events to get different loan-related data including the latest loans by a lender or a particular NFT.

  • Auctions: You can get auction data, including new auctions. The StartAuction event is emitted when an auction is started for an NFT on the Blend smart contract. For example, we can get the latest 10 auctions started on Blur or auctions for a particular NFT.

  • Locked NFTs: A locked NFT is an NFT that is temporarily unable to be transferred or sold. It will be sold once the lock period has ended. The price of a locked NFT may be lower than the price of a non-locked NFT because the buyer cannot access the NFT until the lock period has expired. With Bitquery’s Blur API you can track locked NFT information for example latest trades or locked NFTs bought by a particular address.

  • Offers and Seizes: Track collateral seizes and canceled offers with Bitquery’s Blur API. For example, you can track in real-time the OfferCancelled event emitted when an offer is canceled.

Bitquery Opensea API

Opensea has its own API setup with premade endpoints that you can use. However, the API key is not easy to get. Moreover, there are rate limitations and little customisability.

opensea api 1 opensea api 2

The Bitquery Opensea API does the hard lifting for you by providing data on NFTs from the OpenSea marketplace. This includes metadata, ownership history, and pricing data.

  • NFT Trades: You can use the Bitquery OpenSea API to track NFT trades in a variety of ways. For example, you can:

  • Track the latest OpenSea trades by tracking the Seaport protocol and all transactions sent to OpenSea's seaport contract.

  • Get the top 10 most traded NFTs on OpenSea.

  • Get the total number of times a specific NFT has been bought and sold on OpenSea.

  • Get buyer stats like the buyer's address, the number of NFTs they bought, the total amount they spent, and the first and last date of the trades.

  • Token Holders and Ownership Data: To get ownership of an NFT token, you can use the BalanceUpdates API. This API tracks all balance updates, so you can use it to see who owns a specific NFT. You can also get the top holders of an NFT. To get daily NFT transfers, you can use the Transfers API.

  • NFT Creation and Opensea Storefront Data : Bitquery Opensea API can be used to track NFT creation and OpenSea storefront data. For example, you can see how many new NFTs are being created each day, or what types of NFTs are being created the most. The OpenSea API can also be used to track OpenSea storefront data. This data includes information about the storefront's listings, sales, and users. You can even track top luxury NFTs that have been sold on Opensea .

Bitquery X2Y2 API

X2Y2 is a decentralized NFT marketplace that is known for its own token, X2Y2, which can be staked to earn rewards. It also has developer tools designed to help creators easily manage and mint their NFTs on X2Y2.

One of the most interesting things about X2Y2 is that it allows users to take out loans against their NFTs. This means that you can use your NFTs as collateral to obtain a loan from another user or from a lending platform.

The Bitquery X2Y2 API provides data on NFT loans from the X2Y2 marketplace.

This includes loan events from the X2Y2 V3 contract, such as the latest loan takers, loan liquidated, and loan repaid events. You can view all events and trades using the X2Y2 explorer.

events

For example, you can use the Bitquery X2Y2 API to track the latest loan takers along with the NFTs that they have used as collateral.

You can also use the Bitquery X2Y2 API to track loan liquidated and loan repaid events by just specifying the event name in your API query.

About Bitquery

Bitquery is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

  • APIs - Explore API: Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

  • Coinpath® - Try Coinpath: Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

  • Data in Cloud - Try Demo Bucket: Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

  • Explorer - Try Explorer: Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our Telegram channel or via email at sales@bitquery.io. Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.

Subscribe to our newsletter

Subscribe and never miss any updates related to our APIs, new developments & latest news etc. Our newsletter is sent once a week on Monday.