getCollectionListingsStats()

Retrieve listings stats for a Collection

Get ListingsStats for a single collection. Optional filters: status, lastUpdatedAt.

Parameters

export type GetCollectionListingsProps = {
    collectionId: string;
    status?: ListingStatus;
    lastUpdatedAt?: number;
}

Examples

const listingsStats = await assetlayer.listings.getCollectionListingsStats({
    collectionIds: ['collectionId_1', 'collectionId_2'],
    status: 'active'
});

Return Types

type ReturnType = ListingsStats;
Listing

Alternatives

collection()

Last updated