Cloud APIs
StandardDataStoresApi_V2
standardDataStoreEntry

standardDataStoreEntry

Gets an entry from a standard datastore.

Parameters

NameTypeDescription
universeIdIdentifierThe ID of the universe to get the entry in.
dataStorestringthe name of the datastore to get the entry in.
scope?stringThe optional scope of the dataStore.
entryIdstringThe ID (key / name) of the entry.

Example

type InventorySchema = { Iron?: number; Gold?: number; Copper?: number; Stone?: number; Wood?: number };
const {
  data,
  response: { body },
} = await StandardDataStoresApi_V2.standardDataStoreEntry<InventorySchema>({
  universeId: 5097539509,
  dataStore: "InventoryStore",
  entryId: "users/45348281",
}); 

Endpoint

GET /v2/universes/{universe}/data-stores/{data-store}/entries/{entryId}
GET /v2/universes/{universe}/data-stores/{data-store}/scopes/{scope}/entries/{entryId}