Azure Devops API no pagination for repo endpoint?

Occasional Visitor

Hi! I am trying to access and retrieve the list of repositories from an organisation, the total count being ~5000. Up until now I have used an API call with a limitation of 50 records per page ({org}/_apis/git/repositories?api-version=4.1&limit=50) and it was working fine, it was returning first 50 repos, checked if there was a next page and pushed the next job until there were no more left. However today my command failed because it ran too long. When I checked this call in Postman, the limitation no longer works, all 5000 repos are being returned. No matter what query I tried (limit, $top, page-size) it always retrieved all records. Was pagination removed from this API endpoint?

0 Replies