Skip to content

Homebrew JSON API for non-core formulas and casks? #2075

Answered by gromgit
tddschn asked this question in Everyday usage
Discussion options

You must be logged in to vote

is there a JSON API that I can query to get the install counts [...] of non-core formulas and casks??

Yes. You missed this section of the docs:

$ curl -sL https://formulae.brew.sh/api/analytics/install/30d.json | jq -r '.items[].formula | select(startswith("gromgit"))'
gromgit/fuse/sshfs-mac
gromgit/fuse/ntfs-3g-mac
[...]

is there a JSON API that I can query to get [...] other metadata of non-core formulas and casks??

Not that I know of. Metadata for core formulae/casks can be updated with each PR; gathering metadata for non-core formulae/casks simply can't scale.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ipatch
Comment options

Answer selected by tddschn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants