Overview
The OSIsoft PI Web API enforces application-level limits to ensure system stability, prevent denial-of-service scenarios, and maintain consistent performance. One of the most important enforced constraints is the MaxCount parameter.
MaxCount Limit
Definition: The maximum number of items that can be returned in a single API call.
Purpose: Protects against excessive data transfer in one request, which could impact server performance and client-side memory handling.
Default Configuration
The default MaxCount for individual PI Web API calls is 1000 records.
This applies to common endpoints, such as retrieving recorded data from a stream.
Enforced Application Limit
The maximum supported value is 1000.
Applications must not expose configuration to increase this limit.
Any request that attempts to specify a value greater than 1000 will be automatically capped at 1000 records per call.