REST API responses for workflow runs (/actions/runs?created=2024-02-01
) seem to cut off after 1000 responses always
#81
-
We have a bunch of repos that run a lot of workflows per day and we want to track the job durations and the workflow durations of those Repositories.
In the response, I get the total count for that day as
and the Is there a well defined cutoff defined in GH REST API documentation ? Or is this a problem with personal tokens ? Or is this a problem with rate-limiting ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
This seems to be an API question, not an @octokit question. Can you reproduce the problem requesting the 11th page using curl or I know that search responses are limited to 1000 results. If https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository is also limited to 1000 results, we should make sure the docs get updated. |
Beta Was this translation helpful? Give feedback.
-
I was able to replicate this with the GH REST API
The total count reported for this API in the first 1-10 pages was |
Beta Was this translation helpful? Give feedback.
The documentation has been updated
Sorry, but there is indeed a hard cap at 1,000 results.