curl -L -X GET 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/{databaseName}/usage?from=2023-01-01T00:00:00Z&to=2023-02-01T00:00:00Z' \ -H 'Authorization: Bearer TOKEN'
{ "database": { "uuid": "0eb771dd-6906-11ee-8553-eaa7715aeaf2", "instances": [ { "uuid": "cd831986-94e5-11ee-a6fe-7a52e1f7759a", "usage": { "rows_read": 0, "rows_written": 0, "storage_bytes": 4096, "bytes_synced": 0 } }, { "uuid": "0be90471-6906-11ee-8553-eaa7715aeaf2", "usage": { "rows_read": 0, "rows_written": 0, "storage_bytes": 4096, "bytes_synced": 0 } } ], "total": { "rows_read": 0, "rows_written": 0, "storage_bytes": 8192, "bytes_synced": 0 } } }
Fetch activity usage for a database in a given time period.
The slug of the organization or user account.
The name of the database.
The datetime to retrieve usage from in ISO 8601 format. Defaults to the current calendar month if not provided. Example: 2023-01-01T00:00:00Z
2023-01-01T00:00:00Z
The datetime to retrieve usage to in ISO 8601 format. Defaults to the current calendar month if not provided. Example: 2023-02-01T00:00:00Z
2023-02-01T00:00:00Z
Successful response
The response is of type object.
object
Was this page helpful?