I'm interested in writing a client library around the NuGet v3 API in a non-.NET language. What is the URL to request to get a package, and what is the response going to be?
i.e.
GET {package-versions} GET {package-version}
Is there an official documentation to cover this scenario?
And the apikey is on your account of nuget.org website. Log on the website and click your account-->click on the Api Keys . So you can create the api keys for your own account.
Find and install a packageIn Solution Explorer, right-click either References or a project and select Manage NuGet Packages.... The Browse tab displays packages by popularity from the currently selected source (see package sources). Search for a specific package using the search box on the upper left.
The NuGet Server API is a set of HTTP endpoints that can be used to download packages, fetch metadata, publish new packages, and perform most other operations available in the official NuGet clients. This API is used by the NuGet client in Visual Studio, nuget.exe, and the .
All systems are operational. Last checked in an hour.
Here is the official NuGet V3 API documentation. The API is composed of multiple protocols, including:
nuspec
).For example, say you wanted to download the package "Newtonsoft. Json":
The response contains the address of the PackageBaseAddress (aka, incorrectly as the flat container, as it is hierarchical and not flat :) ):
{ "@id": "https://api.nuget.org/v3-flatcontainer/", "@type": "PackageBaseAddress/3.0.0", "comment": "Base URL of Azure storage where NuGet package registration info for DNX is stored, in the format https://api.nuget.org/v3-flatcontainer/{id-lower}/{version-lower}.{version-lower}.nupkg" },
GET https://api.nuget.org/v3-flatcontainer/newtonsoft.json/index.json
, note that this uri is subject to change and is not part of the APIGET https://api.nuget.org/v3-flatcontainer/newtonsoft.json/6.0.4/newtonsoft.json.6.0.4.nupkg
You may also want to look at the NuGet client. The client's source code is here; you'll want to start from the NuGet.CommandLine project and walk your way down the stack.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With