GitHub REST API to get artifacts

In the context of GitHub actions, there is an API that lists all the artifacts generated for a repository.
List Artifacts for a repository
The API documentation does not specify any way to filter the list or sort the list. We could however observe that the latest artifact (based on created field) is at the top. But, the documentation does not mention that the result is sorted in desc order of the creation time.
If we could get a confirmation, then the logic to search for the desired artifact could be optimized based on the creation date/time. Otherwise, we will have to keep searching through the pages.
Does anyone have more information to share here?
Thanks,
Shweta

1 Like