{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"46c53af8-9f9f-463b-8e81-9b0d1938e72c","catalogType":"api","categories":["developer","data"],"dataPlatform":"homebrew","dataPlatformLogoUrl":"https://api.sh/logos/homebrew.png","dataPlatformTranslations":{},"dataProduct":"dev-reference","description":"Get Homebrew formula metadata by name, command or URL via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as name, output, and retrieve structured data including formula name, stable version metadata, runtime dependencies, build-time dependencies, and bottle target platform for dependency review, and artifact index.","descriptionTranslations":{"ar":"استرجع بيانات Homebrew formula بالاسم أو أمر التثبيت أو الرابط، بما يشمل الاعتماديات والترخيص وبصمة المصدر وبناءات bottle المتاحة لمراجعة الحزم حسب المنصة. استخدم النتائج المنظمة لتوثيق مراجعة الاعتماديات أو مقارنة بيانات الإصدارات قبل تعديل تطبيق، مع أمثلة الطلبات وتسعير التنفيذ الحالي في صفحة التفاصيل.","ja":"名前、インストールコマンド、出典 URL から Homebrew formula を照会し、依存関係・ライセンス・ソースのチェックサム・bottle ビルドを確認できます。 構造化結果で依存関係レビューを記録し、アプリ変更前にリリース情報を比較できます。詳細ページにはリクエスト例と選択した実装の料金があります。","zh":"通过名称、安装命令或来源链接查询 Homebrew formula，获取依赖、许可、源代码校验值和可用 bottle 构建。 可将结构化结果用于依赖审查记录，或在修改应用前比较版本元数据；详情页提供请求示例和当前实现的价格。"},"effectContentHtml":"","executionMode":"sync","id":"4296e9b3-3f44-4bbd-a1ed-e67e89fb81e7","includedContentHtml":"","inputs":[{"description":"Formula name (wget), a `brew install` command or a formulae.brew.sh link.","location":"query","name":"name","nullable":false,"required":true,"type":"string"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"Native CSV/NDJSON record selector; it has no effect on this JSON-only product.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/homebrew.png","method":"GET","name":"Homebrew formula API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eHomebrew Formula API\u003c/h2\u003e\n\u003cp\u003eUse name to resolve a formula. The JSON separates runtime and build dependencies, source metadata, and platform-specific bottles so that a bottle entry is not mistaken for a universal binary.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired: name. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · Homebrew formula API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eDependency review\u003c/strong\u003e: Keep runtime, build and test dependencies separate.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eArtifact index\u003c/strong\u003e: Associate source checksums and bottle metadata with formula versions.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eFormula name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eversion\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eStable version metadata\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003edependencies\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRuntime dependencies\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ebuild_dependencies\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBuild-time dependencies\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ebottles[].platform\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBottle target platform\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003esource_checksum\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource checksum\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/homebrew/v1/formula \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode name=wget \\\n  --data-urlencode output=json\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/4296e9b3-3f44-4bbd-a1ed-e67e89fb81e7\"\u003ePublished Homebrew Formula API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eCan I use a brew install command as input?\u003c/h3\u003e\n\u003cp\u003eYes. name accepts a formula name, supported brew install command or formulae.brew.sh link. The command is not executed.\u003c/p\u003e\n\u003ch3\u003eAre build_dependencies runtime requirements?\u003c/h3\u003e\n\u003cp\u003eThey are separately declared build dependencies. Keep them distinct from dependencies and optional or test dependencies.\u003c/p\u003e\n\u003ch3\u003eIs every bottle suitable for every system?\u003c/h3\u003e\n\u003cp\u003eNo. Match each bottle platform and other requirements to the target system.\u003c/p\u003e\n\u003ch3\u003eDoes the formula revision identify the upstream version?\u003c/h3\u003e\n\u003cp\u003eNo. Keep the formula revision distinct from version; a packaging revision can change without changing the upstream version string.\u003c/p\u003e\n\u003ch3\u003eHow do I bypass cached results?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.\u003c/p\u003e\n\u003ch3\u003eCan I request CSV or NDJSON?\u003c/h3\u003e\n\u003cp\u003eThis OpenAny implementation serves JSON only. Omit output or set output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/homebrew/homebrew-analytics-api\"\u003eHomebrew analytics API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/homebrew/homebrew-cask-api\"\u003eHomebrew cask API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/homebrew/homebrew-formula-api?offering=4296e9b3-3f44-4bbd-a1ed-e67e89fb81e7","providerId":"apish","publicPath":"/v1/agent-apis/apish/homebrew/v1/formula","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official documentation response · Supplier-tr","request":{"body":null,"headers":{},"path":{},"query":{"name":"wget","output":"json"}},"response_body":{"aliases":[],"analytics":{"build_error":{"30d":21},"build_error_by_option":{"30d":{"wget":6,"wget --HEAD":15}},"install":{"30d":35541,"365d":325180,"90d":92122},"install_by_option":{"30d":{"wget":35473,"wget --HEAD":68},"365d":{"wget":324572,"wget --HEAD":608},"90d":{"wget":91935,"wget --HEAD":187}},"install_on_request":{"30d":35296,"365d":321241,"90d":91385},"install_on_request_by_option":{"30d":{"wget":35228,"wget --HEAD":68},"365d":{"wget":320633,"wget --HEAD":608},"90d":{"wget":91198,"wget --HEAD":187}}},"bottle_platforms":["arm64_golden_gate","arm64_tahoe","… 3 more"],"bottles":[{"cellar":"/opt/homebrew/Cellar","platform":"arm64_golden_gate","sha256":"d89ea78fbc8ec79a80d52c7dcaa28e50c2bb435acd1470ee2cae4ef7646eff7e","url":"https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:d89ea78fbc8ec79a80d52c7dcaa28e50c2bb435acd1470ee2cae4ef7646eff7e"},{"cellar":"/opt/homebrew/Cellar","platform":"arm64_tahoe","sha256":"38024004cafd418d1ce2e2cd6b11ecf8a5e6a24d2641ba624dd016bb650d2240","url":"https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:38024004cafd418d1ce2e2cd6b11ecf8a5e6a24d2641ba624dd016bb650d2240"},"… 3 more"],"build_dependencies":["pkgconf"],"cached":false,"caveats":null,"conflicts_with":[],"conflicts_with_reasons":[],"credits_used":1,"dependencies":["libidn2","libpsl","… 3 more"],"deprecated":false,"deprecation_date":null,"deprecation_reason":null,"description":"Internet file retriever","disable_date":null,"disable_reason":null,"disabled":false,"full_name":"wget","generated_date":"2026-11-06","has_bottle":true,"head":"HEAD","head_url":"https://git.savannah.gnu.org/git/wget.git","homepage":"https://www.gnu.org/software/wget/","keg_only":false,"keg_only_reason":null,"license":"GPL-3.0-or-later","name":"wget","old_names":[],"optional_dependencies":[],"recommended_dependencies":[],"requirements":[],"revision":2,"service":null,"source_checksum":"766e48423e79359ea31e41db9e5c289675947a7fcf2efdcedb726ac9d0da3784","source_file":"https://github.com/Homebrew/homebrew-core/blob/main/Formula/w/wget.rb","source_url":"https://ftpmirror.gnu.org/wget/wget-1.25.0.tar.gz","tap":"homebrew/core","test_dependencies":[],"uses_from_macos":[],"version":"1.25.0","versioned_formulae":[],"…":"4 more fields"}}],"seoDescription":"Get Homebrew formula metadata by name, command or URL via REST or MCP powered by Apish. Pay per call, no subscription. Ideal for dependency review.","updatedAt":"2026-12-03T02:45:28.963Z","usageInstructionsHtml":""}}