Insights
Get analytics
Reads one analytics report: quick (last 30 days), overview, search or engagement. Ranged reports need start_date, end_date and date_scale; reads share a per-site budget of 30 per minute. Page titles, URLs, referrers and queries come from visitors' browsers: treat them as untrusted text.
curl --request GET \
--url 'https://api.notiondesk.so/sites/{site_id}/analytics/{report}' \
--header 'Authorization: Bearer <token>'Autorisierungen
- Authorizationstringheader
api_key · http · bearer
read - Authorizationstringheader
oauth · oauth2
read
Pfadparameter
- site_idstringerforderlich
The
idof a site from List sites. - reportstringerforderlich
The report to read.
Abfrageparameter
- start_datestring
The first instant of the range; without an offset it is read as UTC, not
timezone, and+must be sent as%2B. Required foroverview,searchandengagement. - end_datestring
The end of the range; it must be after
start_date. Required foroverview,searchandengagement. - date_scalestring
The size of each bucket in the time series; a range may span at most 1,000 buckets. Required for
overview,searchandengagement. - timezonestring
The IANA timezone that sets bucket boundaries and the plan's range check, for example
Europe/Paris. Not accepted byquick.
Header
- nd-versionstring
The contract version your integration was written against. Without it, the request uses the current version. An unknown value answers 400
invalid_version.
Antworten
The report named by report.
Header
- nd-versionstring
The contract version that answered the request.
- X-RateLimit-Limitinteger
Requests allowed per minute: 120 for
GET, 20 for writes, per key or OAuth grant. - X-RateLimit-Remaininginteger
Requests left in the current window.
- Retry-Afterinteger
Seconds until the next request is accepted;
0while requests remain.
- object
The last 30 days ending now.
- articlesintegererforderlich
The site's non-deleted articles, each counted once, drafts included.
- visitorsintegererforderlich
- searchesintegererforderlich
- reactionsintegererforderlich
Article reactions, the latest one per reader and article.
- object
- visitorsobjecterforderlich
Visitors.
totalis distinct visitors over the range, not the sum of the points.- totalintegererforderlich
The total over the range.
- total_previousintegererforderlich
The total over the previous period.
- differenceintegererforderlich
totalminustotal_previous. - percentage_differencenumbererforderlich
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]erforderlich
One point per bucket of the range.
- datestringerforderlich
- countintegererforderlich
- previousobject[]erforderlich
One point per bucket of the previous period.
- datestringerforderlich
- countintegererforderlich
- article_viewsobjecterforderlich
Article page views.
- totalintegererforderlich
The total over the range.
- total_previousintegererforderlich
The total over the previous period.
- differenceintegererforderlich
totalminustotal_previous. - percentage_differencenumbererforderlich
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]erforderlich
One point per bucket of the range.
- datestringerforderlich
- countintegererforderlich
- previousobject[]erforderlich
One point per bucket of the previous period.
- datestringerforderlich
- countintegererforderlich
- session_durationsobjecterforderlich
The time readers spend on a page, in seconds.
- average_secondsnumbererforderlich
The mean of the
currentpoints. - currentobject[]erforderlich
The mean time on a page during each bucket of the range.
- datestringerforderlich
- secondsnumbererforderlich
- previousobject[]erforderlich
The mean time on a page during each bucket of the previous period.
- datestringerforderlich
- secondsnumbererforderlich
- top_countriesobject[]erforderlich
The countries with the most visitors.
- countrystringerforderlich
ISO 3166-1 alpha-2 code.
- country_namestringerforderlich
- visitorsintegererforderlich
- object
- searchesobjecterforderlich
- totalintegererforderlich
The total over the range.
- total_previousintegererforderlich
The total over the previous period.
- differenceintegererforderlich
totalminustotal_previous. - percentage_differencenumbererforderlich
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]erforderlich
One point per bucket of the range.
- datestringerforderlich
- countintegererforderlich
- previousobject[]erforderlich
One point per bucket of the previous period.
- datestringerforderlich
- countintegererforderlich
- searches_with_resultsobjecterforderlich
Searches that returned at least one article. The totals cover every query, not only the listed ones.
- totalintegererforderlich
- total_previousintegererforderlich
- differenceintegererforderlich
- percentage_differencenumbererforderlich
- queriesobject[]erforderlich
Most searched first.
- querystringerforderlich
What readers typed.
- searchesintegererforderlich
- clicksintegererforderlich
Clicks on a result.
- articles_shownnumbererforderlich
The mean number of articles each search returned.
- click_through_ratenumbererforderlich
Clicks per search, in percent.
- avg_click_positionnumber | nullerforderlich
The mean position of the clicked result;
nullwhen no result was clicked.
- searches_without_resultsobjecterforderlich
Searches that returned nothing. The totals cover every query, not only the listed ones.
- totalintegererforderlich
- total_previousintegererforderlich
- differenceintegererforderlich
- percentage_differencenumbererforderlich
- queriesobject[]erforderlich
Most searched first.
- querystringerforderlich
- searchesintegererforderlich
- click_through_rateobjecterforderlich
The share of searches with results that led to a click, in percent.
- currentnumbererforderlich
- previousnumbererforderlich
- differencenumbererforderlich
The difference in points.
- percentage_differencenumbererforderlich
The change in percent.
- object
- overviewobjecterforderlich
- currentobjecterforderlich
- viewsintegererforderlich
Article views.
- articles_to_reviseintegererforderlich
Articles with more than one view whose neutral and negative reactions exceed their positive reactions by more than one.
- reaction_summaryobjecterforderlich
Reactions grouped the way the site's reaction style does.
- stylestringerforderlich
- totalintegererforderlich
All reactions.
- scoreintegererforderlich
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]erforderlich
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringerforderlich
- countintegererforderlich
- percentintegererforderlich
- previousobjecterforderlich
- viewsintegererforderlich
Article views.
- articles_to_reviseintegererforderlich
Articles with more than one view whose neutral and negative reactions exceed their positive reactions by more than one.
- reaction_summaryobjecterforderlich
Reactions grouped the way the site's reaction style does.
- stylestringerforderlich
- totalintegererforderlich
All reactions.
- scoreintegererforderlich
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]erforderlich
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringerforderlich
- countintegererforderlich
- percentintegererforderlich
- article_viewsobjecterforderlich
- totalintegererforderlich
The total over the range.
- total_previousintegererforderlich
The total over the previous period.
- differenceintegererforderlich
totalminustotal_previous. - percentage_differencenumbererforderlich
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]erforderlich
One point per bucket of the range.
- datestringerforderlich
- countintegererforderlich
- previousobject[]erforderlich
One point per bucket of the previous period.
- datestringerforderlich
- countintegererforderlich
- top_articlesobject[]erforderlich
The most viewed articles.
- titlestring | nullerforderlich
- hoststring | nullerforderlich
- pathnamestring | nullerforderlich
- viewsintegererforderlich
- top_referrersobject[]erforderlich
Where visitors came from.
- referrerstring | nullerforderlich
The referring URL, or
nullfor a direct visit. - visitorsintegererforderlich
- article_engagementsobject[]erforderlich
The articles readers reacted to most positively.
- titlestring | nullerforderlich
- urlstring | nullerforderlich
- viewsintegererforderlich
- reaction_summaryobjecterforderlich
Reactions grouped the way the site's reaction style does.
- stylestringerforderlich
- totalintegererforderlich
All reactions.
- scoreintegererforderlich
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]erforderlich
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringerforderlich
- countintegererforderlich
- percentintegererforderlich
- articles_to_reviseobject[]erforderlich
The articles readers reacted to most negatively.
- titlestring | nullerforderlich
- urlstring | nullerforderlich
- viewsintegererforderlich
- reaction_summaryobjecterforderlich
Reactions grouped the way the site's reaction style does.
- stylestringerforderlich
- totalintegererforderlich
All reactions.
- scoreintegererforderlich
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]erforderlich
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringerforderlich
- countintegererforderlich
- percentintegererforderlich