Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get total download count via v3 API? #2596

Closed
Daniel15 opened this issue Apr 16, 2016 · 6 comments
Closed

How to get total download count via v3 API? #2596

Daniel15 opened this issue Apr 16, 2016 · 6 comments
Assignees
Labels
Resolution:Question This issues appears to be a question, not a product defect

Comments

@Daniel15
Copy link

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

Also see badges/shields#678

@xavierdecoster
Copy link
Member

AFAIK there's no API for this yet

@yishaigalatzer yishaigalatzer added the Resolution:Question This issues appears to be a question, not a product defect label Apr 18, 2016
@yishaigalatzer
Copy link

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

@Daniel15
Copy link
Author

Is this available with the new API yet?

robdmoore added a commit to MRCollective/ChameleonForms that referenced this issue Jun 29, 2016
jozefizso added a commit to NetOfficeFw/TypeLibInformation that referenced this issue Aug 26, 2016
Removed download count badge as it does not work anymore NuGet/Home#2596
@devlead
Copy link

devlead commented Sep 20, 2016

Any plans for an API?

@maartenba
Copy link
Contributor

The V2 API is still around for this.

@Daniel15
Copy link
Author

Daniel15 commented May 9, 2017

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: badges/shields#945

@Daniel15 Daniel15 closed this as completed May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution:Question This issues appears to be a question, not a product defect
Projects
None yet
Development

No branches or pull requests

6 participants