Docs
BlogHomeStart building

Get All Data From Your Project

Two ways to pull every record out of your project — the easy way, and the programmatic way.


You own 100% of your data and can export it at any time. There are two ways to get all the records from your project.

#The easy way — ask the AI agent

Just tell the Totalum AI agent to return a JSON or Excel file with all the records of a specific table (or several tables), and it will generate the export for you.

Try it

"Export all records from the customers and orders tables as an Excel file."

No code, no setup — the agent reads your database and produces the file.

#The programmatic way — Totalum Database SDK

For automated or recurring exports, use the Totalum Database SDK — the TypeScript SDK available in every Totalum project. Query any table (with filters, sorting and nested relations) and write the results wherever you need them.

ts
import { TotalumApiSdk } from 'totalum-api-sdk';

const totalum = new TotalumApiSdk({ apiKey: process.env.TOTALUM_API_KEY });

// Fetch every record from a table
const { data } = await totalum.crud.query('customers', { _limit: 1000 });
console.log(data.results);

See the SDK's Read & Filter Data page for the full query syntax, and the For Developers guide for a complete "export every table to JSON" example.