scraperapi-cli

scraperapi-cli is a skill for Claude Code from scraperapi/scraperapi-skills. It costs 262 tokens per session (3,549 once invoked), scanned A, original, MIT.

A reference for using ScraperAPI from a command line, such as a terminal or shell script. ScraperAPI fetches web pages, while its command-line tool can also submit jobs, run crawls, fetch structured data, and check account credits.

In plain words
What is it for?
Use it for one-off page fetches, shell pipelines, scheduled jobs, CI or Docker scripts, background scraping, crawls, structured-data requests, and credit checks.
Why use it?
It removes the need to write a separate application for terminal-based web requests or shell automation. It also explains authentication and which command-line operation fits different tasks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Part of the scraperapi plugin — 20 skills, 1 MCP server shipped together

Good fit Use it for one-off page fetches, shell pipelines, scheduled jobs, CI or Docker scripts, background scraping, crawls, structured-data requests, and credit checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scraperapi/scraperapi-skills/scraperapi-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add scraperapi/scraperapi-skills --skill scraperapi-cli
Clone the repo
git clone --depth 1 https://github.com/scraperapi/scraperapi-skills

Made for: Claude Code.

Or install scraperapi, the plugin that ships this one along with the rest of its 20 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scraperapi-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/scraperapi/scraperapi-skills/scraperapi-cli/github.svg)](https://agentmods.dev/skills/scraperapi/scraperapi-skills/scraperapi-cli)
Your own site
<a href="https://agentmods.dev/skills/scraperapi/scraperapi-skills/scraperapi-cli"><img src="https://agentmods.dev/badge/skills/scraperapi/scraperapi-skills/scraperapi-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scraperapi-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/scraperapi/scraperapi-skills/scraperapi-cli"><img src="https://agentmods.dev/badge/skills/scraperapi/scraperapi-skills/scraperapi-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 262 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,549 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00262 $0.03549
Opus 5.5 $0.00105 $0.01420
Sonnet 5.5 $0.00052 $0.00710
Haiku 4.5 $0.00026 $0.00355

Measured 2mo ago against content hash 1b404b9771cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scraperapi-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/scraperapi-cli/SKILL.md · 316 lines

How it starts

The opening of the file, as written. The whole thing — 316 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 --render or --premium unblocks 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):

sapi init --api-key "$SCRAPERAPI_API_KEY"

Key resolution order

sapi looks for the API key in this order, stopping at the first hit:

  1. --api-key <key> flag on the command
  2. SCRAPERAPI_API_KEY environment variable
  3. ~/.config/scraperapi/config.json (written by sapi init)

In CI, prefer the env var — it keeps the key out of shell history and config files.

Output contract — important for piping

Stream What goes there
stdout The data (page body, JSON, table rows)
stderr Spinners, warnings, errors

When stdout is not a TTY (a pipe or redirect), sapi automatically switches to JSON mode:

sapi scrape https://example.com | jq .body            # auto-JSON
sapi scrape https://example.com > out.json            # auto-JSON
sapi scrape https://example.com                       # human output (page body to stdout)

Force JSON mode in a TTY with --json. Force a specific body format with --output html|markdown|text|json|csv — --output overrides the non-TTY auto-JSON rule, so you can pipe raw HTML or markdown into another tool without it being wrapped in JSON.

Read the full file on GitHub · 316 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 316 lines · 262 tokens per session scan A 1b404b9771cc

Subscribe to this mod's changes

scraperapi-cli is a skill published in the GitHub repository scraperapi/scraperapi-skills (10 stars, last pushed 3mo ago), licensed MIT. It adds 262 tokens to every session and 3,549 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

scraperapi-cli compared with skills from other repositories

scraperapi-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scraperapi-cliscraperapi/scraperapi-skillsSkill103mo agoMITA262Claude Code
webapp-testingalebgl77/claude-incSkill2215d agoMITA103Claude Code
application-testingAryan-Jhaveri/mcp-statcanSkill811d agoMITA190Claude Code, Codex
e2llme2llm/e2llm-sifrSkill72mo agoMITA129Claude Code
sifre2llm/e2llm-sifrSkill72mo agoMITA89Claude Code
verifychrisdothtml/ai-job-finderSkill31mo agoMITA16Claude Code
browser-automationxAmirHamza77/ReverseOps-SkillSkill53mo agoMITA126Claude Code, Codex