Skip to main content
POST
Top posts by views in the last 30 days

Authorizations

Authorization
string
header
required

API key for authenticating protected endpoints. Pass as Bearer token in Authorization header.

Body

application/json

Body

sql
string
required

A SELECT or WITH query against the analytics schema. The analytics.* prefix is implicit.

Minimum string length: 1

Response

Query executed successfully

rows
object[]
required

Result rows. Each row is a column-name → value map.

rowCount
integer
required

Number of rows returned (after truncation if any)

fields
object[]
required

Column names in row order

truncated
boolean
required

True if the result was truncated at the 10,000 row limit