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

Querying most downloaded packages from nuget.org #24

Closed
mixandmatch025 opened this issue Jun 27, 2018 · 1 comment
Closed

Querying most downloaded packages from nuget.org #24

mixandmatch025 opened this issue Jun 27, 2018 · 1 comment

Comments

@mixandmatch025
Copy link

Hi, I'm trying to modify the Nuget.Protocol.Catalog.Sample to download all nugets in nuget.org that have more than a configurable amount of downloads with their dependencies.
I'm a bit confused of how best to approach this. Should I get the number of downloads from the PackageDetailsCatalogLeaf? If so - how?
Is there a better way to query the API for a list of the most downloaded nugets?

@mixandmatch025 mixandmatch025 changed the title querying most downloaded packages from nuget.org Querying most downloaded packages from nuget.org Jun 27, 2018
@loic-sharma
Copy link
Contributor

There's an undocumented API (meaning that we may change/break this API at any time) that contains the download count of all packages: https://nugetprod0.blob.core.windows.net/ng-search-data/downloads.v1.json

Our search service uses this API to rank search results. See this code: https://github.com/NuGet/NuGet.Services.Metadata/blob/master/src/NuGet.Indexing/Downloads.cs

Let me know if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants