Query NFT Offers Using the Order API

·

This endpoint retrieves active offers on a specific NFT for the Seaport contract. Below is the detailed API reference for integrating this functionality into your Web3 applications.


Request Details

Endpoint

GET https://web3.okx.com/api/v5/mktplace/nft/markets/offers

Parameters

ParameterTypeRequiredDescription
chainStringYesSupported blockchain (e.g., ETH, Polygon). View full list.
collectionAddressStringNoNFT contract address.
tokenIdStringNoNFT token identifier.
makerStringNoFilter by maker’s wallet address.
createAfterStringNoOrders listed after this UNIX timestamp (seconds).
createBeforeStringNoOrders listed before this UNIX timestamp (seconds).
updateAfterStringNoOrders updated after this UNIX timestamp (seconds).
updateBeforeStringNoOrders updated before this UNIX timestamp (seconds).
statusStringNoOrder status: active, inactive, cancelled, sold.
sortStringNoSorting options: create_time_desc, update_time_desc, price_desc, price_asc. Default: ascending.
limitStringNoNumber of listings (default: 50).
cursorStringNoPagination cursor.

Response Format

Returns an array of OKX Order Models with the following fields:

ParameterTypeDescription
orderIdStringUnique order identifier.
createTimeLongOrder creation timestamp.
updateTimeLongLast update timestamp.
listingTimeLongListing timestamp.
expirationTimeLongOrder expiry block timestamp.
statusStringOrder status (active, cancelled, etc.).
orderHashStringCryptographic hash of the order.
protocolDataStringOrder parameters (JSON).
protocolAddressStringContract address for order fulfillment.
chainStringBlockchain name.
makerStringMaker’s wallet address.
orderTypeStringOffer (bid) or BuyNow (listing).
priceStringNFT unit price.
currencyAddressStringPayment currency address.
collectionAddressStringNFT contract address.
tokenIdStringNFT token identifier.
amountStringNFT quantity in the order.

How to Use This API

  1. Filtering Offers: Narrow results by collectionAddress, tokenId, or maker for targeted queries.
  2. Sorting: Use sort to prioritize high-value offers (price_desc) or recent updates (update_time_desc).
  3. Pagination: Employ limit and cursor to manage large datasets efficiently.

👉 Explore more Web3 APIs to enhance your NFT marketplace integration.


FAQs

Q1: What chains are supported?
A1: ETH, Polygon, BSC, Avalanche, OKTC, and other EVM-compatible networks.

Q2: How do I track order status changes?
A2: Poll the API with updateAfter or use WebSocket for real-time updates.

Q3: Can I fetch expired offers?
A3: No—only active or recently updated orders are returned by default.

Q4: What’s the maximum limit value?
A4: 100 per request; use pagination (cursor) for larger datasets.

Q5: How are prices denominated?
A5: In the native token of the specified currencyAddress.


Optimize your NFT trading strategy with this API—seamlessly query offers and integrate with Seaport contracts. 👉 Get started with OKX Web3.


### Key SEO Features:  
- **Keywords**: NFT offers, Seaport contract, OKX Order API, Web3 marketplace.