Skip to main content
Version: Next

KeyValueStoreCollectionClient

Client for managing the collection of Key-value stores in your account.

Key-value stores are used to store arbitrary data records or files. This client provides methods to list, create, or get key-value stores by name.

@example
const client = new ApifyClient({ token: 'my-token' });
const storesClient = client.keyValueStores();

// List all key-value stores
const { items } = await storesClient.list();

// Get or create a key-value store by name
const store = await storesClient.getOrCreate('my-store');
@see

Hierarchy

  • ResourceCollectionClient
    • KeyValueStoreCollectionClient

Index

Properties

inheritedapifyClient

apifyClient: ApifyClient

inheritedbaseUrl

baseUrl: string

inheritedhttpClient

httpClient: HttpClient

optionalinheritedid

id?: string

optionalinheritedparams

params?: Record<string, unknown>

inheritedpublicBaseUrl

publicBaseUrl: string

inheritedresourcePath

resourcePath: string

optionalinheritedsafeId

safeId?: string

inheritedurl

url: string

Methods

getOrCreate

list