list of all extensions via the API

9 views
Skip to first unread message

Eric Hanson

unread,
Feb 23, 2019, 5:19:17 PM2/23/19
to PGXN Users
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.
Thanks,
Eric

David E. Wheeler

unread,
Feb 24, 2019, 8:51:26 AM2/24/19
to pgxn-...@googlegroups.com
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

signature.asc

Eric Hanson

unread,
Feb 24, 2019, 5:51:57 PM2/24/19
to pgxn-...@googlegroups.com
Ok thanks that'll work.  Sure would be nice to be able to just browse the list and see what's available.  Maybe even a pgxn_fdw! :)

Eric

--
You received this message because you are subscribed to the Google Groups "PGXN Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pgxn-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages