Skip to content

Usage per UTC day for each metered product, from the counters' daily snapshots.

GET
/billing/usage/daily
curl --request GET \
--url https://api.siteqwality.com/billing/usage/daily \
--header 'Authorization: Bearer <token>'
days
integer | null format: int32

How many UTC days to return, ending today (default 30, 7 to 90).

Usage per day by product

Media type application/json
object
from
required
string
to
required
string
tracking_started_on

First day with complete daily data when tracking began inside the range, else null.

string | null
products
required
Array<object>
object
product
required
string
unit
required
string
days
required

Every day in range, oldest first, zero where nothing was used.

Array<object>
object
day
required

UTC day, YYYY-MM-DD.

string
usage
required
integer format: int64
Example generated
{
"from": "example",
"to": "example",
"tracking_started_on": "example",
"products": [
{
"product": "example",
"unit": "example",
"days": [
{
"day": "example",
"usage": 1
}
]
}
]
}

Missing or invalid authentication

Internal server error