Question & Answer
Question
(Legacy Interface) How can I get an API for Trend View of the Top Line Metrics Report?
Answer
You can access trended Top Line metrics data only by manually configuring an API URL. This can be done as:
1. Generate an API for Top Line metrics report:
https://welcome.coremetrics.com/analyticswebapp/api/1.0/topline-data/topline.ftl?clientId=<clientID>&username=<username>&format=XLS&userAuthKey=804e4dcd-8c0a-418a-aa36-6e8941d4186b&language=en_US&viewID=default.ftl&period_a=D20150616&fileName=topline_default_view_D20150616.xls
2. Now append ?trend? to topline in the above URL as shown below:
https://welcome.coremetrics.com/analyticswebapp/api/1.0/toplinetrend-data/topline.ftl?clientId=<clientID>&username=<username>&format=XLS&userAuthKey=804e4dcd-8c0a-418a-aa36-6e8941d4186b&language=en_US&viewID=default.ftl&period_a=D20150616&fileName=topline_default_view_D20150616.xls
Now use this URL to generate API for trend view. This feature of manually editing an API and getting trend view is available only for Top Line Metrics report and not for any other Digital Analytics Report.
Note: though the ViewID parameter is allowed in the API string for backwards compatibility it is ignored.? The Topline Trend API will always use the default view.
Was this topic helpful?
Document Information
Modified date:
08 December 2018
UID
ibm10773943