listProviders()
Signature#
client.listProviders(options?: RequestOptions): Promise<PublicProviderCatalogue>;Example#
import { AggregatorClient } from '@aggregator-network/sdk'; const client = new AggregatorClient();const directory = await client.listProviders(); for (const provider of directory.providers) { console.log(provider.name, provider.games);}This method requests GET /v1/providers without authentication or cookies, even if the client has an API key configured. It returns cached public counts, currency coverage and artwork metadata.
Return fields#
| Field | Type | Meaning |
|---|---|---|
| providers | PublicProvider[] | Directory entries. |
| totalGames | number | Cached public game count. |
| updatedAt | string or null | Directory refresh timestamp when available. |
Each provider contains name, games, assets, categories, currencies and currenciesUpdatedAt. Follow returned artwork URLs; do not construct identifiers or append credentials.
Access and freshness#
Public inventory is not proof that a workspace can launch a game. Use getGameList() with a scoped key and the intended currency for entitled catalogue results. Counts and timestamps describe the cached directory and can differ from the filtered workspace catalogue.
Errors#
Network, timeout and malformed directory responses throw AggregatorTransportError. HTTP errors throw AggregatorApiError. See providers and artwork for the public field and asset contracts.