Cloud APIs
OrderedDataStoresApi_V2
listOrderedDatastoreEntries

listOrderedDatastoreEntries

Lists entries in an ordered data store.

Parameters

NameTypeDescription
universeIdUniverseIdThe ID of the universe to get ordered data store entries from.
dataStoreIdDataStoreIdThe ID (name) of the data store to get entries from.
scopeScopeThe scope to get entries from.
sortOrder?SortOrderWhether to return the results from biggest to smallest (Desc) or smallest to biggest (Asc).
lessThanOrEq?numberFilters the results to include those less than or equal to a specific number (can be used in tangent with moreThabOrEq).
moreThanOrEq?numberFilters the results to include those more than or equal to a specific number (can be used in tangent with lessThabOrEq).
limit?numberThe number of results per request.
cursor?stringThe paging cursor for the previous or next page.

Example

const { data: entries } = await OrderedDataStoresApi_V2.listOrderedDatastoreEntries({
  universeId: 5097539509,
  dataStoreId: "PointsStore",
  scope: "global",
  sortOrder: "Desc",
  lessThanOrEq: 80,
  moreThanOrEq: 70,
}); 

Example Data

[
  {
    path: "universes/5097539509/ordered-data-stores/PointsStore/scopes/global/entries/45348281",
    value: 78,
    id: "45348281",
  },
] 

Endpoint

GET /v2/universes/{universeId}/ordered-data-stores/{dataStoreId}/scopes/{scope}/entries