Home: How to get total download count via v3 API?

Created on 17 Apr 2016  路  6Comments  路  Source: NuGet/Home

How can we get both the total download count as well as the per-version download count using the NuGet v3 API?

Also see https://github.com/badges/shields/issues/678

Question

All 6 comments

AFAIK there's no API for this yet

@rrelyea can you point @Daniel15 in the right direction?

Is this available with the new API yet?

Any plans for an API?

The V2 API is still around for this.

This is working again! The SearchQueryService returns the data.

Example API request: https://api-v2v3search-0.nuget.org/query?q=packageid:microsoft.aspnetcore.mvc (note: ensure you get the endpoint URL from https://api.nuget.org/v3/index.json - do not hardcode api-v2v3search-0.nuget.org)

"totalDownloads": 1670417,

Consequently I've re-added the download count badge to shields.io: https://github.com/badges/shields/pull/945

Was this page helpful?
0 / 5 - 0 ratings

Related issues

p-kaczynski picture p-kaczynski  路  3Comments

philippe-lavoie picture philippe-lavoie  路  3Comments

msaraf1 picture msaraf1  路  3Comments

sylvainlavoie picture sylvainlavoie  路  3Comments

infin8x picture infin8x  路  3Comments