Query NFT Listings: Order API Reference for Marketplace Web3 APIs

ยท

Understanding NFT Listings

This API interface allows you to retrieve active OKX Seaport protocol listings for specified NFTs. It's an essential tool for traders and collectors navigating the Web3 marketplace.

API Endpoint

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


Request Parameters

ParameterTypeRequiredDescription
chainStringYesBlockchain name (see supported networks)
collectionAddressStringNoNFT contract address
tokenIdStringNoUnique NFT identifier
makerStringNoFilter by wallet address of order creator
createAfterStringNoShow orders created after this timestamp (in seconds)
createBeforeStringNoShow orders created before this timestamp (in seconds)
updateAfterStringNoShow orders updated after this timestamp (in seconds)
updateBeforeStringNoShow orders updated before this timestamp (in seconds)
statusStringNoFilter by order status: active, inactive, cancelled, or sold
platformStringNoTarget listing platform (default: okx)
sortStringNoSorting method (create_time_desc, update_time_desc, price_desc, price_asc)
limitStringNoResults per page (default: 50)
cursorStringNoPagination cursor

๐Ÿ‘‰ Explore advanced NFT trading strategies


Response Parameters

Returns an array of OKX Order Model objects:

ParameterTypeDescription
orderIdStringUnique order identifier
createTimeLongOrder creation timestamp
updateTimeLongLast update timestamp
listingTimeLongWhen the listing became active
expirationTimeLongOrder expiry timestamp
statusStringCurrent status: active, cancelled, sold, or inactive
orderHashStringCryptographic order hash
protocolDataStringOrder parameters (JSON format)
protocolAddressStringSmart contract address for the transaction
chainStringBlockchain name
makerStringCreator's wallet address
orderTypeStringOffer (bid) or BuyNow (listing)
priceStringUnit price per NFT
currencyAddressStringToken address for payment
collectionAddressStringNFT contract address
tokenIdStringUnique NFT identifier
amountStringQuantity of NFTs in order

Practical Implementation

Best Practices for API Integration:

  1. Rate Limiting: Implement proper request throttling
  2. Error Handling: Account for network instability
  3. Data Caching: Store frequent queries locally when possible

๐Ÿ‘‰ Learn Web3 API integration techniques


FAQ Section

Q: How frequently should I poll for listing updates?
A: For most applications, polling every 5-15 minutes balances freshness with API load.

Q: What's the difference between createTime and listingTime?
A: createTime marks when the order was submitted, while listingTime indicates when it became active on-chain.

Q: Can I filter by multiple statuses simultaneously?
A: Current API version requires separate queries for each status filter.

Q: How do I handle paginated results effectively?
A: Use the cursor parameter with consistent limit values for reliable pagination.

Q: What's the maximum historical data available?
A: Typically 90 days of order history, though this may vary by platform.

Q: How are prices denominated in the response?
A: All prices are in the smallest unit of the specified currency (wei for ETH).


Advanced Usage

For high-volume applications, consider these optimizations:

๐Ÿ‘‰ Discover professional NFT API solutions