CLI
Run scrapes and extractions from the terminal without writing code. The CLI is a thin wrapper over the REST API; every command maps 1:1 to an endpoint.
Not published. @superscraper/cli does not exist on npm, and the bare name superscraper on
npm is an unrelated third-party package. npm install -g and npx will not get you this CLI.
For a one-off scrape from the terminal today, call the REST API with curl:
curl -sX POST https://api.superscraper.dev/v1/scrape \
-H "x-api-key: $SUPERSCRAPER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'Install
The CLI is not on npm yet. It is available on request: contact support@superscraper.dev. It installs two equivalent
commands, superscraper and leadsnap.
Scrape in 5 lines
export SUPERSCRAPER_API_KEY=ss_live_xxxxxxxxxxxxxxxxxxxx
superscraper scrape https://example.comThat prints the page as clean markdown to stdout. Add --json for the full API response.
Authentication
Auth is resolved in this order:
SUPERSCRAPER_API_KEYenvironment variable~/.leadsnap/config.json(written bysuperscraper init; the path is still the legacy name in source)
export SUPERSCRAPER_API_KEY=ss_live_xxxxxxxxxxxxxxxxxxxx
# or, interactively:
superscraper initSet SUPERSCRAPER_API_URL to point at a self-hosted instance (defaults to https://api.superscraper.dev).
Common commands
# Scrape to markdown (default)
superscraper scrape https://northside-roasters.example
# Structured listing JSON
superscraper scrape https://northside-roasters.example --format json
# Force the headless browser with extra wait
superscraper scrape https://react-app.com --force-playwright --wait-for 2000
# Free JSON-LD extraction (no schema)
superscraper extract https://northside-roasters.example
# LLM extraction with a schema file
superscraper extract https://northside-roasters.example --schema ./contact-schema.jsonFor the full command reference (global flags, exit codes), see the CLI guide.