Skip to main content
GET
cURL

Authorizations

Lovable-API-Key
string
header
required

Lovable API key. Send its value in the Lovable-API-Key header.

Headers

Lovable-Version
string

Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.

Lovable-Beta
string

Comma-separated beta revision strings to enable on top of the stable version.

Path Parameters

workspace_id
string
required

Workspace ID.

Query Parameters

starts_at
string<date-time>
required

Start of the time range as an RFC 3339 timestamp, such as 2026-07-01T00:00:00Z. Any offset is accepted and converted to UTC before the range is applied.

Example:

"2026-07-01T00:00:00Z"

ends_at
string<date-time>
required

End of the time range as an RFC 3339 timestamp, such as 2026-07-08T00:00:00Z. Any offset is accepted and converted to UTC before the range is applied.

Example:

"2026-07-08T00:00:00Z"

granularity
enum<string>
default:daily

Time-bucket size: hourly or daily. Defaults to daily when omitted; any other value returns 400. Daily buckets cover complete UTC calendar dates from the UTC date of starts_at through the UTC date of ends_at; hourly buckets use the supplied instants inclusively and support at most 31 days.

Available options:
hourly,
daily

Response

OK

time_series
object
required

Website traffic metrics for the workspace, including historical traffic from projects that have since been deleted.