Atribu
API Reference

Breakdowns

Traffic source, page, country, device, browser, OS, and referrer breakdown endpoints.

Breakdowns

Seven breakdown endpoints share the same response shape. Each returns dimension values ranked by visitors, along with traffic and conversion metrics.

Scope: analytics:read

Endpoints

Parameters

ParameterTypeRequiredDescription
date_fromstringYesStart date in YYYY-MM-DD format.
date_tostringYesEnd date in YYYY-MM-DD format.
limitnumberNoMaximum results to return. Default 10, max 100.
filter[dimension]stringNoFilter by any supported dimension. See Filtering below.

Request

All seven endpoints accept the same parameters and return the same shape. The examples below use /api/v1/channels.

cURL
curl -H "Authorization: Bearer atb_live_YOUR_KEY" \
  "https://www.atribu.app/api/v1/channels?date_from=2026-03-01&date_to=2026-03-25&limit=5"
JavaScript
const res = await fetch(
  "https://www.atribu.app/api/v1/channels?date_from=2026-03-01&date_to=2026-03-25&limit=5",
  { headers: { Authorization: "Bearer atb_live_YOUR_KEY" } }
);
const { data, meta } = await res.json();
Python
import requests

res = requests.get(
    "https://www.atribu.app/api/v1/channels",
    headers={"Authorization": "Bearer atb_live_YOUR_KEY"},
    params={"date_from": "2026-03-01", "date_to": "2026-03-25", "limit": 5},
)
data = res.json()["data"]

Response

Success response (200 OK)
{
  "data": [
    {
      "value": "Paid Social",
      "visitors": 3200,
      "visits": 4100,
      "pageviews": 12500,
      "bounce_rate": 38.5,
      "conversions": 85,
      "conversion_rate": 2.07,
      "revenue": 8500.00
    },
    {
      "value": "Organic Search",
      "visitors": 2100,
      "visits": 2800,
      "pageviews": 7200,
      "bounce_rate": 48.2,
      "conversions": 32,
      "conversion_rate": 1.14,
      "revenue": 3200.00
    }
  ],
  "meta": {
    "date_from": "2026-03-01",
    "date_to": "2026-03-25",
    "profile_id": "uuid"
  }
}

Response fields

FieldTypeDescription
valuestringThe dimension value (channel name, page path, country code, etc.).
visitorsnumberUnique visitors.
visitsnumberTotal sessions (visits).
pageviewsnumberTotal page views.
bounce_ratenumberPercentage of single-page sessions.
conversionsnumberTotal conversions attributed to this dimension value.
conversion_ratenumberConversions divided by visitors, as a percentage.
revenuenumberAttributed cash revenue in your reporting currency.

Filtering

Apply filters to any breakdown endpoint using the filter[dimension]=operator:value query parameter syntax. Multiple filters can be combined.

cURL — filter countries by Paid Social traffic
curl -H "Authorization: Bearer atb_live_YOUR_KEY" \
  "https://www.atribu.app/api/v1/countries?date_from=2026-03-01&date_to=2026-03-25&filter[channel]=is:Paid+Social"
JavaScript — filter countries by Paid Social traffic
const url = new URL("https://www.atribu.app/api/v1/countries");
url.searchParams.set("date_from", "2026-03-01");
url.searchParams.set("date_to", "2026-03-25");
url.searchParams.set("filter[channel]", "is:Paid Social");

const res = await fetch(url, {
  headers: { Authorization: "Bearer atb_live_YOUR_KEY" },
});
Python — filter countries by Paid Social traffic
res = requests.get(
    "https://www.atribu.app/api/v1/countries",
    headers={"Authorization": "Bearer atb_live_YOUR_KEY"},
    params={
        "date_from": "2026-03-01",
        "date_to": "2026-03-25",
        "filter[channel]": "is:Paid Social",
    },
)

Supported operators

OperatorDescriptionExample
isExact match.filter[country]=is:US
is_notExclude exact match.filter[device]=is_not:desktop
containsSubstring match (case-insensitive).filter[page]=contains:/pricing
not_containsExclude substring match (case-insensitive).filter[referrer]=not_contains:spam

Available filter dimensions

channel, referrer, campaign, page, entry_page, country, region, city, browser, os, device, goal.

Filters apply across endpoints

Filters work identically on all seven breakdown endpoints as well as on the Timeseries endpoint. For example, filter[channel]=is:Direct on /api/v1/pages shows only pages visited by direct traffic.

On this page