tracera
API

Query API

The Query API powers every number in the portal — and you can call it directly from your own dashboards, BI tool, or pitchfire.app integration. Every endpoint is tenant-scoped through the token.

Endpoint & auth

GET https://portal.tracera.eu/api/v1/properties/<property_id>/stats/<view>
Authorization: Bearer tk_live_EXAMPLE

Issue a token in the portal under API tokens. Scope it to property, brand, or tenant depending on the breadth your client needs, and pick capabilities like property.read.

Common parameters

ParamDefaultNotes
range30dtoday, 7d, 30d, 12m, or custom
from / toRequired when range=custom; ISO 8601
intervalautominute, hour, day, week, month
limit50For top-N endpoints

Endpoints

Base path: https://portal.tracera.eu/api/v1/

PathReturns
GET /propertieslist of properties readable with this token
GET /properties/{id}/stats/overviewvisitors, pageviews, bounce rate, avg engagement, live count
GET /properties/{id}/stats/timeseriesper-interval visitors & pageviews
GET /properties/{id}/stats/pagestop URLs by visitors, pageviews, bounce, avg time
GET /properties/{id}/stats/sourcestop referrers, UTM source/medium/campaign breakdown
GET /properties/{id}/stats/geovisitors by country & region
GET /properties/{id}/stats/devicesdevice type, browser, OS breakdown
GET /properties/{id}/stats/eventscustom events with counts
GET /properties/{id}/stats/realtimelast 30 min: count + live event stream

Example

curl https://portal.tracera.eu/api/v1/properties/prp_3f09c2e/stats/timeseries?range=7d&interval=day \
  -H 'Authorization: Bearer tk_live_EXAMPLE'

# Response:
{
  "property_id": "prp_3f09c2e",
  "range": { "from": "2026-06-10T00:00:00Z", "to": "2026-06-17T00:00:00Z" },
  "interval": "day",
  "buckets": [
    { "t": "2026-06-10", "visitors": 4823, "pageviews": 19284 },
    { "t": "2026-06-11", "visitors": 5102, "pageviews": 20418 }
  ]
}

Rate limits

Tokens are rate-limited; concrete limits are subject to change and surfaced in the portal when relevant.