getCollectionsListingsCounts()

Retrieve listings counts for multiple Collections

Get ListingsCounts for multiple collections. Optional filters: status, lastUpdatedAt.

Parameters

export type GetCollectionsListingsProps = {
    collectionIds: string[];
    status?: ListingStatus;
    lastUpdatedAt?: number;
}

Examples

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

Return Types

type ReturnType = ListingsCounts;
Listing

Alternatives

collection()

Last updated