Skip to main content

Get NFT Offers

This endpoint allows you to fetch all current and historical offers for a specific NFT.

Endpoint

GET https://api.spacescan.io/nfts/offers/{nft_id}

Parameters

ParameterTypeRequiredDefaultDescription
nft_idstringYes-The unique identifier of the NFT
Free API

Use api.spacescan.io for free tier access. See our API Plans for rate limits and features.

Pro API

Use pro-api.spacescan.io with your API key in the x-api-key header. See our API Plans for details.

curl -X GET "https://pro-api.spacescan.io/nfts/offers/{nft_id}" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Examples

curl -X GET "https://api.spacescan.io/nfts/offers/nft10lutrplp2mqrp0wg27sjmjeezzluk9a7jgmjpdv6n5qalkpy8kxqrkqag7"

Response Schema

FieldTypeDescription
statusstringAPI response status ("success" or "error")
dataobjectResponse data object
data.nft_idstringThe NFT identifier
data.total_offersnumberTotal number of offers for this NFT
data.total_listingsnumberTotal number of listings for this NFT
data.offersarrayArray of offer objects
data.offers[].offer_hashstringUnique hash of the offer (nullable)
data.offers[].hash_base_58stringBase58 encoded hash of the offer
data.offers[].hash_bech32stringBech32 encoded hash of the offer (nullable)
data.offers[].offered_requested_hashstringHash of requested offer (nullable)
data.offers[].createdstringTimestamp of offer creation
data.offers[].settledstringTimestamp when offer was settled (nullable)
data.offers[].heightnumberBlock height of the offer (nullable)
data.offers[].log_timestringTimestamp of last log update (nullable)
data.offers[].offer_statusnumberStatus code of the offer
data.offers[].offered_assetsarrayArray of assets being offered
data.offers[].offered_typearrayTypes of assets being offered
data.offers[].listingsarrayArray of associated listings

Example Response

{
"status": "success",
"data": {
"nft_id": "nft10lutrplp2mqrp0wg27sjmjeezzluk9a7jgmjpdv6n5qalkpy8kxqrkqag7",
"total_offers": 1,
"total_listings": 6,
"offers": [
{
"offer_hash": null,
"hash_base_58": "AZXvtbC5Kx1U9463FDpN6VAuUs55SqsahhbxxmiAFJhg",
"hash_bech32": null,
"offered_requested_hash": null,
"created": "2024-04-20T04:51:24.689Z",
"settled": null,
"height": null,
"log_time": null,
"offer_status": 0,
"offered_assets": [],
"offered_type": ["XCH"],
}
"listings": [
{
"offer_hash": null,
"hash_base_58": "H8c3h8hazarpd63pzqCDtQMwJpZtbuk8CFJ7rQsCWviJ",
"hash_bech32": null,
"offered_requested_hash": null,
"created": "2024-04-22T16:14:48.579Z",
"settled": null,
"height": null,
"log_time": null,
"offer_status": 0,
"offered_assets": []
}
]

]
}
}

Notes

  • The offer_status values represent:
    • 0: Pending
    • 1: Accepted
    • 2: Cancelled
    • 3: Expired
  • offered_type indicates the type of assets being offered (e.g., "XCH" for Chia)
  • Both offers and listings share similar data structures
  • Null values indicate optional or pending information
  • Timestamps are in ISO 8601 format

Response Headers

HeaderDescription
Content-Typeapplication/json
Cache-ControlCaching directives for the response

Error Responses

HTTP Status CodeMeaning
400Bad Request -- Your request is invalid
404Not Found -- The specified NFT could not be found
429Too Many Requests -- You're requesting too many times
500Internal Server Error -- We had a problem with our server
503Service Unavailable -- We're temporarily offline for maintenance

Notes

  • Offers are returned in chronological order, with the most recent offers first
  • The status field can be one of: PENDING, ACCEPTED, CANCELLED, EXPIRED
  • Expired offers are included in the response for historical purposes
  • Price is denominated in XCH (Chia)