Skip to main content
New Participant
May 28, 2024 11:16 AM UTC

Marker-Based Pagination w/ PythonSDK

Hello community,

Is there a way to use the Marker-Based Pagination with Python SDK? I’m currently trying to perform a search that will exceed the 10.000 limitation for the ‘offset’ property. Therefore, I’m trying to perform it with a marker-based object collection but haven’t found any documentation on how to perform the search with Python scripting.

I would really appreciate your help upon this matter.
Thanks in advance!

    3 replies

    Box Employee
    May 28, 2024 4:07 PM UTC

    Hi,
    thanks for reaching us. Unfortunately marker based pagination is not supported for search endpoint. Please take a look at the guide: https://developer.box.com/guides/search/pagination/.
    Best,
    Lukasz

    Translate
    New Participant
    May 29, 2024 7:28 PM UTC

    Hi Isocha,

    Thanks for the qucik reply. Is there any other way in which I could use marker-based pagination with Python SDK?

    Translate
    Box Employee
    May 31, 2024 9:53 AM UTC

    Yes,
    for the endpoints that support marker-based pagination, corresponding methods usually have use_marker flag, which can enable maker-based pagination for you. Example: box-python-sdk/boxsdk/object/folder.py at 5a7c767deea0c0cafb6997d2d96819b724cd8a59 · box/box-python-sdk · GitHub.
    Best,
    Lukasz

    Translate