Skip to main content

Get Offer Information

This endpoint allows you to fetch detailed information about a specific offer.

Endpoint

GET https://api.spacescan.io/offer/HtLDNrF32NzjDSmbub4SYDsHDNBjucVvQvdaBUJBnzjf

Parameters

ParameterTypeRequiredDefaultDescription
offer_idstringYes-The unique identifier of the offer

Headers

HeaderTypeRequiredDescription
versionstringYesAPI version
networkstringYesNetwork identifier (e.g., 'xch' for mainnet)
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/offer/{offer_id}" \
-H "x-api-key: YOUR_API_KEY" \
-H "version: v1" \
-H "network: xch"

Live API Test

Request Examples

curl -X GET "https://api.spacescan.io/offer/HtLDNrF32NzjDSmbub4SYDsHDNBjucVvQvdaBUJBnzjf" \
-H "version: v1" \
-H "network: xch"

Response Schema

FieldTypeDescription
statusstringStatus of the request ("success" or "failed")
dataobjectOffer information
data.idstringThe unique identifier of the offer
data.offer_statusstringCurrent status of the offer (Active, Pending, Cancelling, Cancelled, Completed, Unknown, Expired)
data.offerstringRaw offer data
data.offeredarrayArray of assets being offered
data.requestedarrayArray of assets being requested
data.createdstringTimestamp of offer creation
data.settledstringTimestamp when offer was settled
data.heightnumberBlock height of the offer

Asset Object Schema (for offered and requested arrays)

FieldTypeDescription
typestringAsset type (NFT1, CAT2, XCH)
nft_infoobjectNFT information (present if type is NFT1)
cat_infoobjectCAT information (present if type is CAT1 or CAT2)
symbolstringAsset symbol
amountnumberAsset amount

Example Response

{
"status": "success",
"data": {
"id": "offer1abc...",
"offer_status": "Active",
"offer": "raw_offer_data",
"offered": [
{
"type": "NFT1",
"nft_info": {
"id": "nft1...",
"name": "Sample NFT",
"preview_url": "https://..."
}
},
{
"type": "CAT2",
"cat_info": {
"asset_id": "cat1...",
"name": "Sample CAT"
},
"symbol": "CAT",
"amount": 100
}
],
"requested": [
{
"type": "XCH",
"symbol": "XCH",
"amount": 1.5
}
],
"created": "2023-01-01T00:00:00Z",
"settled": null,
"height": 1234567
}
}

Error Responses

HTTP Status CodeMeaning
401Unauthorized -- Missing required headers
404Not Found -- The specified offer 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