Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.demomatic.tech/llms.txt

Use this file to discover all available pages before exploring further.

Returns total views, CTA form submissions, and CTA external link clicks aggregated across every video in the specified domain.
These stats are domain-wide aggregates. To retrieve stats for a single video, use GET /v1/videos/:id/stats.

Endpoint

GET /v1/domains/:domain_id/stats

Authentication

Authorization
string
required
Bearer token. Pass your API key: Authorization: Bearer <api_key>

Path parameters

domain_id
number
required
The numeric ID of the domain. Retrieve domain IDs from GET /v1/domains.

Response

data
object
required

Error responses

StatusCondition
400 Bad Requestdomain_id is not a valid number.
404 Not FoundDomain does not exist or does not belong to your account.

Example

curl --request GET \
  --url https://api.demomatic.tech/v1/domains/45/stats \
  --header "Authorization: Bearer YOUR_API_KEY"

Response

200
{
  "data": {
    "views": 1284,
    "leads": 37,
    "link_clicks": 92
  }
}