技
Homebrew API
5 endpointsDeveloper & TechGlobalsocial:read4 real examples
Returns Homebrew formulae and casks with versions and dependencies, plus install rankings and most frequent build errors.
View as Markdown| GET | /homebrew/formula | One Homebrew formula: its description, stable version and dependencies. |
| GET | /homebrew/cask | One Homebrew cask: a macOS app, its version, names and homepage. |
| GET | /homebrew/installs | The most installed Homebrew formulae, casks or formulae installed on request, ranked, with their install counts. |
| GET | /homebrew/installCount | Install counts of one Homebrew formula or cask over the 30, 90 and 365 day windows, with its rank in each. |
| GET | /homebrew/buildErrors | The Homebrew formulae whose builds failed most often, ranked, with their error counts. |
formula
GET
/v1/homebrew/formulaOne Homebrew formula: its description, stable version and dependencies.
scope social:read1 unitcached 1 h
Parameters
namestring required | Formula name, such as wget. e.g. wget |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
dependencies | string[] |
description | string |
fullName | string |
homepage | string |
license | string |
name | string |
stableVersion | string |
tap | string |
curl "https://api.hoshime.com/v1/homebrew/formula?name=wget" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/homebrew/formula?name=wget", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/homebrew/formula?name=wget", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "dependencies": [ "libidn2", "libpsl" ], "description": "Internet file retriever", "fullName": "wget", "homepage": "https://www.gnu.org/software/wget/", "license": "GPL-3.0-or-later", "name": "wget", "stableVersion": "1.25.0", "tap": "homebrew/core" }, "meta": { "cached": false, "endpoint": "formula", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "homebrew", "requestId": "req_2Xb9kQ…", "units": 1 } }
cask
GET
/v1/homebrew/caskOne Homebrew cask: a macOS app, its version, names and homepage.
scope social:read1 unitcached 1 h
Parameters
tokenstring required | Cask token, such as firefox. e.g. firefox |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
autoUpdates | boolean |
deprecated | boolean |
description | string |
disabled | boolean |
homepage | string |
names | string[] |
sha256 | string |
tap | string |
token | string |
version | string |
curl "https://api.hoshime.com/v1/homebrew/cask?token=firefox" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/homebrew/cask?token=firefox", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/homebrew/cask?token=firefox", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "autoUpdates": true, "deprecated": false, "description": "Web browser", "disabled": false, "homepage": "https://www.mozilla.org/firefox/", "names": [ "Mozilla Firefox" ], "sha256": "0c214da4439c1eb4cea28a3c141ff112d511aa32c67f9d12e91116569c8d8dda", "tap": "homebrew/cask", "token": "firefox", "version": "159.0.1" }, "meta": { "cached": false, "endpoint": "cask", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "homebrew", "requestId": "req_2Xb9kQ…", "units": 1 } }
installs
GET
/v1/homebrew/installsThe most installed Homebrew formulae, casks or formulae installed on request, ranked, with their install counts.
scope social:read1 unitcached 6 h
Parameters
kindstring | formula, cask or onRequest (formulae the user asked for, not as a dependency).formulacaskonRequestdefault formulae.g. formula |
periodstring | Window of the counts: 30d, 90d or 365d.30d90d365ddefault 30de.g. 30d |
topinteger | Number of items from the top of the ranking, 1 to 100. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
endDate | string |
items | RankedItem[] |
count | integer (int64) |
name | string |
percent | string |
rank | integer (int64) |
startDate | string |
total | integer (int64) |
curl "https://api.hoshime.com/v1/homebrew/installs?kind=formula&period=30d" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/homebrew/installs?kind=formula&period=30d", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/homebrew/installs?kind=formula&period=30d", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "endDate": "2026-11-03", "items": [ { "count": 495053, "name": "ca-certificates", "percent": "1.98", "rank": 1 }, { "count": 459548, "name": "openssl@4", "percent": "1.84", "rank": 2 } ], "startDate": "2026-10-04", "total": 25037196 }, "meta": { "cached": false, "endpoint": "installs", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "homebrew", "requestId": "req_2Xb9kQ…", "units": 1 } }
installCount
GET
/v1/homebrew/installCountInstall counts of one Homebrew formula or cask over the 30, 90 and 365 day windows, with its rank in each.
scope social:read1 unitcached 6 h
Parameters
namestring required | Formula or cask name, such as wget or firefox. e.g. wget |
kindstring | formula, cask or onRequest (formulae the user asked for, not as a dependency).formulacaskonRequestdefault formulae.g. formula |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
kind | string |
name | string |
windows | InstallWindow[] |
count | integer (int64) |
endDate | string |
period | string |
rank | integer (int64) |
startDate | string |
curl "https://api.hoshime.com/v1/homebrew/installCount?name=wget&kind=formula" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/homebrew/installCount?name=wget&kind=formula", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/homebrew/installCount?name=wget&kind=formula", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "kind": "…", "name": "…", "windows": [ { "count": 0, "endDate": "…", "period": "…", "rank": 0, "startDate": "…" } ] }, "meta": { "cached": false, "endpoint": "installCount", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "homebrew", "requestId": "req_2Xb9kQ…", "units": 1 } }
buildErrors
GET
/v1/homebrew/buildErrorsThe Homebrew formulae whose builds failed most often, ranked, with their error counts.
scope social:read1 unitcached 6 h
Parameters
periodstring | Window of the counts: 30d, 90d or 365d.30d90d365ddefault 30de.g. 30d |
topinteger | Number of items from the top of the ranking, 1 to 100. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
endDate | string |
items | RankedItem[] |
count | integer (int64) |
name | string |
percent | string |
rank | integer (int64) |
startDate | string |
total | integer (int64) |
curl "https://api.hoshime.com/v1/homebrew/buildErrors?period=30d" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/homebrew/buildErrors?period=30d", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/homebrew/buildErrors?period=30d", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "endDate": "2026-11-03", "items": [ { "count": 40726, "name": "cmake", "percent": "18.13", "rank": 1 }, { "count": 40291, "name": "python@3.15", "percent": "17.94", "rank": 2 } ], "startDate": "2026-10-04", "total": 224622 }, "meta": { "cached": false, "endpoint": "buildErrors", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "homebrew", "requestId": "req_2Xb9kQ…", "units": 1 } }