Pagination in Automation Hub Open API

Hi,
I’m trying to retrieve all ideas in Automation Hub via API but get only the first 20 aka the first page. I need to set pagination so it gets also the next pages but I couldn’t find any information about how to do this.

I used the example “Retrieve All Automations Ideas” which otherwise works great, now I just need to get the other pages also.

https://docs.uipath.com/automation-hub/reference#api-examples-automation-pipeline

1 Like

To add to my post…the options for pagination are:

  • offset
  • next page
  • next URL
  • next token
  • custom

Which one should be used with Open API and where can I find the parameters?

Thanks in advance for your help!

You can achieve this by doing the following:

  1. Do an API call and get a totalItems parameter

  2. Do another APi call using limit parameter and totalItems value: https://automation-hub.uipath.com/api/v1/openapi/automations?limit=totalItems

More on parameters can be found here.

Hope that helps!