Maximum offset?
AnsweredHello, I am performing an HTTP request using R package `httr`, accessing the following URL
"https://api.box.com/2.0/folders/FOLDER_ID/items?limit=1000&offset=300000"
With offsets <= 300,000, the request returns the contents of the box folder as expected. With offset = 300,001, as in
"https://api.box.com/2.0/folders/FOLDER_ID/items?limit=1000&offset=300001",
this results in an HTTP 400 error. What is the underlying issue here? I have in excess of 329,000 files in my folder that I need to compare to local files to determine new uploads. Thank you for your help!
-
Due to backend limitations, it is not possible to use offset-based paging for collections of over 300,000 items. You'll need to use marker-based paging as detailed in the Get Folder Items API Documentation by setting the `usemarker` query parameter to true, and using the returned marker to access the next page.
Please sign in to leave a comment.
Comments
2 comments