PRTG Manual: Historic Data

You can download the historic monitoring data for one sensor in the Extensible Markup Language (XML) format or the comma-separated values (CSV) format using the following API calls. You can either request the results of each single monitoring request (called raw data) or you can let PRTG calculate averages of the data (for example, hourly or daily averages).

To avoid potential server overload, the number of requestable values per API call is limited by means of automatic averaging as follows:

Minimum Level of Detail (Average Interval)

Maximum Timeframe per API Call

Raw data (all single monitoring requests)

For up to 40 days per API request

60 minutes/1 hour averages

40 to 500 days per API request

i_round_blueIf you try to use a larger time span than 500 days, PRTG automatically reduces it to 365 days.

i_round_redAPI calls for historic data are limited to 5 requests per minute.

API Calls for Historic Data

i_round_redAuthentication with username and passhash (or username and password) must always be included in each PRTG API request. See section Authentication for more information.

The API calls for historic data tables look like this:






JavaScript Object Notation (JSON):


i_round_redYou must supply the object ID of a sensor as well as a start date/time sdate and end date/time edate.

i_round_blueIf you use the JSON call, additionally provide the parameter usecaption=1 to get more information than just the raw data table.

API Call for Historic Graphs

Historic graphs are also available (in the PNG format):




Common Parameters for Historic Data API Calls

You can use the following parameters for the graphs and the data tables:



Possible Values


ID of the specific sensor

integer value


Start of the time span (date and time)



End of the time span (date and time)



Average interval in seconds; use 0 to download raw data (= results of all single monitoring requests)

integer value


Width and height of the graph in pixels

integer value


baseFontSize='x' sets the size of the font
showLegend='x' enables (1) or disables (0) the graph legend


Historic Data Query Builder

You can also use the historic data function to manually generate and analyze historic sensor data via the PRTG web interface.


i_square_blueKNOWLEDGE BASE

How can I export historic data from the PRTG API?

How can I export raw sensor data automatically from PRTG?

Application Programming Interface (API) Definition