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>'הרשאות
- Authorizationstringheader
api_key · http · bearer
read - Authorizationstringheader
oauth · oauth2
read
פרמטרי נתיב
- site_idstringחובה
The
idof a site from List sites. - reportstringחובה
The report to read.
פרמטרי שאילתה
- 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.
כותרות
- 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.
תגובות
The report named by report.
כותרות
- 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.
- articlesintegerחובה
The site's non-deleted articles, each counted once, drafts included.
- visitorsintegerחובה
- searchesintegerחובה
- reactionsintegerחובה
Article reactions, the latest one per reader and article.
- object
- visitorsobjectחובה
Visitors.
totalis distinct visitors over the range, not the sum of the points.- totalintegerחובה
The total over the range.
- total_previousintegerחובה
The total over the previous period.
- differenceintegerחובה
totalminustotal_previous. - percentage_differencenumberחובה
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]חובה
One point per bucket of the range.
- datestringחובה
- countintegerחובה
- previousobject[]חובה
One point per bucket of the previous period.
- datestringחובה
- countintegerחובה
- article_viewsobjectחובה
Article page views.
- totalintegerחובה
The total over the range.
- total_previousintegerחובה
The total over the previous period.
- differenceintegerחובה
totalminustotal_previous. - percentage_differencenumberחובה
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]חובה
One point per bucket of the range.
- datestringחובה
- countintegerחובה
- previousobject[]חובה
One point per bucket of the previous period.
- datestringחובה
- countintegerחובה
- session_durationsobjectחובה
The time readers spend on a page, in seconds.
- average_secondsnumberחובה
The mean of the
currentpoints. - currentobject[]חובה
The mean time on a page during each bucket of the range.
- datestringחובה
- secondsnumberחובה
- previousobject[]חובה
The mean time on a page during each bucket of the previous period.
- datestringחובה
- secondsnumberחובה
- top_countriesobject[]חובה
The countries with the most visitors.
- countrystringחובה
ISO 3166-1 alpha-2 code.
- country_namestringחובה
- visitorsintegerחובה
- object
- searchesobjectחובה
- totalintegerחובה
The total over the range.
- total_previousintegerחובה
The total over the previous period.
- differenceintegerחובה
totalminustotal_previous. - percentage_differencenumberחובה
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]חובה
One point per bucket of the range.
- datestringחובה
- countintegerחובה
- previousobject[]חובה
One point per bucket of the previous period.
- datestringחובה
- countintegerחובה
- searches_with_resultsobjectחובה
Searches that returned at least one article. The totals cover every query, not only the listed ones.
- totalintegerחובה
- total_previousintegerחובה
- differenceintegerחובה
- percentage_differencenumberחובה
- queriesobject[]חובה
Most searched first.
- querystringחובה
What readers typed.
- searchesintegerחובה
- clicksintegerחובה
Clicks on a result.
- articles_shownnumberחובה
The mean number of articles each search returned.
- click_through_ratenumberחובה
Clicks per search, in percent.
- avg_click_positionnumber | nullחובה
The mean position of the clicked result;
nullwhen no result was clicked.
- searches_without_resultsobjectחובה
Searches that returned nothing. The totals cover every query, not only the listed ones.
- totalintegerחובה
- total_previousintegerחובה
- differenceintegerחובה
- percentage_differencenumberחובה
- queriesobject[]חובה
Most searched first.
- querystringחובה
- searchesintegerחובה
- click_through_rateobjectחובה
The share of searches with results that led to a click, in percent.
- currentnumberחובה
- previousnumberחובה
- differencenumberחובה
The difference in points.
- percentage_differencenumberחובה
The change in percent.
- object
- overviewobjectחובה
- currentobjectחובה
- viewsintegerחובה
Article views.
- articles_to_reviseintegerחובה
Articles with more than one view whose neutral and negative reactions exceed their positive reactions by more than one.
- reaction_summaryobjectחובה
Reactions grouped the way the site's reaction style does.
- stylestringחובה
- totalintegerחובה
All reactions.
- scoreintegerחובה
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]חובה
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringחובה
- countintegerחובה
- percentintegerחובה
- previousobjectחובה
- viewsintegerחובה
Article views.
- articles_to_reviseintegerחובה
Articles with more than one view whose neutral and negative reactions exceed their positive reactions by more than one.
- reaction_summaryobjectחובה
Reactions grouped the way the site's reaction style does.
- stylestringחובה
- totalintegerחובה
All reactions.
- scoreintegerחובה
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]חובה
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringחובה
- countintegerחובה
- percentintegerחובה
- article_viewsobjectחובה
- totalintegerחובה
The total over the range.
- total_previousintegerחובה
The total over the previous period.
- differenceintegerחובה
totalminustotal_previous. - percentage_differencenumberחובה
The change from the previous period in percent, and
0.0when the previous total is0. - currentobject[]חובה
One point per bucket of the range.
- datestringחובה
- countintegerחובה
- previousobject[]חובה
One point per bucket of the previous period.
- datestringחובה
- countintegerחובה
- top_articlesobject[]חובה
The most viewed articles.
- titlestring | nullחובה
- hoststring | nullחובה
- pathnamestring | nullחובה
- viewsintegerחובה
- top_referrersobject[]חובה
Where visitors came from.
- referrerstring | nullחובה
The referring URL, or
nullfor a direct visit. - visitorsintegerחובה
- article_engagementsobject[]חובה
The articles readers reacted to most positively.
- titlestring | nullחובה
- urlstring | nullחובה
- viewsintegerחובה
- reaction_summaryobjectחובה
Reactions grouped the way the site's reaction style does.
- stylestringחובה
- totalintegerחובה
All reactions.
- scoreintegerחובה
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]חובה
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringחובה
- countintegerחובה
- percentintegerחובה
- articles_to_reviseobject[]חובה
The articles readers reacted to most negatively.
- titlestring | nullחובה
- urlstring | nullחובה
- viewsintegerחובה
- reaction_summaryobjectחובה
Reactions grouped the way the site's reaction style does.
- stylestringחובה
- totalintegerחובה
All reactions.
- scoreintegerחובה
0 to 100: the share of positive reactions, with a neutral reaction counting half under
emoji. - groupsobject[]חובה
One entry per group,
positive,neutralandnegativeforemoji,helpfulandnot_helpfulforthumbs.- keystringחובה
- countintegerחובה
- percentintegerחובה