Skip to main content
GET
Query reports

Authorizations

Authorization
string
header
required

Workspace-scoped token sent in the Authorization header as Bearer . Access depends on the credential's allowed operations, read or write scope, and workspace subscription. Use an API key issued in the tracker for Public API v1. MCP uses separate OAuth credentials.

Query Parameters

timezone
string

IANA timezone with whole-hour UTC offsets, such as UTC or a timezone offered in the report interface. Defaults to the workspace timezone.

filter
string

Encode each complete fieldvalue[|value2...] expression separately with encodeURIComponent, then join expressions with literal commas. Operators are =, !=, > and <. Up to 6 expressions and 1000 values per expression. Example: country%3DUS%7CCA,visits%3E100. Do not encode the separator commas. Percentage metric thresholds use ratios. Tag filters support only = and !=, with a tag state or none. Traffic filters use traffic::, where dimension is campaign or token1 through token15. Properties enabled, status and bidMode support = and !=. enabled accepts on, off, unknown, unlinked or mixed. Off includes rows with a paused parent (PAUSED or a status ending in _PAUSED). Budget limits alone do not make a row off. status accepts uppercase status codes, including ACTIVE, PAUSED, PARENT_PAUSED, PARENT_UNKNOWN, UNKNOWN, UNLINKED and MIXED, or PARENT:. bidMode accepts default, value, unknown, unlinked or mixed. The bid property accepts one nonnegative number with any supported operator and treats inherited bids as zero. Unknown bids are excluded from numeric comparisons. Numeric bids require a common currency and unit. Token groups require a single campaign filter or campaign in dimensions.

dimensions
enum<string>[]

Comma-separated supported grouping IDs. Default day,campaign. At least one non-tag dimension is required.

Required array length: 1 - 12 elements

Report grouping dimension. isp identifies the estimated primary use of the visitor's network. isBot groups visits by detected bot or non-browser status as 0 or 1. verifiedBotCategory is the bot category and tlsVersion is the visit's TLS version. Unavailable values are null.

Available options:
day,
hour,
month,
dayOfWeek,
tenant,
campaign,
traffic,
rotator,
rotatorPath,
landing,
offer,
country,
continent,
region,
city,
timezone,
language,
ipType,
asn,
asnOrg,
isp,
connType,
isBot,
verifiedBotCategory,
tlsVersion,
deviceType,
osFamily,
browserName,
affiliateNetwork,
deviceBrand,
deviceModel,
osVersion,
browserVersion,
token1,
token2,
token3,
token4,
token5,
token6,
token7,
token8,
token9,
token10,
token11,
token12,
token13,
token14,
token15,
tag
metrics
enum<string>[]

Comma-separated metric IDs. Defaults to visits. Custom formulas are available in the tracker interface and are not accepted here.

Maximum array length: 40

Built-in report metric. prefetchVisits counts visits identified as prefetch, including blocked visits and excluding browser prerender. suspicious counts visits flagged as suspicious. suspiciousPct is their share of all visits, returned as a ratio. A flagged visit does not confirm fraud.

Available options:
visits,
prefetchVisits,
uniqueVisits,
lpclicks,
uniqueClicks,
ctr,
uctr,
revenue,
cost,
profit,
roi,
profitMargin,
epc,
epv,
epa,
epuc,
cpc,
cpv,
conversions,
cv,
cr,
ucr,
ucv,
cpa,
cpuc,
ppuc,
suspicious,
suspiciousPct,
event1,
event2,
event3,
event4,
event5,
event6,
event7,
event8,
event9,
event10,
revenue1,
revenue2,
revenue3,
revenue4,
revenue5,
revenue6,
revenue7,
revenue8,
revenue9,
revenue10,
cost1,
cost2,
cost3,
cost4,
cost5,
cost6,
cost7,
cost8,
cost9,
cost10,
value1,
value2,
value3,
value4,
value5,
value6,
value7,
value8,
value9,
value10
status
enum<string>
default:all

Active or archived status applies to the first status-capable grouping dimension: campaign, traffic, landing, offer, affiliateNetwork or rotator. Such a dimension is required for these modes. All or an omitted value includes both statuses.

Available options:
all,
active,
archived
from
string
required

Inclusive start as YYYY-MM-DD or local date-time, interpreted in timezone.

to
string
required

Inclusive end as YYYY-MM-DD or local date-time, interpreted in timezone. Date-only values include the complete final day.

limit
integer
default:100

Page size. Values outside 1 through 1000 fall back to 100.

Required range: 1 <= x <= 1000
offset
integer
default:0

Number of rows to skip. Negative or nonnumeric values fall back to zero.

Required range: x >= 0
totals
string
default:0

Set to 1 to include totals in data.meta.totals. Other values omit totals.

suspiciousDetails
string
default:0

Set to 1 to include suspicious visit counts by category in each row and requested totals. A visit can appear in more than one category. Other values omit the details.

sortBy
string
default:visits

A report metric, tag, dimension key, or traffic::enabled, status or bid. Traffic sorting requires its dimension in the grouping. Token traffic sorting also requires a single campaign filter or campaign in the grouping. Numeric bids require a common currency and unit. Inherited bids sort as zero. Unknown values sort last in either direction. An ordinary dimension outside the grouping falls back to visits.

sortDir
enum<string>
default:desc

Only asc selects ascending order. All other values select descending order.

Available options:
asc,
desc
primaryDimension
enum<string>

Base dimension used for tags and totals labels. Defaults to the first grouping dimension. If supplied outside dimensions, it is also added to the grouping. Cannot be tag.

Available options:
day,
hour,
month,
dayOfWeek,
tenant,
campaign,
traffic,
rotator,
rotatorPath,
landing,
offer,
country,
continent,
region,
city,
timezone,
language,
ipType,
asn,
asnOrg,
isp,
connType,
isBot,
verifiedBotCategory,
tlsVersion,
deviceType,
osFamily,
browserName,
affiliateNetwork,
deviceBrand,
deviceModel,
osVersion,
browserVersion,
token1,
token2,
token3,
token4,
token5,
token6,
token7,
token8,
token9,
token10,
token11,
token12,
token13,
token14,
token15
includeEmpty
string
default:0

Use 1, true or yes to include zero rows for a single hour, dayOfWeek, campaign, traffic, landing, offer, affiliateNetwork, rotator or rotatorPath dimension. Zero rows require no other dimension filters, no tag context and metric filters that admit zero values. With today grouped by hour, future hours are omitted.

Response

Report rows

ok
enum<boolean>
required
Available options:
true
data
object
required