Get a creative's counts
Changed onReturns a creative's Impressions and Clicks per UTC day from from to to (both inclusive), their totals and Click rate, and, with groupBy, the same counts by page or by device type. Read access to the creative's workspace; an unknown or inaccessible creativeId answers 403.
Counts are kept per day, not per event. The web SDK reports what visitors see, and a background job adds it here about once a minute, so a count can lag by up to a minute. An instance running without its BullMQ worker never adds counts. Archived creatives keep their counts, deleting a creative deletes them, and a duplicate starts with none.
400 when from is after to, or the range spans more than 366 days.
Request
- Base URLhttps://app.formbricks.com
- URLhttps://app.formbricks.com/api/v3/creatives/{creativeId}/stats
- Auth
- API key in cookie next-auth.session-token
- or API key in header x-api-key
- or HTTP bearer
Path parameters
Creative identifier.
Query parameters
First UTC day, inclusive (YYYY-MM-DD). Defaults to 29 days before to.
Last UTC day, inclusive (YYYY-MM-DD). Defaults to today, in UTC.
Adds a breakdown: page adds pages (host + path), device adds devices (phone, tablet, desktop). Omit for totals and days only.
Response
Counts retrieved successfully
Example response
{
"data": {
"pages": [
{
"page": "example.com/pricing"
}
]
}
}Changes
- warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status
- warning
- info
endpoint added
- info