How to Fix SharePoint Graph API Returning Only 25 Page Viewers
Question details
The user is trying to retrieve a complete list of page viewers using the SharePoint Graph API, but the results are capped at 25 users.

- Product
- Microsoft Graph API
- Device & OS
- not provided
- Scenario
- Retrieving SharePoint page analytics via the Microsoft Graph activities array.
- Observed behavior
- The API activities array returns only the first 25 viewers. Increasing the $top parameter does not bypass this service limit, which is also reflected in the SharePoint interface.
Verify your current Graph API endpoint URL and ensure you have the latest Microsoft Graph documentation open to check for any recently introduced pagination properties.
Check for Pagination Support and Alternative Endpoints
Reviewing updated Microsoft Graph documentation can reveal new pagination methods or alternative beta endpoints for analytics.
API capabilities evolve over time. While the standard v1.0 endpoint might restrict page viewers to 25 due to performance constraints, Microsoft often introduces enhanced analytics endpoints or reliable pagination techniques in their beta channel or updated documentation.
Visit the official Microsoft Graph API documentation and search for the specific SharePoint analytics endpoint you are calling to check for updated service limits.
Inspect your JSON response in a tool like Postman. Look for the @odata.nextLink property, which indicates that standard pagination is supported for your query.
Log into the Microsoft Graph Explorer tool. Run your query there to isolate the issue and confirm whether the 25-viewer cap is an enforced API limitation or a code-side issue.

Consult the Microsoft Graph Support Community
Since this is a specific Microsoft Graph service limit, reaching out to the dedicated developer community is the most effective way to find custom workarounds.
Try WPS Office for Your Document Management Needs
While WPS Office does not resolve Microsoft Graph API backend limitations, it serves as a highly compatible, free, and lightweight alternative to Microsoft Office. It offers a familiar user interface and seamless file compatibility for all your daily productivity tasks.
- 1. Visit the Official Website: Go to the official WPS Office website on your computer.
- 2. Download the Installer: Click the 'Free Download' button to get the setup file for your operating system.
- 3. Install and Run: Run the installer, follow the on-screen prompts, and start creating or editing your documents instantly.

Frequently Asked Questions
Why does the Microsoft Graph API limit SharePoint analytics to 25 viewers?
This is currently a known service limitation within the Microsoft Graph API for specific SharePoint activities arrays, designed to optimize server performance and API response times. The native SharePoint interface often reflects this exact same cap.
Can I use the $top parameter to get more than 25 viewers?
In many cases regarding this specific SharePoint analytics endpoint, increasing the $top OData parameter will not bypass the hardcoded service limit, and the API will continue returning a maximum of 25 viewers.
Where can I request an increase to this API limitation?
You can submit feedback, feature requests, or ask for updates on this limitation in the official Microsoft Graph support community or through the Microsoft 365 Developer Feedback portal.




