ScrapeBadger CLI
A command-line tool for accessing ScrapeBadger APIs directly from your terminal. Supports multiple output formats, pipe-friendly design, and field selection.Install
Quick Start
Authentication
The CLI resolves your API key in this order:SCRAPEBADGER_API_KEYenvironment variable.envfile in the current directory~/.config/scrapebadger/config.json(saved viascrapebadger auth)
Output Formats
Every command supports--output (-o) to choose the format:
| Format | Flag | Best For |
|---|---|---|
| JSON | -o json (default) | Piping to jq, programmatic use |
| CSV | -o csv | Spreadsheets, data analysis |
| Table | -o table | Human-readable terminal output |
| Markdown | -o markdown | Documentation, reports |
Field Selection
Use--fields (-f) to include only specific columns:
Commands
| Group | Commands |
|---|---|
| Account | auth, credits, logout |
user, tweets, tweet, search, followers, following, mentions, trends, replies, quotes, retweeters, community, list, space + more | |
| Vinted | search, item, user, user-items, brands, markets |
| Web | scrape, detect, screenshot, extract, batch, batch-status |
Pipeline Examples
Environment Variables
| Variable | Description |
|---|---|
SCRAPEBADGER_API_KEY | Your API key |
SCRAPEBADGER_API_URL | Override the API base URL (default: https://scrapebadger.com) |

