Get NFT Transaction Data via Runes API

·

This guide explains how to retrieve NFT transaction data under a collection using the Runes API, including the latest transaction price, quantity, and event history by runesId.


API Endpoint and Structure

Request Address

Method: GET
URL: https://web3.okx.com/api/v5/mktplace/nft/runes/trade-history

Key Features


Request Parameters

ParameterTypeRequiredDescription
runesIdsStringNoUnique token IDs (comma-separated; max 20). Leave empty for all tokens.
cursorStringNoPagination cursor for sequential data retrieval.
limitIntegerNoNumber of records per page (default: 10, max: 100).
startTimeLongNoStart timestamp (seconds) for filtering transactions.
endTimeLongNoEnd timestamp (seconds) for filtering transactions.

Response Parameters

ParameterTypeDescription
runesIdStringUnique identifier of the NFT token.
nameStringName of the token.
txHashStringBlockchain transaction hash.
typeNameStringEvent type (e.g., SALE, TRANSFER).
amountStringToken quantity involved in the transaction.
from/toStringSender and receiver wallet addresses.
createOnDateTimestamp of the transaction.
platformNameStringMarketplace platform name.
satPriceBigDecimalPrice in satoshis (for BTC-denominated trades).
price/usdPriceBigDecimalPrices in BTC and USD.
statusIntegerTransaction status (1: Success, 2: Pending).

👉 Explore advanced NFT API integrations for scalable Web3 solutions.


Example Usage

Request Example

curl -X GET "https://web3.okx.com/api/v5/mktplace/nft/runes/trade-history?runesIds=123,456&limit=5"

Response Example

{
  "runesId": "123",
  "name": "CryptoPunk #1234",
  "txHash": "0xabc...def",
  "typeName": "SALE",
  "amount": "1",
  "price": "0.05",
  "status": 1
}

FAQs

1. How do I query multiple NFT tokens?

Provide comma-separated runesIds (e.g., ?runesIds=123,456).

2. Can I filter transactions by date?

Yes, use startTime and endTime (in Unix seconds).

3. What’s the maximum pagination limit?

100 records per request. Use cursor for subsequent pages.

4. How are prices calculated?

Prices are returned in satoshis, BTC, and USD for flexibility.

👉 Learn how to optimize NFT API performance with rate-limiting best practices.


Best Practices

Need deeper analysis? Check our developer docs for Web3 WaaS solutions.