Get List of Ordinals
'Sold', // Ordinals that have been sold
'Active', // Ordinals still available for sale
'Inactive', // Ordinals that have been marked as not available for sale by admin
'Pending Buyer Confirmation', // Ordinals where buyer has initiated purchase but not completed the sign and broadcast part of the process
'Pending Seller Confirmation', // Ordinals where seller has initiated listing but not completed the sign and save part of the process{
results: [{},{},{},{}], // array of Ordinal listings
count: 0, // number of Ordinals in the current results array
currentPage: page, // current page number
totalPages: 0, // total pages that can be returned for the current search results
totalItems: 0 // total items in the database for the current search results
}
const LISTING_STATUS = {
sold: 'Sold',
active: 'Active',
inactive: 'Inactive',
pending_buyer_confirmation: 'Pending Buyer Confirmation',
pending_seller_confirmation: 'pending Seller Confirmation',
}
// Call /get-listing end point to get all Ordinals available for sale
// by default only available ordinals are returned
const { data } = await axios({
method: 'post'
url: 'https://api.ordinalsbot.com/marketplace/get-listing',
headers: {
'x-api-key': API_KEY,
});
// Call /get-listing end point to get all Ordinals that have been sold
const { data } = await axios({
method: 'post'
url: 'https://api.ordinalsbot.com/marketplace/get-listing',
data: {
filter: {
status: LISTING_STATUS.sold
},
page: 3,
itemsPerPage: 50,
sort: "time"
}
headers: {
'x-api-key': API_KEY,
});
POST Get List of Ordinals
POST Get List of OrdinalsGet List of Ordinals
Request Body
Name
Type
Description
Last updated