Statistics

Statistics query

Executes a read-only SQL query for Grafana-style statistics panels. Each rawquery in the request body is validated before execution (same rules as POST /api/v4/query): allowed statement types include SELECT, WITH, SHOW, DESCRIBE, EXPLAIN, PRAGMA; semicolons and DML/DDL are rejected.

post/statistics/query

Request

  • Base URL
    /api/v4 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v4/statistics/query
  • Auth
    HTTP bearer

Request body

Response

Response

dataobject
totalinteger

Changes

No recorded changes to this operation across all 6 revisions of this API.