Homebrew Scraper avatar

Homebrew Scraper

Pricing

Pay per event

Go to Apify Store
Homebrew Scraper

Homebrew Scraper

Scrape Homebrew formulas and casks. Search by keyword and get names, versions, descriptions, dependencies, licenses, and 30-day install counts. Supports both CLI tools and GUI apps.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Stas Persiianenko

Stas Persiianenko

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 hours ago

Last modified

Categories

Share

Scrape Homebrew formulas and casks from formulae.brew.sh, the official Homebrew package index. Search by keyword and get names, versions, descriptions, dependencies, licenses, and 30-day install counts.

What does Homebrew Scraper do?

Homebrew Scraper uses the Homebrew Formulae JSON API to fetch package metadata for macOS and Linux. It downloads the complete formula or cask database, filters by keyword, and enriches results with install analytics. Get version info, dependency trees, license data, and popularity metrics in one run.

Why scrape Homebrew?

Homebrew is the most popular package manager for macOS, with over 8,000 formulas and thousands of casks. It's the definitive source for understanding the macOS developer tools ecosystem.

Key reasons to scrape it:

  • Developer tools research — Discover popular CLI tools and libraries
  • Ecosystem analysis — Map the macOS development landscape
  • Dependency tracking — Understand package dependency chains
  • Adoption metrics — Track install counts to gauge tool popularity
  • License compliance — Audit open-source license usage across packages

Use cases

  • DevOps engineers researching available tools for automation
  • Engineering managers tracking which tools their teams use
  • Security teams auditing package dependencies and licenses
  • Technical writers finding popular tools for tutorials
  • Open-source maintainers tracking their formula's install count
  • Researchers studying open-source package ecosystem trends

How to scrape Homebrew

  1. Go to Homebrew Scraper on Apify Store
  2. Enter a search keyword (or leave empty for all formulas)
  3. Choose formula or cask type
  4. Enable install count analytics
  5. Click Start and wait for results
  6. Download data as JSON, CSV, or Excel

Input parameters

ParameterTypeDefaultDescription
searchQuerystring""Filter by keyword in name/description
typestring"formula"Package type: formula or cask
includeAnalyticsbooleantrueInclude 30-day install counts
maxResultsinteger100Max formulas to return

Input example

{
"searchQuery": "python",
"type": "formula",
"includeAnalytics": true,
"maxResults": 50
}

Output

Each formula in the dataset contains:

FieldTypeDescription
namestringFormula name
fullNamestringFull formula name with tap
descriptionstringPackage description
versionstringLatest stable version
licensestringLicense identifier
homepagestringProject homepage URL
dependenciesstring[]Runtime dependencies
buildDependenciesstring[]Build-time dependencies
tapstringHomebrew tap (e.g. homebrew/core)
deprecatedbooleanWhether the formula is deprecated
deprecationReasonstringReason for deprecation
disabledbooleanWhether the formula is disabled
installs30dnumberTotal installs in last 30 days
installedOnRequest30dnumberDirect installs (not as dependency)
brewUrlstringFormulae.brew.sh page URL
scrapedAtstringISO timestamp of extraction

Output example

{
"name": "python@3.14",
"fullName": "python@3.14",
"description": "Interpreted, interactive, object-oriented programming language",
"version": "3.14.0",
"license": "Python-2.0",
"homepage": "https://www.python.org/",
"dependencies": ["gdbm", "mpdecimal", "openssl@3", "readline", "sqlite", "xz"],
"buildDependencies": ["pkgconf"],
"tap": "homebrew/core",
"deprecated": false,
"deprecationReason": "",
"disabled": false,
"installs30d": 285432,
"installedOnRequest30d": 142716,
"brewUrl": "https://formulae.brew.sh/formula/python@3.14",
"scrapedAt": "2026-03-03T03:35:00.123Z"
}

How much does it cost to scrape Homebrew?

Homebrew Scraper uses pay-per-event pricing:

EventPrice
Run started$0.001
Formula extracted$0.001 per formula

Cost examples

ScenarioFormulasCost
Quick search50$0.051
Category survey200$0.201
Full database500$0.501

Platform costs are negligible — typically under $0.001 per run.

Using Homebrew Scraper with the Apify API

Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('automation-lab/homebrew-scraper').call({
searchQuery: 'database',
includeAnalytics: true,
maxResults: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Found ${items.length} formulas`);
items.forEach(f => {
console.log(`${f.name} v${f.version} (${f.installs30d.toLocaleString()} installs/month)`);
});

Python

from apify_client import ApifyClient
client = ApifyClient('YOUR_API_TOKEN')
run = client.actor('automation-lab/homebrew-scraper').call(run_input={
'searchQuery': 'database',
'includeAnalytics': True,
'maxResults': 50,
})
dataset = client.dataset(run['defaultDatasetId']).list_items().items
print(f'Found {len(dataset)} formulas')
for f in dataset:
print(f"{f['name']} v{f['version']} ({f['installs30d']:,} installs/month)")

Integrations

Homebrew Scraper works with all Apify integrations:

  • Scheduled runs — Track formula popularity trends over time
  • Webhooks — Get notified when a scrape completes
  • API — Trigger runs and fetch results programmatically
  • Google Sheets — Export formula data to a spreadsheet
  • Slack — Share trending tools with your team

Connect to Zapier, Make, or Google Sheets for automated workflows.

Tips

  • Leave searchQuery empty to get the entire formula database (8,000+ formulas)
  • Compare installs vs installedOnRequest to see which packages are mostly installed as dependencies
  • Use cask type to find popular GUI applications (e.g. browsers, editors, utilities)
  • Check dependencies to understand the build chain for any tool
  • Monitor deprecated formulas if you rely on them for your infrastructure
  • Track install counts monthly to identify growing or declining tools

FAQ

How many formulas are there? Homebrew has over 8,000 formulas (CLI tools) and thousands of casks (GUI applications).

What's the difference between formulas and casks? Formulas are CLI tools and libraries compiled from source. Casks are pre-built GUI applications (like Chrome, VS Code, Slack).

What do install counts measure? The 30-day install count tracks brew install commands reported via Homebrew's anonymous analytics. installedOnRequest excludes installs triggered as dependencies.

Can I get the full database? Yes — leave searchQuery empty and set a high maxResults to get all formulas.

How often is the data updated? Formula metadata updates when new versions are published. Install analytics update daily.

Use Homebrew Scraper with Claude AI (MCP)

You can integrate Homebrew Scraper as a tool in Claude AI or any MCP-compatible client. This lets you ask Claude to fetch Homebrew data in natural language.

Setup

CLI:

$claude mcp add homebrew-scraper -- npx -y @anthropic-ai/apify-mcp-server@latest --actors=automation-lab/homebrew-scraper

JSON config (Claude Desktop, Cline, etc.):

{
"mcpServers": {
"homebrew-scraper": {
"command": "npx",
"args": ["-y", "@anthropic-ai/apify-mcp-server@latest", "--actors=automation-lab/homebrew-scraper"]
}
}
}

Set your APIFY_TOKEN as an environment variable or pass it via --token.

Example prompts

  • "Search Homebrew for CLI tools"
  • "Get formula details for these Homebrew packages"
  • "Find the most installed database tools on Homebrew"

cURL

curl "https://api.apify.com/v2/acts/automation-lab~homebrew-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-X POST -H "Content-Type: application/json" \
-d '{"searchQuery": "database", "includeAnalytics": true, "maxResults": 50}'

Install counts are 0 for all formulas. If includeAnalytics is set to false, install counts won't be fetched. Set it to true to include 30-day install statistics.

I can't find a formula I know exists. The keyword search matches against formula names and descriptions. Some formulas have names that differ from the common tool name (e.g., python@3.14 vs python). Try a broader search term.

Other developer tools