Skip to content

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/formulaOne Homebrew formula: its description, stable version and dependencies.
GET/homebrew/caskOne Homebrew cask: a macOS app, its version, names and homepage.
GET/homebrew/installsThe most installed Homebrew formulae, casks or formulae installed on request, ranked, with their install counts.
GET/homebrew/installCountInstall counts of one Homebrew formula or cask over the 30, 90 and 365 day windows, with its rank in each.
GET/homebrew/buildErrorsThe Homebrew formulae whose builds failed most often, ranked, with their error counts.

formula

GET/v1/homebrew/formula

One Homebrew formula: its description, stable version and dependencies.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Formula name, such as wget.
e.g. wget
tunnel
string
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.
proxy
string
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.
profileId
string
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
dependenciesstring[]
descriptionstring
fullNamestring
homepagestring
licensestring
namestring
stableVersionstring
tapstring
curl "https://api.hoshime.com/v1/homebrew/formula?name=wget" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/cask

One Homebrew cask: a macOS app, its version, names and homepage.

scope social:read1 unitcached 1 h

Parameters

token
string
required
Cask token, such as firefox.
e.g. firefox
tunnel
string
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.
proxy
string
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.
profileId
string
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
autoUpdatesboolean
deprecatedboolean
descriptionstring
disabledboolean
homepagestring
namesstring[]
sha256string
tapstring
tokenstring
versionstring
curl "https://api.hoshime.com/v1/homebrew/cask?token=firefox" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/installs

The most installed Homebrew formulae, casks or formulae installed on request, ranked, with their install counts.

scope social:read1 unitcached 6 h

Parameters

kind
string
formula, cask or onRequest (formulae the user asked for, not as a dependency).
formulacaskonRequest
default formulae.g. formula
period
string
Window of the counts: 30d, 90d or 365d.
30d90d365d
default 30de.g. 30d
top
integer
Number of items from the top of the ranking, 1 to 100.
default 20
tunnel
string
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.
proxy
string
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.
profileId
string
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
endDatestring
itemsRankedItem[]
countinteger (int64)
namestring
percentstring
rankinteger (int64)
startDatestring
totalinteger (int64)
curl "https://api.hoshime.com/v1/homebrew/installs?kind=formula&period=30d" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/installCount

Install 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

name
string
required
Formula or cask name, such as wget or firefox.
e.g. wget
kind
string
formula, cask or onRequest (formulae the user asked for, not as a dependency).
formulacaskonRequest
default formulae.g. formula
tunnel
string
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.
proxy
string
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.
profileId
string
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
kindstring
namestring
windowsInstallWindow[]
countinteger (int64)
endDatestring
periodstring
rankinteger (int64)
startDatestring
curl "https://api.hoshime.com/v1/homebrew/installCount?name=wget&kind=formula" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/buildErrors

The Homebrew formulae whose builds failed most often, ranked, with their error counts.

scope social:read1 unitcached 6 h

Parameters

period
string
Window of the counts: 30d, 90d or 365d.
30d90d365d
default 30de.g. 30d
top
integer
Number of items from the top of the ranking, 1 to 100.
default 20
tunnel
string
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.
proxy
string
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.
profileId
string
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
endDatestring
itemsRankedItem[]
countinteger (int64)
namestring
percentstring
rankinteger (int64)
startDatestring
totalinteger (int64)
curl "https://api.hoshime.com/v1/homebrew/buildErrors?period=30d" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open