Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Listing resources

List all datasets in an organization

import redivis from 'redivis';

const datasets = await redivis.organization('demo').listDatasets();

for (const dataset of datasets) {
  // Properties will contain the dataset.list API representation
  console.log(dataset.properties);

  await dataset.get();
  // Properties will now contain the dataset.get API representation
  console.log(dataset.properties);
}

List all tables in a dataset

import redivis from 'redivis';

const dataset = redivis.organization('demo').dataset('ghcn_daily_weather_data');
const tables = await dataset.listTables();

for (const table of tables) {
  // Properties will contain the table.list API representation
  console.log(table.properties);

  await table.get();
  // Properties will now contain the table.get API representation
  console.log(table.properties);
}

List all variables in a table

List the contents of a workflow

Limit the number of results

Every list* method takes an optional maxResults, which limits the number of results returned (and requests made):

Was this helpful?