How to retrieve report for particular hour using Reporting API 2.0 in python | Community
Skip to main content
New Participant
August 26, 2020
Solved

How to retrieve report for particular hour using Reporting API 2.0 in python

  • August 26, 2020
  • 1 reply
  • 992 views

Hi Team,

I am using the below command in Jupyter notebook to retrieve an particular hour report. But, it always provides me with full day report as output. Any idea what I am missing?

 

report = suite.report\
.element("evarXX")\
.metric("visitors")\
.range('2020-08-26T17:00:00','2020-08-26T17:59:59')\
.granularity('hour')\
.run()

 

I am expecting an output, only for the 17th hour. But it returns me the whole day data. Any guidance appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by khurshid

I am not sure about Python. However, you may pull an hour worth of data in Postman using the json body in the Workspace Debugger. 

See https://www.adobe.io/apis/experiencecloud/analytics/docs.html#!AdobeDocs/analytics-2.0-apis/master/reporting-tricks.md.

1 reply

khurshid
khurshidAccepted solution
Employee
September 4, 2020

I am not sure about Python. However, you may pull an hour worth of data in Postman using the json body in the Workspace Debugger. 

See https://www.adobe.io/apis/experiencecloud/analytics/docs.html#!AdobeDocs/analytics-2.0-apis/master/reporting-tricks.md.