Is there a way to get more than 1000 Packages and versions from Azure DEVOPs Feed RESTAPI for GET Packages? I have around 1400 ADO NUGET Packages and its versions to migrate. I am running the REST API documented here: https://learn.microsoft.com/en-us/rest/api/azure/devops/artifacts/artifact-details/get-packages?view=azure-devops-rest-7.1 using Python. It is limiting at 1000 packages without any warning. It is nowhere documented as well.
The HTTP Response header parameter x-ms-continuationtoken for response continuity is not there in the API version 7.1.
How can I get the details and download all the ADO Packages?
The REST API that you are using has a skip parameter, $skip
. Note that the skip parameter has a dollar sign in its name. Without it, the query will always return the same first 1000 results and won't tell you that your parameter name is invalid.
So, you can get all 1400 by calling it twice.
$skip=1000
), and it should then return the remaining 400Your URL should look something like this:
https://feeds.dev.azure.com/<org>/_apis/Packaging/Feeds/<feed-id>/Packages?api-version=7.1&$skip=1000