GET
/
v1
/
organizations
/
{organizationName}
/
databases
/
{databaseName}
/
stats
curl -L -X GET 'https://api.turso.tech/v1/organizations/{organizationName}/databases/{databaseName}/stats' \
-H 'Authorization: Bearer TOKEN'
{
  "top_queries": [
    {
      "query": "SELECT COUNT(*), CustomerID FROM Orders GROUP BY CustomerID HAVING COUNT(*) > 5;",
      "rows_read": 123,
      "rows_written": 4567
    }
  ]
}

Path Parameters

organizationName
string
required

The name of the organization or user.

databaseName
string
required

The name of the database.

Response

200 - application/json
top_queries
object[]

The top queries performed on the given database as well as the total rows read and written.