Vai al contenuto
GET /v1/formula

Formula (CLI package) detail

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/brew-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/brew-api/v1/formula" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/brew-api/v1/formula", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/brew-api/v1/formula");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/brew-api/v1/formula",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "formula": {
            "tap": "homebrew/core",
            "desc": "Internet file retriever",
            "name": "wget",
            "aliases": [],
            "caveats": null,
            "install": "brew install wget",
            "license": "GPL-3.0-or-later",
            "version": "1.25.0",
            "brew_url": "https://formulae.brew.sh/formula/wget",
            "disabled": false,
            "homepage": "https://www.gnu.org/software/wget/",
            "full_name": "wget",
            "deprecated": false,
            "has_bottle": true,
            "dependencies": [
                "libidn2",
                "openssl@3",
                "gettext",
                "libunistring"
            ],
            "conflicts_with": [],
            "build_dependencies": [
                "pkgconf"
            ],
            "deprecation_reason": null
        }
    },
    "meta": {
        "timestamp": "2026-05-31T13:40:25.315Z",
        "request_id": "14f8e06c-ace0-474d-8973-6e272d1a3a4c"
    },
    "status": "ok",
    "message": "Formula retrieved",
    "success": true
}