Command-line interface for the Outscraper Business Data API. Search business records, inspect async request status, manage your API key, export results, set up AI-agent integrations, and scaffold starter projects from one CLI.
- Search and retrieve Outscraper business data from your terminal
- Authenticate once and reuse your API key across commands
- Poll async requests and export results as JSON, pretty JSON, or CSV
- Install Outscraper skills for AI coding agents
- Bootstrap local projects with ready-to-run starter templates
- Works well for lead generation, local SEO research, location intelligence, and business data workflows
outscraper businesses listto search businesses with structured filters or pass a raw API query with--queryoutscraper businesses getto fetch a single business by IDoutscraper businesses statusto check async request resultsoutscraper statusoroutscraper balanceto inspect account balance and billing statusoutscraper login,logout,config, andenvto manage authenticationoutscraper setup skillsto connect Outscraper to AI agents and editor toolingoutscraper initto install, authenticate, set up integrations, and scaffold a starter template
npm install -g outscraper-cliOr use the local project during development:
npm install
npm run build
node dist/index.js --helpAuthenticate and save your API key:
outscraper loginSearch businesses:
outscraper businesses list --country US --cities "New York" --types "restaurant" --waitRaw API query passthrough:
outscraper businesses list --query "restaurants in New York"Note: --query is sent to the Outscraper API as-is. For the most reliable results, prefer structured filters.
Search with structured filters:
outscraper businesses list --country US --cities "New York" --types "restaurant" --limit 25 --wait --csvFetch a single business:
outscraper businesses get 0x808fbae5987442ef:0xa822d31a98c92c62Check a request later:
outscraper businesses status <request-id>Check account status and balance:
outscraper status
outscraper balance --jsonUse a raw API query:
outscraper businesses list --query "coffee shops in San Francisco" --waitBest for reliability: prefer structured filters when possible.
Use structured business filters:
outscraper businesses list \
--country US \
--states California \
--cities "San Francisco" \
--types "coffee shop" \
--has-website \
--has-phone \
--limit 50 \
--waitCommon filters:
--country--states--cities--counties--postal-codes--name--types--ignore-types--rating--reviews--has-website--has-phone--verified--business-statuses--os-ids--filters-file
Output options:
--json--pretty--csv--output <path>
Async request options:
--wait--poll-interval <seconds>--timeout <seconds>--flat
outscraper businesses get <business-id> --prettyoutscraper businesses status <request-id> --prettyoutscraper login
outscraper config
outscraper view-config
outscraper logout
outscraper envYou can also pass credentials per command:
outscraper --api-key YOUR_KEY businesses list --query "dentists in Chicago"
outscraper --api-url https://api.outscraper.cloud businesses status <request-id>Install Outscraper skills into supported coding agents:
outscraper setup skillsInstall for one detected agent only:
outscraper setup skills --agent codex --globalNotes:
--agent <agent>scopes installation to a single detected agent--globalinstalls into user-level agent directories- without
--global, native local install targets agent config folders in the current project when available
Run the full guided setup:
outscraper initNon-interactive setup:
outscraper init --yesThe CLI can scaffold starter projects from the bundled templates:
businesses-basicbusinesses-csv
Example:
outscraper initOr after selecting a template, run the generated example project locally to start working with the Outscraper Business Data API right away.
This CLI stores OUTSCRAPER_API_KEY locally in the user config directory and can also write it into a project .env file.
Supported auth flows:
- saved local credentials
OUTSCRAPER_API_KEYenvironment variable--api-keyper command
Optional API endpoint override:
OUTSCRAPER_API_URL--api-url
The current CLI is built around these Outscraper endpoints:
POST /businessesGET /businesses/{business_id}GET /requests/{requestId}GET /profile/balance
- business lead generation
- local business discovery
- sales prospecting
- directory enrichment workflows
- market research
- location-based business intelligence
- AI-agent access to Outscraper data
npm install
npm run build
npm testEntry point:
src/index.ts
Build output:
dist/
- Node.js 18+
Early-stage CLI focused on Outscraper business search, authentication, agent setup, and starter templates.