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 send | You get |
|---|---|
database + schema | tables: one row per profiled table of the schema, plus totals |
database only | children: one row per schema of the database, plus totals |
| neither | children: 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 parameter | Required | Meaning |
|---|---|---|
database | No | Database name, up to 255 characters. Leave it out to list the databases |
schema | No | Schema name, up to 255 characters. Needs database |
after_table | No | Schema level: the next_after_table of the previous page. Leave it out for the first page |
after_name | No | Database and data source levels: the next_after_name of the previous page. Leave it out for the first page |
page_size | No | Rows per page, 1 to 200. The default is 50 |
owner_id | No | The 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"
}
}
}
| Field | Meaning |
|---|---|
table | Table name |
row_count | Rows counted by the latest profile. null when that profile did not count them |
column_count | Columns in the latest profile |
pii_column_count | Columns the latest profile classified as personal data |
max_null_pct | The highest share of empty values in any column, as a percentage from 0 to 100 |
profiled_at | When the latest profile of the table was collected, as an ISO 8601 date and time (no time zone is sent) |
next_after_table | Pass this as after_table to get the next page. null on the last page |
totals | The 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.
| Field | Meaning |
|---|---|
name | The schema or database name |
row_count | The sum of the tables' row counts, leaving out tables whose profile did not count them. null when none did |
tables_profiled | Tables with a profile |
pii_column_count | Columns classified as personal data, over all those tables |
tables_with_pii | Tables with at least one such column |
newest_profiled_at | The latest profiled_at among the tables |
oldest_profiled_at | The 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
| Status | When |
|---|---|
| 400 | A parameter is empty or out of range, schema is sent without database, or the source type cannot be profiled |
| 401 | You are not signed in |
| 403 | You do not have read access to the data source |
| 404 | There is no data source with that name for you, or for the owner_id you passed |
| 500 | The summary could not be read. Try again |