04 Jan 2023 05:41 PM - last edited on 20 Aug 2024 03:11 PM by Michal_Gebacki
Can we get data straight into a csv or excel file utilizing a rest API?
Solved! Go to Solution.
04 Jan 2023 06:35 PM
It depends on the endpoint.
The metrics API can return CSV data if you specify the proper Accept request header. But the monitored entities API can only return JSON data.
Mostly it's metrics that you can get in CSV, but you can check the doc page for the specific API endpoint to know for sure and see how it request it. Otherwise that processing would need to be done client-side.
04 Jan 2023 06:38 PM
Hi,
I do not think you can do that directly. I assume you already have looked at using external tools to covert form json to csv.
Thanks. Tibebe