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>'Autorisaties
- Authorizationstringheader
api_key · http · bearer
read - Authorizationstringheader
oauth · oauth2
read
Padparameters
- site_idstringverplicht
The
idof a site from List sites. - reportstringverplicht
The report to read.
Queryparameters
- 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.
Headers
- 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.
Antwoorden
The report named by report.
Headers
- 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.
- articlesintegerverplicht
The site's non-deleted articles, each counted once, drafts included.
- visitorsintegerverplicht
- searchesintegerverplicht
- reactionsintegerverplicht
Article reactions, the latest one per reader and article.
- object
- visitorsobjectverplicht
Visitors.
totalis distinct visitors over the range, not the sum of the points.- totalintegerverplicht
The total over the range.
- total_previousintegerverplicht
The total over the previous period.
- differenceintegerverplicht
totalminustotal_previous. - percentage_differencenumberverplicht
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]verplicht
One point per bucket of the range.
- datestringverplicht
- countintegerverplicht
- previousobject[]verplicht
One point per bucket of the previous period.
- datestringverplicht
- countintegerverplicht
- article_viewsobjectverplicht
Article page views.
- totalintegerverplicht
The total over the range.
- total_previousintegerverplicht
The total over the previous period.
- differenceintegerverplicht
totalminustotal_previous. - percentage_differencenumberverplicht
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]verplicht
One point per bucket of the range.
- datestringverplicht
- countintegerverplicht
- previousobject[]verplicht
One point per bucket of the previous period.
- datestringverplicht
- countintegerverplicht
- session_durationsobjectverplicht
The time readers spend on a page, in seconds.
- average_secondsnumberverplicht
The mean of the
currentpoints. - currentobject[]verplicht
The mean time on a page during each bucket of the range.
- datestringverplicht
- secondsnumberverplicht
- previousobject[]verplicht
The mean time on a page during each bucket of the previous period.
- datestringverplicht
- secondsnumberverplicht
- top_countriesobject[]verplicht
The countries with the most visitors.
- countrystringverplicht
ISO 3166-1 alpha-2 code.
- country_namestringverplicht
- visitorsintegerverplicht
- object
- searchesobjectverplicht
- totalintegerverplicht
The total over the range.
- total_previousintegerverplicht
The total over the previous period.
- differenceintegerverplicht
totalminustotal_previous. - percentage_differencenumberverplicht
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]verplicht
One point per bucket of the range.
- datestringverplicht
- countintegerverplicht
- previousobject[]verplicht
One point per bucket of the previous period.
- datestringverplicht
- countintegerverplicht
- searches_with_resultsobjectverplicht
Searches that returned at least one article. The totals cover every query, not only the listed ones.
- totalintegerverplicht
- total_previousintegerverplicht
- differenceintegerverplicht
- percentage_differencenumberverplicht
- queriesobject[]verplicht
Most searched first.
- querystringverplicht
What readers typed.
- searchesintegerverplicht
- clicksintegerverplicht
Clicks on a result.
- articles_shownnumberverplicht
The mean number of articles each search returned.
- click_through_ratenumberverplicht
Clicks per search, in percent.
- avg_click_positionnumber | nullverplicht
The mean position of the clicked result;
nullwhen no result was clicked.
- searches_without_resultsobjectverplicht
Searches that returned nothing. The totals cover every query, not only the listed ones.
- totalintegerverplicht
- total_previousintegerverplicht
- differenceintegerverplicht
- percentage_differencenumberverplicht
- queriesobject[]verplicht
Most searched first.
- querystringverplicht
- searchesintegerverplicht
- click_through_rateobjectverplicht
The share of searches with results that led to a click, in percent.
- currentnumberverplicht
- previousnumberverplicht
- differencenumberverplicht
The difference in points.
- percentage_differencenumberverplicht
The change in percent.
- object
- overviewobjectverplicht
- currentobjectverplicht
- viewsintegerverplicht
Article views.
- articles_to_reviseintegerverplicht
Articles with more than one view whose neutral and negative reactions exceed their positive reactions by more than one.
- reaction_summaryobjectverplicht
Reactions grouped the way the site's reaction style does.
- stylestringverplicht
- totalintegerverplicht
All reactions.
- scoreintegerverplicht
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]verplicht
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringverplicht
- countintegerverplicht
- percentintegerverplicht
- previousobjectverplicht
- viewsintegerverplicht
Article views.
- articles_to_reviseintegerverplicht
Articles with more than one view whose neutral and negative reactions exceed their positive reactions by more than one.
- reaction_summaryobjectverplicht
Reactions grouped the way the site's reaction style does.
- stylestringverplicht
- totalintegerverplicht
All reactions.
- scoreintegerverplicht
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]verplicht
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringverplicht
- countintegerverplicht
- percentintegerverplicht
- article_viewsobjectverplicht
- totalintegerverplicht
The total over the range.
- total_previousintegerverplicht
The total over the previous period.
- differenceintegerverplicht
totalminustotal_previous. - percentage_differencenumberverplicht
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]verplicht
One point per bucket of the range.
- datestringverplicht
- countintegerverplicht
- previousobject[]verplicht
One point per bucket of the previous period.
- datestringverplicht
- countintegerverplicht
- top_articlesobject[]verplicht
The most viewed articles.
- titlestring | nullverplicht
- hoststring | nullverplicht
- pathnamestring | nullverplicht
- viewsintegerverplicht
- top_referrersobject[]verplicht
Where visitors came from.
- referrerstring | nullverplicht
The referring URL, or
nullfor a direct visit. - visitorsintegerverplicht
- article_engagementsobject[]verplicht
The articles readers reacted to most positively.
- titlestring | nullverplicht
- urlstring | nullverplicht
- viewsintegerverplicht
- reaction_summaryobjectverplicht
Reactions grouped the way the site's reaction style does.
- stylestringverplicht
- totalintegerverplicht
All reactions.
- scoreintegerverplicht
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]verplicht
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringverplicht
- countintegerverplicht
- percentintegerverplicht
- articles_to_reviseobject[]verplicht
The articles readers reacted to most negatively.
- titlestring | nullverplicht
- urlstring | nullverplicht
- viewsintegerverplicht
- reaction_summaryobjectverplicht
Reactions grouped the way the site's reaction style does.
- stylestringverplicht
- totalintegerverplicht
All reactions.
- scoreintegerverplicht
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]verplicht
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringverplicht
- countintegerverplicht
- percentintegerverplicht