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 |