Get Collection Assets

How to retrieve a collection's NFTs from the Wayup Marketplace

Retrieve assets from a specific NFT collection with rich filtering and pagination capabilities.

Endpoint (API): GET marketplace/api/get-collection-assets

Introduction

This guide shows how to fetch listed NFTs of a collection on the Wayup Marketplace. You can use it to build collection pages, price dashboards, or rarity-based explorers.

Requirements

  • A collection policyId

API Request Structure

Configuration

// API endpoint for Wayup Marketplace
const BASE_URL = "https://prod.api.ada-anvil.app/marketplace/api";

// Collection policy ID to query assets for
const POLICY_ID = "6fb0ce0d80bce539333b0b16f4a29a0d40c786249f86850d3a36fa01";

Type Definitions

Query Parameters

Parameter
Type
Required
Description

policyId

string

Yes

Collection policy ID

limit

number

No

Max items per page. Default 10.

cursor

string

No

Pagination cursor from a previous response. Use it only when requesting additional pages; omit it for the first page or if you only need one page.

minPrice

string

No

Minimum listing price (lovelace).

maxPrice

string

No

Maximum listing price (lovelace).

minRarity

string

No

Minimum rarity rank.

maxRarity

string

No

Maximum rarity rank.

orderBy

string

No

One of: priceAsc, priceDesc, nameAsc, idxAsc, recentlyListed, rarityAsc, recentlyMinted. Default priceAsc.

term

string

No

Full-text search term (name / attributes).

listingType

string

No

Filter by marketplace source: jpgstore, wayup, spacebudz.

saleType

string

No

all, listedOnly, bundles. Use listedOnly to return only actively listed assets.

properties

Array<{ key: string; value: string }>

No

Attribute filters (exact match).

Response Schema

AssetResult structure:

Implementation

Step 1: Build the Request URL

Step 2: Execute the Request

Step 3: Process the Response

Step 4: Display the Results

Step 5: Handle Pagination

Running the Example

Example Output

The Complete File

chevron-rightget-collection-assets.tshashtag

Last updated

Was this helpful?