OneDrive Api RRS feed

  • Question

  • Hi
    I am use onedrive api to getting all files and folder from one drive but from api i am getting only 200 files and my file and folder size is 1000.
    Is that any way to increase the length? 

    Thursday, August 23, 2018 7:20 AM

All replies

  • This is how most REST APIs work. There can be an arbitrary # of items in a folder so the API limits how much you can get at any one time. In most cases an API allows you to specify how many you want but the server will set an upper limit as well. Sounds like the default is 200 for OneDrive. To (try) to request more you'd use the $top parameter in the query. OneDrive follows the OData query pattern here. To page results you'd continually call the API with the same $top value but increment $skipToken each time so it returns the next page of results.

    Michael Taylor http://www.michaeltaylorp3.net

    Thursday, August 23, 2018 1:52 PM
  • Hi Nitin Maurya,

    If a collection exceeds the default page size (200 items), the @odata.nextLink property is returned in the response to indicate more items are available and provide the request URL for the next page of items. Please refer to the link below to set the parameter.


    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, August 30, 2018 7:17 AM