Get Marketplace Listings
Using our API, you can fetch all the items listed for sale on the Fractal Marketplace and let users buy them.
To get the items for sale, you need to send a request to the /sdk/v1/marketplace/solana/items/for_sale (opens in a new tab) POST endpoint. The request must be authenticated with a project API token using the Authentication field in the request header.
You can also filter this query by adding the following optional parameters to the URL:
|The direction to sort the items. Either |
|The field to sort the items by. Either |
|The maximum number of items to return. Defaults to |
curl --request GET \ --url 'https://api.fractal.is/sdk/v1/marketplace/solana/items/for_sale?sort.direction=ASCENDING&sort.field=LIST_TIME&limit=100' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer <PROJECT_API_TOKEN>'
Requests return JSON with array
item object includes the following fields:
|Unique listing identifier of the object.|
|Name of the object.|
|URL for the image of the object.|
|Object containing the time and epoch when the item was listed for sale.|
|Object containing the item's price and unit.|