Others

How to Fix SharePoint Graph API Returning Only 25 Page Viewers

Kushani NimanthikaKushani Nimanthika Oct 13, 2026 869 views

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.

How to Fix SharePoint Graph API Returning Only 25 Page Viewers
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.
Before you start

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.

Solution 1Recommended

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.

1
Review Graph 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.

2
Check the Response Payload

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.

3
Test with Graph Explorer

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.

Check for Pagination Support and Alternative Endpoints
Beta Endpoints: You can temporarily test the beta endpoint (/beta/sites/{site-id}/...) in Graph Explorer to see if newer, unreleased analytics endpoints return the full list of viewers.
Free Microsoft Office alternative

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. 1. Visit the Official Website: Go to the official WPS Office website on your computer.
  2. 2. Download the Installer: Click the 'Free Download' button to get the setup file for your operating system.
  3. 3. Install and Run: Run the installer, follow the on-screen prompts, and start creating or editing your documents instantly.
Highly compatible with Microsoft Excel, Word, and PowerPoint formats.Lightweight installation with incredibly fast loading times.Free alternative with a familiar, easy-to-use tabbed interface.Seamless document transition without any formatting loss.
QA img-9

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.