GitLab pipeline API only gives me latest 20 pipelines


#1

Here is the documentation for the pipeline API: https://docs.gitlab.com/ee/api/pipelines.html

I need all the pipeline statuses (for a given project) within a range of time. It would be great if there was a way to do this with the API. Alternatively, I would be ok with getting all pipeline statuses since the beginning of time and then writing some code to narrow that down myself. But I only get the latest 20. Is there a way to get around this?


#2

You need to pass the page and per_page parameters with your request. The defaults are 1 and 20, respectively.