Overview
just-scrape is the official CLI for ScrapeGraph AI β AI-powered web scraping, data extraction, search, and crawling, straight from your terminal.
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 | β |
JUST_SCRAPE_API_URL | Override API base URL | https://api.scrapegraphai.com/v1 |
JUST_SCRAPE_TIMEOUT_S | Request/polling timeout in seconds | 120 |
JUST_SCRAPE_DEBUG | Set to 1 to enable debug logging | 0 |
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
SmartScraper
Extract structured data from any URL using AI. Full docs βSearchScraper
Search the web and extract structured data from results. Full docs βMarkdownify
Convert any webpage to clean markdown. Full docs βCrawl
Crawl multiple pages and extract data from each. Full docs βScrape
Get raw HTML content from a URL. Full docs βSitemap
Get all URLs from a websiteβs sitemap. Full docs βAgentic Scraper
Browser automation with AI β login, click, navigate, fill forms. Full docs βGenerate Schema
Generate a JSON schema from a natural language description.History
Browse request history for any service.markdownify, smartscraper, searchscraper, scrape, crawl, agentic-scraper, sitemap
Credits
Check your credit balance.Validate
Validate your API key.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