Skip to main content

Profile summary API

GET /v1/data-sources/{ds_name}/profile/summary returns a short summary of the latest profiles, at three levels. Use it to show profile badges next to a list of tables, schemas or databases without reading every table's full profile.

You sendYou get
database + schematables: one row per profiled table of the schema, plus totals
database onlychildren: one row per schema of the database, plus totals
neitherchildren: one row per database of the data source, plus totals

It works for PostgreSQL, MySQL, Oracle, and SQL Server data sources, the source types DataDios can profile. For any other type the request is refused with 400. Sign in as for any DataDios API call (session cookie). The caller needs read access to the data source. For a data source shared with you, pass the owner in owner_id; without it, a shared source is not found.

Responses use the standard DataDios envelope:

{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {}
}

Request​

Query parameterRequiredMeaning
databaseNoDatabase name, up to 255 characters. Leave it out to list the databases
schemaNoSchema name, up to 255 characters. Needs database
after_tableNoSchema level: the next_after_table of the previous page. Leave it out for the first page
after_nameNoDatabase and data source levels: the next_after_name of the previous page. Leave it out for the first page
page_sizeNoRows per page, 1 to 200. The default is 50
owner_idNoThe owner of a data source shared with you

Rows come back sorted by name; pass the cursor back unchanged. Use after_table with database and schema, and after_name otherwise; the other one is ignored. A table that has never been profiled is not listed. After an upgrade, a data source's tables appear when that source is next profiled.

Response: tables of a schema​

Send database and schema.

{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {
"tables": [
{
"table": "orders",
"row_count": 1250000,
"column_count": 14,
"pii_column_count": 2,
"max_null_pct": 12.5,
"profiled_at": "2026-11-01T06:30:00"
}
],
"page_size": 50,
"next_after_table": null,
"totals": {
"row_count": 1250000,
"tables_profiled": 1,
"pii_column_count": 2,
"tables_with_pii": 1,
"newest_profiled_at": "2026-11-01T06:30:00",
"oldest_profiled_at": "2026-11-01T06:30:00"
}
}
}
FieldMeaning
tableTable name
row_countRows counted by the latest profile. null when that profile did not count them
column_countColumns in the latest profile
pii_column_countColumns the latest profile classified as personal data
max_null_pctThe highest share of empty values in any column, as a percentage from 0 to 100
profiled_atWhen the latest profile of the table was collected, as an ISO 8601 date and time (no time zone is sent)
next_after_tablePass this as after_table to get the next page. null on the last page
totalsThe sums over all profiled tables of the schema, not only this page. See Aggregates. null on every page after the first

Response: schemas or databases​

Send database only to list its schemas, or neither to list the databases.

{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {
"children": [
{
"name": "public",
"row_count": 4800000,
"tables_profiled": 12,
"pii_column_count": 5,
"tables_with_pii": 3,
"newest_profiled_at": "2026-11-01T06:30:00",
"oldest_profiled_at": "2026-10-28T02:10:00"
}
],
"page_size": 50,
"next_after_name": null,
"totals": {
"row_count": 4800000,
"tables_profiled": 12,
"pii_column_count": 5,
"tables_with_pii": 3,
"newest_profiled_at": "2026-11-01T06:30:00",
"oldest_profiled_at": "2026-10-28T02:10:00"
}
}
}

children has one row per schema (with database) or per database (without). A schema or database with no profiled table is not listed. next_after_name is the name to pass as after_name for the next page, or null on the last page. totals covers everything under the scope, not only this page, and is null on every page after the first.

Aggregates​

Each children row and totals is an aggregate over the latest profile of the tables beneath it. totals has no name.

FieldMeaning
nameThe schema or database name
row_countThe sum of the tables' row counts, leaving out tables whose profile did not count them. null when none did
tables_profiledTables with a profile
pii_column_countColumns classified as personal data, over all those tables
tables_with_piiTables with at least one such column
newest_profiled_atThe latest profiled_at among the tables
oldest_profiled_atThe earliest profiled_at among the tables

Timestamps are an ISO 8601 date and time with no time zone. A scope with nothing profiled has totals of zero tables and null dates.

Read every page​

Send the first request without a cursor. While next_after_table (schema level) or next_after_name (the other levels) is not null, send the same request again with it as after_table or after_name. totals arrive with the first page and cover the whole scope, not only that page, so you never need to add them up yourself.

Errors​

StatusWhen
400A parameter is empty or out of range, schema is sent without database, or the source type cannot be profiled
401You are not signed in
403You do not have read access to the data source
404There is no data source with that name for you, or for the owner_id you passed
500The summary could not be read. Try again