Go to All Forums

How to get site24x7 web page speed browser's log report through API service

I am wondering does site24x7 enable us to get web page speed browser's log report (csv file) through API service?

Now, I am able to use site24x7 API to get web page speed browser json file. 

But this is not what I need by far. I need to get the further log report of the web page speed browser. 

To retrieve monitor, I reference this site. 
 www.site24x7.com/help/api/#retrieve-monitor

But I did not see how to retrieve the log report csv file through site24x7 api further here. 
www.site24x7.com/help/api/#web-page-speed-browser

Like (2) Reply
Replies (1)

Re: How to get site24x7 web page speed browser's log report through API service

Hi there, 

You can download the log report as CSV by altering the request header. 

Follow the this API help . Just alter the header as text/csv and you should be able to get the csv file downloaded. I've highlighted the header that you need to change below.

$ curl "https://www.site24x7.com/api/reports/log_reports/{monitor_id}?start_date=<startdate>&end_date=<enddate>"\
-X GET \
-H "Accept: text/csv; version=2.0" \
-H "Authorization: Zoho-oauthtoken <auth token>"

Try it out and let us know if it helps. 

-Jasper

PM, Site24x7

 

Like (0) Reply

Was this post helpful?