Skip to content

API playground

Send real requests from your browser and see the response right away. Two kinds of credentials work here: a site key such as dt_site_… reads and writes data for one website, and an account token such as dt_pat_… works across your websites with the scopes you chose. Create a site key in a website’s Settings → Developer, or an account token in your account.

API playground

GET

Breakdown by dimension · Jump to docs →

Accepts a site key, an account token or an OAuth access token with the analytics:read scope. Your key stays in this tab and is only sent with your request. Auth and scopes

Parameters
Website id or domain, e.g. example.com
One of: realtime, today, yesterday, last_24h, last_7d, last_30d, last_90d, last_12m, week_to_date, last_week, month_to_date, last_month, year_to_date, all, custom
Pattern: ^\d{4}-\d{2}-\d{2}$
Pattern: ^\d{4}-\d{2}-\d{2}$
One of: minute, hour, day, week, month
One of: previous_period, previous_period_dow, year_over_year, custom, none
Pattern: ^\d{4}-\d{2}-\d{2}$
Pattern: ^\d{4}-\d{2}-\d{2}$
Pattern: ^[a-f0-9]{24}$
1–22 characters
One of: page, entry_page, exit_page, hostname, referrer, channel, source, utm_source, utm_medium, utm_campaign, utm_term, utm_content, ref, country, region, city, browser, os, device, screen, language, goal, external_link, visit_number, platform, prop
One of: visitors, sessions, pageviews, views_per_session, bounce_rate, avg_session_duration, revenue, revenue_per_visitor, conversion_rate, payments, new_customers, refunds, goal_completions, goal_conversion_rate, exit_rate, time_on_page, scroll_depth
1 to 200
Up to 512 characters
1–64 characters
1–200 characters

Response

Send a request to see the response here.