GET Get website insights
Base URL: https://server-url-from-token-page.endpoint. Version: 1.2.0.
GET /api/v1/public/website/insights — Get website insights
Read-only operation
Returns aggregate website traffic, account coverage, visit duration, country, industry, source, and daily activity insights for the selected company scope and time window.
This endpoint supports GET only and does not accept a request body. Authentication is accepted only through Authorization: Bearer <token>; the bearer token determines the workspace.
Unknown, nested, object-valued, or unexpectedly repeated scalar query parameters are rejected. Successful responses omit null-valued properties and null array entries.
GET URLs can appear in client and intermediary logs. Never place credentials or secrets in query parameters. Responses are marked Cache-Control: private, no-store.
Parameters
type(query, ALL_ACCOUNTS | TARGETED_ACCOUNTS | NON_TARGETED_ACCOUNTS, optional)Website-company scope. Allowed values: ALL_ACCOUNTS, TARGETED_ACCOUNTS, NON_TARGETED_ACCOUNTS. Defaults to TARGETED_ACCOUNTS.
- Default: "TARGETED_ACCOUNTS"
duration(query, TODAY | YESTERDAY | THIS_WEEK | LAST_WEEK | THIS_MONTH | LAST_MONTH | LAST_7_DAYS | LAST_30_DAYS | LAST_3_MONTHS | ALL_TIME, optional)Named time window. Do not combine duration with from or to. When no duration or explicit range is supplied, the endpoint defaults to LAST_3_MONTHS. Allowed values: TODAY, YESTERDAY, THIS_WEEK, LAST_WEEK, THIS_MONTH, LAST_MONTH, LAST_7_DAYS, LAST_30_DAYS, LAST_3_MONTHS, ALL_TIME.
- Default: "LAST_3_MONTHS"
from(query, string:date-time, optional)Inclusive explicit range start in RFC 3339 date-time form. Do not combine with duration.
to(query, string:date-time, optional)Optional exclusive range end in RFC 3339 date-time form. An event exactly at to is excluded. Requires from and must be later than from.
ownerId(query, string[], optional)Restricts results to one or more account-owner ids. At most 25 unique ids are accepted. Supply multiple values as one comma-separated query value, for example
ownerId=507f1f77bcf86cd799439011,507f1f77bcf86cd799439012.- Maximum items: 25
- Items must be unique
- Send multiple values as one comma-separated query value
X-Request-Id(header, string, optional)Optional caller correlation id. The server generates one when omitted and always returns the resolved value.
X-Trace-Id(header, string, optional)Optional distributed trace id for cross-system request correlation.
X-Client-Name(header, string, optional)Optional caller-defined client label for request diagnostics.
JSON response schema
{
"$ref": "#/components/schemas/PublicWebsiteInsightsResponse",
"components": {
"schemas": {
"PublicWebsiteInsightsResponse": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"targetingScope": {
"type": "string",
"enum": [
"ALL_ACCOUNTS",
"TARGETED_ACCOUNTS",
"NON_TARGETED_ACCOUNTS"
]
},
"fromDate": {
"type": "string",
"format": "date-time"
},
"toDate": {
"type": "string",
"format": "date-time"
},
"targetedCount": {
"type": "integer",
"minimum": 0
},
"nonTargetedCount": {
"type": "integer",
"minimum": 0
},
"accounts": {
"type": "integer",
"minimum": 0
},
"uniqueAccounts": {
"type": "integer",
"minimum": 0
},
"uniqueLeads": {
"type": "integer",
"minimum": 0
},
"visits": {
"type": "integer",
"minimum": 0
},
"pageViews": {
"type": "integer",
"minimum": 0
},
"averageVisitDuration": {
"type": "number",
"format": "double"
},
"countries": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicGroupCount"
}
},
"dailyTrackingRecords": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"visits": {
"type": "integer",
"minimum": 0
},
"pageViews": {
"type": "integer",
"minimum": 0
}
},
"required": [
"date",
"visits",
"pageViews"
],
"additionalProperties": false
}
},
"industries": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicGroupCount"
}
},
"sources": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicGroupCount"
}
}
},
"required": [
"targetingScope",
"targetedCount",
"nonTargetedCount",
"accounts",
"uniqueLeads",
"visits",
"pageViews",
"averageVisitDuration",
"countries",
"dailyTrackingRecords",
"industries",
"sources"
],
"additionalProperties": false
}
},
"required": [
"data"
],
"additionalProperties": false
},
"PublicGroupCount": {
"type": "object",
"properties": {
"group": {
"type": "string"
},
"count": {
"type": "number",
"format": "double"
}
},
"required": [
"group",
"count"
],
"additionalProperties": false
}
}
}
}Responses
200: Successful response. Repeated entity context is returned through reference maps where applicable.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
RateLimit-Policy(header, value, optional)Response header
RateLimit-Limit(header, value, optional)Response header
RateLimit-Remaining(header, value, optional)Response header
RateLimit-Reset(header, value, optional)Response header
200 response example
{
"data": {
"targetingScope": "TARGETED_ACCOUNTS",
"targetedCount": 2,
"nonTargetedCount": 0,
"accounts": 2,
"uniqueAccounts": 2,
"uniqueLeads": 2,
"visits": 12,
"pageViews": 30,
"averageVisitDuration": 180,
"countries": [
{
"group": "SE",
"count": 2
}
],
"dailyTrackingRecords": [
{
"date": "2026-07-30",
"visits": 12,
"pageViews": 30
}
],
"industries": [
{
"group": "Software",
"count": 2
}
],
"sources": [
{
"group": "direct",
"count": 8
}
]
}
}400: Invalid website input.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
400 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}400 response example
{
"message": "The website request is invalid.",
"code": "INVALID_RESOURCE_REQUEST"
}401: Missing, invalid, expired, or unauthorized credential.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
401 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}401 response example
{
"message": "Unauthorized request",
"code": "UNAUTHENTICATED"
}403: Authenticated workspace scope mismatch.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
403 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}403 response example
{
"message": "The authenticated credential is not authorized for this resource.",
"code": "SPACE_SCOPE_MISMATCH"
}405: Only GET is supported for this endpoint.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
405 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}405 response example
{
"message": "Method not allowed",
"code": "METHOD_NOT_ALLOWED"
}429: Rate limit exceeded.
Retry-After(header, integer, optional)Seconds to wait before retrying.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
RateLimit-Policy(header, value, optional)Response header
RateLimit-Limit(header, value, optional)Response header
RateLimit-Remaining(header, value, optional)Response header
RateLimit-Reset(header, value, optional)Response header
429 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}429 response example
{
"message": "Too many requests. Please try later.",
"code": "RATE_LIMIT_EXCEEDED"
}500: Unexpected server failure.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
500 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}500 response example
{
"message": "Internal server error",
"code": "INTERNAL_SERVER_ERROR"
}503: The Public API is temporarily unavailable.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
503 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}503 response example
{
"message": "Service unavailable",
"code": "PUBLIC_RESOURCE_UNAVAILABLE"
}504: The request exceeded the time limit.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
504 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}504 response example
{
"message": "The resource request timed out.",
"code": "PUBLIC_RESOURCE_TIMEOUT"
}Get website insights
curl "https://server-url-from-token-page.endpoint/api/v1/public/website/insights?type=TARGETED_ACCOUNTS&duration=LAST_30_DAYS" \
-H "Authorization: Bearer $DOE_API_TOKEN" \
-H "Accept: application/json" \
-H "X-Request-Id: postman-{{$guid}}" \
-H "X-Client-Name: postman-public-api"Response example
{
"data": {
"targetingScope": "TARGETED_ACCOUNTS",
"targetedCount": 2,
"nonTargetedCount": 0,
"accounts": 2,
"uniqueAccounts": 2,
"uniqueLeads": 2,
"visits": 12,
"pageViews": 30,
"averageVisitDuration": 180,
"countries": [
{
"group": "SE",
"count": 2
}
],
"dailyTrackingRecords": [
{
"date": "2026-07-30",
"visits": 12,
"pageViews": 30
}
],
"industries": [
{
"group": "Software",
"count": 2
}
],
"sources": [
{
"group": "direct",
"count": 8
}
]
}
}