Broken links (404)
Missing pages hit in the period, from the built-in 404 goal (the opt-in script.extras.js sends it): hits, visitors and the address that linked to each most often. Up to 50, most hits first.
Related: Overview totals and Time series in Analytics.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
Query parameters
periodstringoptionalOne 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 · Default: "last_30d"
fromstringoptionalPattern: ^\d{4}-\d{2}-\d{2}$
tostringoptionalPattern: ^\d{4}-\d{2}-\d{2}$
granularitystringoptionalOne of: minute, hour, day, week, month
comparestringoptionalOne of: previous_period, previous_period_dow, year_over_year, custom, none · Default: "previous_period"
compareFromstringoptionalPattern: ^\d{4}-\d{2}-\d{2}$
compareTostringoptionalPattern: ^\d{4}-\d{2}-\d{2}$
filtersobject[] | stringoptionalsegmentstringoptionalPattern: ^[a-f0-9]{24}$
pinstringoptional1–22 characters
Headers
AuthorizationstringrequiredBearer followed by a site key, an account token or an OAuth access token with the analytics:read scope.
Response
Paths.
{
"status": "string",
"data": [
{
"path": "string",
"count": 0,
"visitors": 0,
"referrer": "string",
"referrers": 0
}
]
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object[] | |
| data[].path | string | |
| data[].count | integer | |
| data[].visitors | integer | |
| data[].referrer | string | null | null | |
| data[].referrers | integer |