Help centerAPI referenceAnalytics
Analytics
Visits, pages, sources, campaigns and performance for each domain.
Period overview
/domains/{id}/analytics/overviewdomains:readVisitors, pageviews, sessions, bounce rate, duration, requests, traffic, error rate and latency. Every plan with analytics. On Starter (basic analytics): up to 31 days back, no compare, includeBots or filters.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/overview" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"visitors": 1843,
"pageviews": 5127,
"sessions": 2210,
"bounceRate": 0.412,
"avgDurationMs": 94300,
"requests": 48211,
"bytes": 1873402211,
"errorRate": 0.0031,
"p50Ms": 87,
"p95Ms": 412,
"previous": {
"visitors": 1610,
"pageviews": 4480,
"sessions": 1932,
"bounceRate": 0.438,
"avgDurationMs": 88100,
"requests": 43990,
"bytes": 1702334120,
"errorRate": 0.0042,
"p50Ms": 91,
"p95Ms": 455
},
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}Time series of a metric
/domains/{id}/analytics/timeseriesdomains:readOne point per bucket (interval), empty ones included. On Starter, only visitors, pageviews and requests. Every plan with analytics. On Starter (basic analytics): up to 31 days back, no compare, includeBots or filters.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
metricquery · "visitors" | "pageviews" | "requests" | "bytes" | "errors" | "latency_p95" | "sessions"Metric (default visitors).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/timeseries" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"metric": "visitors",
"points": [
{
"t": "2026-10-15T03:00:00.000Z",
"v": 212
},
{
"t": "2026-10-16T03:00:00.000Z",
"v": 248
},
{
"t": "2026-10-17T03:00:00.000Z",
"v": 301
},
{
"t": "2026-10-18T03:00:00.000Z",
"v": 276
},
{
"t": "2026-10-19T03:00:00.000Z",
"v": 255
},
{
"t": "2026-10-20T03:00:00.000Z",
"v": 290
},
{
"t": "2026-10-21T03:00:00.000Z",
"v": 261
}
],
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}Breakdown by dimension
/domains/{id}/analytics/breakdowndomains:readTop values of a dimension (pages, sources, countries, UTMs, devices…). share is the fraction of the metric's total. On Starter, only path, source and country. Every plan with analytics. On Starter (basic analytics): up to 31 days back, no compare, includeBots or filters.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
dimensionquery · "path" | "entry" | "exit" | "country" | "region" | "city" | "device" | "browser" | "os" | "source" | "channel" | "referrer" | "utm_source" | "utm_medium" | "utm_campaign" | "lang" | "bot" | "status_class" | "content_kind"Dimension (default path).
metricquery · "visitors" | "pageviews" | "requests"Metric used for ranking (default visitors).
limitquery · integerNumber of rows (default 10, max 500).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/breakdown" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"dimension": "source",
"metric": "visitors",
"items": [
{
"key": "Instagram",
"visitors": 742,
"pageviews": 1980,
"requests": 17340,
"share": 0.4026
},
{
"key": "Google",
"visitors": 611,
"pageviews": 1795,
"requests": 16102,
"share": 0.3315
},
{
"key": "Direto",
"visitors": 390,
"pageviews": 1172,
"requests": 12088,
"share": 0.2116
}
],
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}Pages: top, entry and exit
/domains/{id}/analytics/pagesdomains:readLanding+top includes average time on page (avgTimeMs, with the analytics script on); entry carries the bounce rate in rate; exit, the exit rate.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
kindquery · "top" | "entry" | "exit"List (default top).
limitquery · integerNumber of rows (default 20, max 500).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/pages" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"kind": "top",
"items": [
{
"path": "/",
"visitors": 1502,
"pageviews": 2240,
"avgTimeMs": 41200,
"sessions": 0,
"rate": null
},
{
"path": "/agendar",
"visitors": 688,
"pageviews": 1031,
"avgTimeMs": 73800,
"sessions": 0,
"rate": null
},
{
"path": "/servicos",
"visitors": 405,
"pageviews": 512,
"avgTimeMs": 28500,
"sessions": 0,
"rate": null
}
],
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}Web Vitals
/domains/{id}/analytics/vitalsdomains:readLanding+p75 of LCP, INP, CLS, FCP and TTFB measured in visitors' browsers (analytics script on), with good/needs improvement/poor counts and the web.dev limits in thresholds. Times in ms.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
groupByquery · "path" | "device"Group by page or device (default path).
limitquery · integerNumber of rows (default 20, max 500).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/vitals" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"groupBy": "path",
"summary": {
"lcp": {
"p75": 2140,
"good": 812,
"needsImprovement": 143,
"poor": 37
},
"inp": {
"p75": 168,
"good": 901,
"needsImprovement": 71,
"poor": 20
},
"cls": {
"p75": 0.042,
"good": 960,
"needsImprovement": 25,
"poor": 7
},
"fcp": {
"p75": 1390,
"good": 870,
"needsImprovement": 98,
"poor": 24
},
"ttfb": {
"p75": 520,
"good": 905,
"needsImprovement": 70,
"poor": 17
},
"samples": 992
},
"thresholds": {
"lcp": [
2500,
4000
],
"inp": [
200,
500
],
"cls": [
0.1,
0.25
],
"fcp": [
1800,
3000
],
"ttfb": [
800,
1800
]
},
"items": [
{
"key": "/",
"samples": 610,
"lcp": 1980,
"inp": 152,
"cls": 0.031,
"fcp": 1310,
"ttfb": 490
},
{
"key": "/agendar",
"samples": 382,
"lcp": 2460,
"inp": 194,
"cls": 0.068,
"fcp": 1520,
"ttfb": 575
}
],
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}Bots that visited the domain
/domains/{id}/analytics/botsdomains:readLanding+Search engines, AIs and other bots, with verified when the bot's origin was confirmed.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
limitquery · integerNumber of rows (default 50, max 200).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/bots" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"bot": "googlebot",
"verified": true,
"requests": 1320,
"pages": 410,
"errors": 6,
"avgMs": 142,
"lastSeen": "2026-10-22T01:14:09.000Z"
},
{
"bot": "gptbot",
"verified": true,
"requests": 288,
"pages": 97,
"errors": 0,
"avgMs": 160,
"lastSeen": "2026-10-21T22:40:51.000Z"
}
],
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}Pages crawled by bots
/domains/{id}/analytics/bots/pagesdomains:readLanding+Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
botquery · stringOnly this bot (e.g. googlebot). Without it, all bots.
limitquery · integerNumber of rows (default 100, max 1000).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/bots/pages" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"bot": "googlebot",
"items": [
{
"path": "/",
"hits": 96,
"lastCrawl": "2026-10-22T01:14:09.000Z",
"errors": 0,
"avgMs": 118
},
{
"path": "/servicos",
"hits": 41,
"lastCrawl": "2026-10-21T19:02:33.000Z",
"errors": 2,
"avgMs": 203
}
],
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}Security: blocks and attacks (TenantGuard)
/domains/{id}/analytics/securitydomains:readLanding+Requests blocked or flagged by the edge and TenantGuard alerts: timeline, attack types, most active IPs and the 25 latest alerts.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
limitquery · integerNumber of rows (default 20, max 200).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/security" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"summary": {
"blocked": 312,
"flagged": 41,
"attacks": 58,
"ips": 17,
"bans": 9,
"activeBans": 3
},
"timeline": [
{
"t": "2026-10-15T03:00:00.000Z",
"blocked": 52,
"attacks": 11
},
{
"t": "2026-10-16T03:00:00.000Z",
"blocked": 38,
"attacks": 6
}
],
"byScenario": [
{
"scenario": "crowdsecurity/http-probing",
"kind": "scan",
"message": "Varredura de caminhos",
"attacks": 31,
"ips": 8,
"lastSeen": "2026-10-21T23:55:12.000Z"
}
],
"topIps": [
{
"ip": "198.51.100.23",
"country": "US",
"asName": "DigitalOcean, LLC",
"attacks": 14,
"lastSeen": "2026-10-21T23:55:12.000Z",
"banned": true,
"scenarios": [
"crowdsecurity/http-probing"
]
}
],
"recent": [
{
"id": 90211,
"at": "2026-10-21T23:55:12.000Z",
"kind": "scan",
"scenario": "crowdsecurity/http-probing",
"message": "Varredura de caminhos",
"ip": "198.51.100.23",
"country": "US",
"method": "GET",
"uri": "/wp-login.php",
"decision": "ban"
}
],
"byAction": [
{
"action": "block",
"requests": 312
},
{
"action": "flag",
"requests": 41
}
],
"byCountry": [
{
"country": "US",
"requests": 188
}
],
"byPath": [
{
"path": "/wp-login.php",
"requests": 97
}
],
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}Pages with errors
/domains/{id}/analytics/errorsdomains:readLanding+4xx/5xx responses per page and status.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
limitquery · integerNumber of rows (default 50, max 500).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/errors" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"path": "/promocao-antiga",
"status": 404,
"count": 37,
"lastSeen": "2026-10-21T20:11:45.000Z"
},
{
"path": "/api/agenda",
"status": 502,
"count": 4,
"lastSeen": "2026-10-20T13:02:10.000Z"
}
],
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}Real time (last 5 minutes)
/domains/{id}/analytics/realtimedomains:readLanding+Ignores the period and filters. Uncached response.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/realtime" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"visitors5m": 14,
"pageviews5m": 31,
"pages": [
{
"path": "/agendar",
"visitors": 8
},
{
"path": "/",
"visitors": 6
}
],
"sources": [
{
"source": "Instagram",
"visitors": 9
},
{
"source": "Direto",
"visitors": 5
}
]
}TailorKit rule health
/domains/{id}/analytics/tailorkitdomains:readLanding+Published rules that didn't find their element on the page (misses), per page and version. Available with advanced analytics or with TailorKit.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
limitquery · integerNumber of rows (default 200, max 1000).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/tailorkit" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"path": "/agendar",
"version": 7,
"ruleId": "hero-title",
"misses": 23,
"lastSeen": "2026-10-21T17:48:02.000Z"
}
],
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}A/B test results
/domains/{id}/analytics/experiments/{exp}domains:readLanding+Visitors and conversions per variant for the goal, with rate, uplift over the control (a), chance to beat it and p-value. decided only with a minimum sample (100 visitors and 10 conversions per variant) and chance >= 95%. details=1 adds per day, device, channel and engagement.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
exppath · stringrequiredTest id: landing page test (lp-…) or TailorKit test
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
goalquery · stringrequiredGoal that measures the conversion (e.g. Lead).
detailsquery · "1"1: includes
details.pathquery · stringWith details: entry page used for engagement.
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/experiments/<exp>" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"exp": "lp-corte-de-outubro-k3x9",
"goal": "Lead",
"variants": [
{
"variant": "a",
"visitors": 1204,
"conversions": 61,
"value": 3050,
"rate": 0.0507,
"uplift": null,
"chanceToBeat": null,
"pValue": null
},
{
"variant": "b",
"visitors": 1188,
"conversions": 89,
"value": 4450,
"rate": 0.0749,
"uplift": 0.4787,
"chanceToBeat": 0.993,
"pValue": 0.0151
}
],
"decided": true,
"leader": "b",
"enoughData": true,
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
}
}Campaigns: clicks, goals, channels and costs
/domains/{id}/analytics/campaignsdomains:readShort link clicks, conversions per goal, per channel and per campaign (utm_campaign). From the Landing plan on, costs: true and each campaign carries cost in the period, cost per conversion (cpa) and return (roas = value / cost), using the costs from POST /domains/:id/costs. Every plan with analytics. On Starter (basic analytics): up to 31 days back, no compare, includeBots or filters.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
limitquery · integerNumber of rows (default 100, max 500).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/campaigns" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"links": [
{
"slug": "promo-outubro",
"clicks": 412,
"visitors": 377,
"lastSeen": "2026-10-21T22:03:41.000Z"
}
],
"goals": [
{
"name": "Lead",
"conversions": 96,
"visitors": 91,
"value": 4800,
"currency": "BRL",
"lastSeen": "2026-10-21T21:47:18.000Z"
}
],
"channels": [
{
"channel": "social",
"sourceName": "Instagram",
"conversions": 58,
"visitors": 742,
"value": 2900
},
{
"channel": "search",
"sourceName": "Google",
"conversions": 31,
"visitors": 611,
"value": 1550
}
],
"campaigns": [
{
"campaign": "promo-outubro",
"utmSource": "instagram",
"visitors": 377,
"conversions": 44,
"value": 2200,
"cost": 270.97,
"currency": "BRL",
"cpa": 6.16,
"roas": 8.12
}
],
"meta": {
"from": "2026-10-15T03:00:00.000Z",
"to": "2026-10-22T03:00:00.000Z",
"tz": "America/Sao_Paulo",
"interval": "day",
"pageviewSource": "beacon",
"tier": "advanced"
},
"costs": true
}Export CSV
/domains/{id}/analytics/export.csvdomains:readLanding+With dimension: the breakdown (columns <dimension>, visitors, pageviews, requests, share; up to 10,000 rows). Without dimension: the time series of metric (columns t, <metric> and, with compare=1, previous_t and previous_<metric>).
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
fromquery · stringStart (ISO 8601 or epoch in s/ms). Default: 7 days before
to.toquery · stringEnd, exclusive (ISO 8601 or epoch). Default: now.
tzquery · stringIANA time zone for the time buckets (default America/Sao_Paulo).
intervalquery · "hour" | "day" | "week" | "month"Bucket size (default by period length: up to 2 days hour, up to 62 day, up to 190 week, then month).
comparequery · "0" | "1" | "true" | "false"1: also computes the previous period of the same length (
previous).includeBotsquery · "0" | "1" | "true" | "false"1: bots count in the visitor metrics.
f.<dimensão>query · string[]Filter, one parameter per dimension (e.g. f.country=BR&f.device=mobile). Repeatable: up to 20 values of the same dimension = OR; different dimensions = AND. path/entry/exit accept a prefix ending in "*" (/blog/*); status_class accepts 2xx, 3xx, 4xx or 5xx. An empty value (f.utm_source=) matches rows without a value. Dimensions: path, entry, exit, country, region, city, device, browser, os, source, channel, referrer, utm_source, utm_medium, utm_campaign, lang, bot, status_class, content_kind.
nf.<dimensão>query · string[]Negated filter: excludes the values (e.g. nf.country=BR). With an empty value, keeps only rows that have a value (nf.utm_campaign= = "has a campaign"). Same rules and dimensions as f.<dimension>.
dimensionquery · "path" | "entry" | "exit" | "country" | "region" | "city" | "device" | "browser" | "os" | "source" | "channel" | "referrer" | "utm_source" | "utm_medium" | "utm_campaign" | "lang" | "bot" | "status_class" | "content_kind"Exports the breakdown of this dimension.
metricquery · "visitors" | "pageviews" | "requests" | "bytes" | "errors" | "latency_p95" | "sessions"Metric (default visitors). With dimension, only visitors, pageviews or requests.
limitquery · integerWith dimension: rows (default and max 10,000).
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/export.csv" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
"source,visitors,pageviews,requests,share\r\nInstagram,742,1980,17340,0.4026\r\nGoogle,611,1795,16102,0.3315\r\nDireto,390,1172,12088,0.2116\r\n"Daily visitors for several domains (7 days)
/analytics/sparklinesdomains:readFor domain lists: 7 points (one per day, the last one is today) per domain. Ids from other organizations (or another project, for a restricted key) are ignored. visitors7d adds up each day's visitors.
Parameters
domainIdsquery · stringrequiredComma-separated domain ids (up to 100).
tzquery · stringIANA time zone for the days (default America/Sao_Paulo).
Request
curl "https://api.tenanci.com/v2/analytics/sparklines" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": {
"dom_4h7n1q": {
"visitors7d": 1843,
"points": [
212,
248,
301,
276,
255,
290,
261
]
},
"dom_9k2r5t": {
"visitors7d": 402,
"points": [
51,
60,
48,
66,
59,
63,
55
]
}
}
}
