formulae.brew.sh publishes every Homebrew formula and cask as JSON: versions, dependencies, and install counts.
None — no key, no signup. Every example runs as-is.
Full reference: https://formulae.brew.sh/docs/api/
curl https://formulae.brew.sh/api/formula/curl.json
{
"name": "curl",
"full_name": "curl",
"tap": "homebrew/core",
"oldnames": [
"curl-openssl",
"wcurl"
],
"aliases": [],
"versioned_formulae": [],
"desc": "Get a file from an HTTP, HTTPS or FTP server",
"license": "curl",
"homepage": "https://curl.se",
"versions": {
"stable": "8.22.0",
"head": "HEAD",
"bottle": true
},
"urls": {
"stable": {
"url": "https://curl.se/download/curl-8.22.0.tar.bz2",
"tag": null,
"revision": null,
"using": null,
"checksum": "5d956a6a22b3c279f50c421ee5d3c9e9d660cb6f115dcf881b579e952130549c"
},
"head": {
"url": "https://github.com/curl/curl.git",
"branch": "master",
"using": null
}
},
"patches": [],
"revision": 0,
"version_scheme": 0,
"compatibility_version": 1
}
curl https://formulae.brew.sh/api/cask/visual-studio-code.json
{
"token": "visual-studio-code",
"full_token": "visual-studio-code",
"old_tokens": [],
"tap": "homebrew/cask",
"name": [
"Microsoft Visual Studio Code",
"VS Code"
],
"desc": "Open-source code editor",
"homepage": "https://code.visualstudio.com/",
"url": "https://update.code.visualstudio.com/1.139.0/darwin-arm64/stable",
"url_specs": {},
"version": "1.139.0",
"autobump": true,
"no_autobump_message": null,
"skip_livecheck": false,
"installed": null,
"installed_time": null
}