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

Extend the REST API to allow queries for packages added since a given date #7539

Open
warkentyne opened this issue Mar 7, 2024 · 1 comment

Comments

@warkentyne
Copy link

There are currently over 50,000 results when you get the package names using https://pub.dev/api/package-names. It would be nice if the endpoint allowed the addition of a query string parameter to request only packages that have versions published since a given date. For example: https://pub.dev/api/package-names?after=<UTC date string>

By the way, nextUrl always seems to be null.

@isoos
Copy link
Collaborator

isoos commented Mar 7, 2024

I don't think we have plans for adding such parameter (it requires different index/caching), but if/when we are changing the backing data structure, we may add it.

By the way, nextUrl always seems to be null.

As noted on the page: https://pub.dev/help/api "The order of the packages, the number of packages on a response page, or the URL structure of "nextUrl" may change without notice."

In other words: we may introduce paginated package names at any time in the future (esp. as the number of names grows), so you should not ignore the nextUrl parameter.

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

No branches or pull requests

2 participants