How do you pull Page Titles using the API if there are more than 100 pages in a section

Cody Nugent 0 Reputation points
2024-11-19T15:26:18.96+00:00

When working with the graph API I can pull any data that I need as long as the section that I am working in has less than 100 pages. This is causing issues in my system. Are there any work arounds or options to this other than just making multiple sections?

Thanks

OneNote
OneNote
A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.
228 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,887 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,178 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akhil Nasalwai - MSFT 165 Reputation points Microsoft Vendor
    2025-01-06T15:31:21.68+00:00

    Hello Cody Nugent,

    Thank you for contacting Microsoft!

    For pulling page titles using Graph API if there are more than 100 pages in a section, can you please try below mentioned work arounds:

    • When you make a request that returns multiple pages of data, the response includes an @odata.nextlink property. You can use this link to fetch the next page of results until there are no more pages.
    • Some APIs allow you to specify the number of results per page using query parameters like $top You can try increasing the page size to reduce the number of requests you need to make.
    • If your application allows, consider batching multiple requests together to reduce the number of round trips to the server.
    • Implementing caching mechanism to store previously fetched data and reduce the number of API calls.

    After trying the work arounds, if the issue still persists, You can submit this feature request using this support link, which will be monitored by Microsoft team and make the enhancements to Graph API.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.