Overview
just-scrape is the official CLI for ScrapeGraph AI — AI-powered web scraping, data extraction, search, and crawling, straight from your terminal. Uses the v2 API.
Get your API key from the dashboard
Installation
Configuration
The CLI needs a ScrapeGraph API key. Four ways to provide it (checked in order):- Environment variable:
export SGAI_API_KEY="sgai-..." .envfile:SGAI_API_KEY=sgai-...in project root- Config file:
~/.scrapegraphai/config.json - Interactive prompt: the CLI asks and saves to config
Environment Variables
Legacy variables are still bridged transparently:
JUST_SCRAPE_API_URL → SGAI_API_URL, JUST_SCRAPE_TIMEOUT_S / SGAI_TIMEOUT_S → SGAI_TIMEOUT, JUST_SCRAPE_DEBUG → SGAI_DEBUG.
JSON Mode
All commands support--json for machine-readable output. Banner, spinners, and interactive prompts are suppressed — only minified JSON on stdout. Saves tokens when piped to AI agents.
Commands
Extract
Extract structured data from any URL using AI (replacessmart-scraper). Full docs →
Search
Search the web and extract structured data from results (replacessearch-scraper). Full docs →
Scrape
Scrape a URL into one or more of 8 output formats. Multi-format is supported via comma-separated-f. Full docs →
Formats
Crawl
Crawl multiple pages. The CLI starts the crawl and polls until completion. Full docs →Fetch Modes
Use-m / --mode on scrape and crawl to choose how pages are fetched. Add --stealth to enable anti-bot bypass.
On
extract, --mode sets the HTML processing mode (normal, reader, prune) instead. Use --stealth separately for anti-bot bypass.Monitor
Create and manage page-change monitors that track changes on a URL at a set interval.History
Browse request history for any service.scrape, extract, schema, search, monitor, crawl
Credits
Check your credit balance.AI Agent Integration
Usejust-scrape as a skill for AI coding agents via Vercel’s skills.sh:
Support & Resources
npm Package
Install from npm
GitHub
Source code and issues
Community
Join our Discord community
Dashboard
Get your API key