Skip to main content
Question

Maximum offset?

  • May 22, 2025
  • 2 replies
  • 11 views

Forum|alt.badge.img

Hello, 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!

2 replies

Forum|alt.badge.img

 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.


Forum|alt.badge.img

Thanks for the reply! I will switch over to a marker-based implementation instead.