What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags

Export sensor data via API



Dear, how can I get data from a sensor and export via api? the way I'm doing is giving me a wrong value example of the message

This XML file does not appear to have any style information associated with it. The document tree is shown below. <prtg> <version> </version> <error> Sorry, the selected object cannot be used here or it does not exist. </error> </prtg>

api device prtgapi

Created on Nov 10, 2020 10:41:12 PM

2 Replies



Hi Daniel,

It sounds like your API request is malformed

The syntax of an API request for a single sensor is as follows


The filter_objid filter specifies the ID of the object to retrieve. In this example, this retrieves the XML for the single sensor with ID 1001

If you are using PowerShell, you can also do this a lot easier with PrtgAPI

Get-Sensor -Id 1001



Created on Nov 11, 2020 6:26:44 AM



Thank you for your response Lordmilko.

I would also add the manual of the PRTG API, which includes the list of information we can get (included in your API request).



Created on Nov 11, 2020 6:58:48 AM by  Florian Lesage [Paessler Support]

Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.