scraperapi-cli
Installation
SKILL.md
ScraperAPI CLI (sapi)
sapi is the official ScraperAPI command-line tool. It is the right choice when:
- The user is already in a terminal and wants a result now without writing a script.
- A scrape is part of a shell pipeline (
sapi … | jq …,xargs,make, GitHub Actions). - A one-off scheduled task (cron, launchd, systemd timer) needs to hit ScraperAPI without a project setup.
- The user is exploring — testing whether
--renderor--premiumunblocks a target before committing the choice to code.
If the user is writing application code in Python, Node, PHP, Ruby, or Java, point them at the matching SDK skill instead — the CLI is for shells, not application logic.
Install and authenticate
npm install -g scraperapi-cli # requires Node.js 18+
sapi init # interactive: prompts for the key and validates it
Non-interactive setup (for CI / Dockerfiles):