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

Get NuGet (.NET) data #6

Open
bruno-garcia opened this issue Jan 9, 2019 · 5 comments
Open

Get NuGet (.NET) data #6

bruno-garcia opened this issue Jan 9, 2019 · 5 comments
Assignees
Labels
👌 enhancement Ya know, the things that make it better. 👋 help wanted We could use some help with this one!

Comments

@bruno-garcia
Copy link

.NET ecosystem package manager is nuget.org. Unfortunately they don't offer historic data but a friend and I started a project to offer this service: https://github.com/NuGetTrends/nuget-trends

Would it be interesting to you to add NuGet support through nugettrends.com API?

@stayallive
Copy link
Member

stayallive commented Jan 9, 2019

That looks very good, I would really like to integrate that!

Do you have some kind of documentation on how to query the data through the API (example url's would be enough on how to search a package and how to retrieve the stats)?

I can look at the API source but my C# is a bit rusty, so if you have something that would help a great deal 😅


Edit: It doesn't look too bad actually (the site uses the API too so I can just look at that).

Search for "sentry":

https://beta.nugettrends.com/api/package/search?q=sentry

Retrieve the history for the package "Sentry" for the past 6 months:

https://beta.nugettrends.com/api/package/history/Sentry?months=6

Am I correct so far?

Two questions:

  • Is it possible to retrieve the download stats not grouped by week but daily (or both by setting a query param)? This way we can have a rolling 7 day window in our own graphs.
  • Is it correct the above url for Sentry for the last 6 months has no 2019 data yet although it already should have some data for the past week I think!?

@bruno-garcia
Copy link
Author

@stayallive we plan to change the grouping (make it possible to define via parameter) but it's not done yet.
I was curious if you are interested and it's great to know you are. But please take into account that project isn't ready yet and we haven't had the time to touch it last few months.

So yes, you'd be able to request package name, period and whether to group by day, or week or something.

@stayallive
Copy link
Member

I have drafted up the package provider but yet the grouping (so we can request that data from yesterday) would be great. Possibly even adding the short package description (to the search endpoint) would be golden.

I got the provider already setup in #7 but will wait to proceed until the project is ready 👍

@bruno-garcia
Copy link
Author

Nice! I'll get back to this issue once we have an update.

@stayallive
Copy link
Member

(I assigned the issue to you @bruno-garcia just so people know it's being worked on, no actions needed!)

@stayallive stayallive self-assigned this Jan 24, 2019
@stayallive stayallive added 👌 enhancement Ya know, the things that make it better. 👋 help wanted We could use some help with this one! and removed provider labels Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👌 enhancement Ya know, the things that make it better. 👋 help wanted We could use some help with this one!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants