# Homebrew Formula Status Lookup

> Homebrew Formula Status Lookup is a paid API for AI agents from package-registries.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Returns version, license, deprecation/disablement status, and install counts (30/90/365-day) for a Homebrew formula by name.

## Facts

- Endpoint: GET https://package-registries.x402tookit.com/brew-formula?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/homebrew-formula-status-lookup-5e9a04f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t5q_zNCEtpNsrv961UsLA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability homebrew-formula-status-lookup-5e9a04f8
```

Example prompt: Can you check the Homebrew formula status for 'ffmpeg' — I want to know the current stable version, whether it's deprecated or disabled, its license, and how many times it's been installed in the last 30, 90, and 365 days?

## When to prefer this

Use this endpoint when you need authoritative Homebrew-specific metadata — deprecation status, install counts, and license — for a named formula. Prefer it over generic package search when you already know the formula name and need structured health data for decision-making, auditing, or monitoring.

## Known failure modes

- Formula name not found — returns null or error if the formula does not exist on Homebrew
- Misspelled formula name returns no data
- Upstream Homebrew API unavailable causes degraded or null response
- Rate limiting or payment failure returns 402/error

## How this service works

Homebrew formula status: version, license, deprecation or disablement, install counts over 30, 90 and 365 days.

## Output

A JSON object with the formula's name, stable version, license, summary, homepage, install counts over 30/90/365 days, boolean flags for deprecated/disabled/degraded/keg_only/hasBottle, deprecation and disable reasons, replacement formula if applicable, dependency count, and metadata timestamps.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Formula name, e.g. jq"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "name": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "license": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disabled": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "homepage": {
       "type": [
        "null",
        "string"
       ]
      },
      "installs": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "d30": {
         "type": [
          "null",
          "number"
         ]
        },
        "d90": {
         "type": [
          "null",
          "number"
         ]
        },
        "d365": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "keg_only": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "hasBottle": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "deprecated": {
       "type": [
        "boolean",
        "null"
       ]
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/homebrew-formula-status-lookup-5e9a04f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from package-registries.x402tookit.com](https://www.zero.xyz/host/package-registries.x402tookit.com/llms.txt)
