Instance Statistics

Get Approximate Table Row Counts and Artifact Size

Return table row counts and artifact size for an instance.

Permissions: Requires read access to the instance.

Notes: Row counts are exact for small tables and approximate for larger tables.

get/instances/{instance_id}/statistics

Request

  • Base URL: https://lamin.ai/api
  • URL: https://lamin.ai/api/instances/{instance_id}/statistics
  • Auth: HTTP bearer

Path parameters

instance_idstring uuid required

Instance UUID.

Query parameters

qstring[] nullable

A list of models in 'module.Model' format (case-sensitive). If omitted, statistics for all primary tables are returned.

[
  "core.ULabel"
]
space_idstring uuid nullable

Space UUID for space-scoped access checks.

Response

Successful Response

instance_sizeinteger required

Total size in bytes of all artifacts, calculated precisely in real-time.

countsobject required

A nested dictionary containing approximate row counts for tables. Keys are module names, and values are dictionaries mapping class names to their estimated row count.

Changes

No recorded changes to this operation across all 1 revision of this API.