Documentation Index
Fetch the complete documentation index at: https://docs.scrapegraphai.com/llms.txt
Use this file to discover all available pages before exploring further.
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
| Variable | Description | Default |
|---|---|---|
SGAI_API_KEY | ScrapeGraph API key | — |
SGAI_API_URL | Override API base URL | https://api.scrapegraphai.com/api/v2 |
SGAI_TIMEOUT | Request timeout in seconds | 120 |
SGAI_DEBUG | Set to 1 to log requests/responses | — |
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
| Format | Description |
|---|---|
markdown | Clean markdown conversion (default). Respects --html-mode. |
html | Raw / processed HTML. Respects --html-mode. |
screenshot | Page screenshot (PNG). |
branding | Extracted brand assets (logos, colors, fonts). |
links | All links on the page. |
images | All images on the page. |
summary | AI-generated page summary. |
json | Structured JSON via --prompt (+ optional --schema). |
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.
| Mode | Description |
|---|---|
auto | Automatic selection (default) |
fast | Fastest, no JS rendering |
js | Full JS rendering |
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