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

Goals report · Jump to docs →

Accepts a site key, an account token or an OAuth access token with the goals: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

Response

Send a request to see the response here.