Top Articles
Retrieve event counts for a specified host and date range. Counts are assigned per attributed path.
Top Articles
GET
https://api.chartbeat.com/milkyway_dashboard/v1/top_articles_by_event_type
Fetch the top articles that drove a given event type
Query Parameters
host*
String
The site on which you are querying.
end
String
Include timestamp. The format of the timestamp should be ISO8601 compliant (e.g. 2013-05-11T20:00:00Z
) or if you want to query in a different time zone (e.g. 2013-05-11T20:00:00+07:00
).
start
String
Include timestamp. The format of the timestamp should be ISO8601 compliant (e.g. 2013-05-11T20:00:00Z) or if you want to query in a different time zone (e.g. 2013-05-11T20:00:00+07:00).
sort_event_type*
String
Event type used to sort articles. Use a combination of the event category name (e.g. paywall
, registration,
newsletter_signup, download
- see full list below) and the action (shown
, start
, complete
, or cancel
) in the format categoryname_action
. Note that these are case sensitive. One value accepted.
limit*
Number
The maximum number of distinct articles to return.
apikey (see note)
String
NOTE: Your API key should no longer be set as a query param; instead. pass it in the HTTP header
Available sort_event_type
values (e.g. &sort_event_type=survey
)
Last updated