Skip to main content

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

Package: just-scrape on npm | GitHub

Configuration

The CLI needs a ScrapeGraph API key. Four ways to provide it (checked in order):
  1. Environment variable: export SGAI_API_KEY="sgai-..."
  2. .env file: SGAI_API_KEY=sgai-... in project root
  3. Config file: ~/.scrapegraphai/config.json
  4. Interactive prompt: the CLI asks and saves to config

Environment Variables

Legacy variables are still bridged transparently: JUST_SCRAPE_API_URLSGAI_API_URL, JUST_SCRAPE_TIMEOUT_S / SGAI_TIMEOUT_SSGAI_TIMEOUT, JUST_SCRAPE_DEBUGSGAI_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 (replaces smart-scraper). Full docs →
Search the web and extract structured data from results (replaces search-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.
Services: scrape, extract, schema, search, monitor, crawl

Credits

Check your credit balance.

AI Agent Integration

Use just-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