On Feb 23, 2019, at 17:19, Eric Hanson <
er...@aquameta.com> wrote:
> Greetings,
> Is it possible to get a list of all extensions using the API? I see facilities for search, and also recent extensions, but not seeing how to just get the list of them.
Not via a single call, no. But you can use the
api.pgxn.org API’s userlist API to iterate over a-z to get a list of users for each:
https://github.com/pgxn/pgxn-api/wiki/userlist-api
Then for each user, call the user API to fetch the user info, including a list of all releases by the user.
https://github.com/pgxn/pgxn-api/wiki/user-api
If you want the extensions within each release, you would then need to call the meta API for each release.
https://github.com/pgxn/pgxn-api/wiki/meta-api
Where you’ll find the extensions under the “provides” key.
If you just want recent releases, you can just call the extension stats API:
https://github.com/pgxn/pgxn-api/wiki/stats-api
https://master.pgxn.org/stats/extension.json
Which will get you the 56 most recently-released extensions.
HTH,
David