Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.
Options

REST API Pagination

When I run an API call form within a Python script, only get 50 records back in the result. Are the results paginated? How can I get the rest of the results?

If I look at the response, the 'next' field is 'None', so I don't have a link to the next 50 results.

Example of API call: '/Panopto/api/v1/v1/users/[email protected]'

Answers

  • Options

    I see there's a pageNumber parameter for the REST API on other search endpoints, though I don't see it mentioned in the documentation for the users one. You can see it here in the folders-cli example: https://github.com/Panopto/panopto-api-python-examples/blob/master/folders-cli/panopto_folders.py

    So maybe try incrementing that? If there isn't data on the number of results, I don't know how you'd know when to stop paging, maybe it'll return an error or empty array when there's no more.

  • Options
    Kevin BaumKevin Baum Panopto Employee

    Hi Peter,

    We do not currently support pagination when searching for a user in the public REST API. We do support pagination when listing users using the public SOAP API however. You can use the IUserManagement.ListUsers endpoint to search for users with the SOAP API with pagination if you are retrieving a large group of users in your search.

    I hope this helps. Please let me know if you have any other questions.

    Thanks,

    Kevin

Sign In or Register to comment.