/scraperapi:scraperapi-agent-onboardingfrom ScraperAPI
Entry point for developers integrating ScraperAPI into agents or apps. Covers API key setup, MCP server for LLM tools, SDK/REST integration, and product selection for web scraping.
Ships in ScraperAPI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ScraperAPI gives agents and apps reliable access to web data: any URL returned as clean HTML or markdown (with proxy rotation, CAPTCHA bypass, and JS rendering handled automatically), structured JSON from 20+ supported platforms (Amazon, Walmart, eBay, Redfin, Google SERP), and a crawler for multi-page extraction.
This skill is the entry point. Read it once, pick a path, then hand off to the narrower skill that owns that path.
All paths require a ScraperAPI key. If you don't have one:
YOUR_API_KEY in the examples below. Never commit a real key to source control.Verify the key works before doing real work:
curl "https://api.scraperapi.com/?api_key=YOUR_API_KEY&url=https://httpbin.org/ip"
A JSON response with an origin IP confirms the key is valid. A 401 means the key is wrong or
inactive — do not retry with the same key, surface the error.
| Situation | Path |
|---|---|
| LLM agent needs web data during this session | Path A — MCP Server |
| Adding ScraperAPI to app code | Path B — SDK / REST integration |
| Quick request, or environment without Node/Python | Path C — REST API directly |
| Need an API key first | Path D — Auth only (above) |
If your task spans paths, do them in order: get key → MCP or SDK → test one real request before building.
Use this when the consumer is an LLM agent (Claude Code, custom agent loop) that should call ScraperAPI as tools. The MCP server exposes up to 28 tools — scrape, Google, Amazon, Walmart, eBay, Redfin, crawler, and AI Parser — over a single connection.
No installation required. All 28 tools available.
If you installed the ScraperAPI plugin, this server is already configured — the plugin asks for your API key when you enable it. Otherwise, add it to your Claude Code project settings or MCP client config:
{
"mcpServers": {
"ScraperAPI": {
"type": "http",
"url": "https://mcp.scraperapi.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_SCRAPERAPI_API_KEY>"
}
}
}
}
If you prefer a local server or the remote endpoint is unavailable. Requires Python 3.11+.
pip install scraperapi-mcp-server
{
"mcpServers": {
"ScraperAPI": {
"command": "python",
"args": ["-m", "scraperapi_mcp_server"],
"env": { "API_KEY": "<YOUR_SCRAPERAPI_API_KEY>" }
}
}
}
The local server exposes the same 28 tools as the remote one; only the transport and the key setting differ.
Hand off to the scraperapi-mcp skill. It owns tool selection, parameter optimization, credit
cost guidance, and error recovery for all 28 MCP tools. Also check the
MCP setup reference for variant detection and
troubleshooting.
Use this when you're building an application, script, or workflow that calls ScraperAPI from code.
Always run one real request before writing integration logic — catches auth, credit, and parameter issues before they hide inside your app's error paths:
import requests
r = requests.get(
"https://api.scraperapi.com/",
params={"api_key": "YOUR_API_KEY", "url": "https://httpbin.org/ip"}
)
print(r.status_code, r.text[:200])
A 200 with valid JSON confirms you're wired up.
| Job in the app | API | Key docs |
|---|---|---|
| Fetch any URL as HTML or markdown | Standard API | docs |
| Render JS-heavy pages (React, Vue, SPAs) | Standard API + render=true | docs |
| Structured JSON: Amazon, Google, Walmart, eBay, Redfin | Structured Data API | docs |
| Batch scraping / 100+ URLs | Async Jobs API (scraperapi-async skill) | docs |
| Every page of a site, following links | Crawler (scraperapi-crawler skill) | docs |
| Recurring, scheduled scraping without managing infra | DataPipeline (scraperapi-datapipeline skill) | docs |
pip install scraperapi-sdk
from scraperapi_sdk import ScraperAPIClient
client = ScraperAPIClient("YOUR_API_KEY")
result = client.get("https://example.com", render=True, country_code="us")
print(result)
npm install scraperapi-sdk
const scraperapi = require('scraperapi-sdk')('YOUR_API_KEY');
const result = await scraperapi.get('https://example.com', { render: true, country_code: 'us' });
console.log(result);
For anything beyond these snippets, hand off to the language's SDK skill:
scraperapi-python-sdk, scraperapi-nodejs-sdk, scraperapi-java-sdk, scraperapi-php-sdk, or
scraperapi-ruby-sdk. To have a complete scraper written for a specific site, use
scraperapi-scraper-builder.
Use this when the environment can't run pip or npm, or when you only need a few requests.
Base URL: https://api.scraperapi.com/
Auth: api_key query parameter (or apiKey in the JSON body for async)
# Basic scrape
curl "https://api.scraperapi.com/?api_key=YOUR_API_KEY&url=https://example.com"
# With JS rendering
curl "https://api.scraperapi.com/?api_key=YOUR_API_KEY&url=https://example.com&render=true"
# Structured data — Google SERP
curl "https://api.scraperapi.com/structured/google/search?api_key=YOUR_API_KEY&query=web+scraping"
# Structured data — Amazon product
curl "https://api.scraperapi.com/structured/amazon/product?api_key=YOUR_API_KEY&asin=B09V3KXJPB"
# Submit an async job
curl -X POST "https://async.scraperapi.com/jobs" \
-H "Content-Type: application/json" \
-d "{\"apiKey\": \"YOUR_API_KEY\", \"url\": \"https://example.com\"}"
# Poll async job status
curl "https://async.scraperapi.com/jobs/<jobId>?apiKey=YOUR_API_KEY"
For the full parameter surface (premium proxies, country targeting, session stickiness, binary targets), see the API reference.
| Code | Meaning | Action |
|---|---|---|
200 | Success | Return / parse the body |
401 | Invalid API key | Surface error — do not retry |
403 | Credits exhausted for this billing cycle | Do not retry; upgrade or enable overages at https://dashboard.scraperapi.com/billing |
429 | Concurrent limit hit | Back off; switch to async for batch work |
500 | Failed after ScraperAPI retried for 70s (not charged) | Retry with backoff; on protected sites add premium=true, then ultra_premium=true, or try another country_code |
Route to the narrowest skill or reference that fits the task:
| User says… | Go to |
|---|---|
| "scrape this URL" / "search Google for…" / "get Amazon, Walmart, eBay or Redfin data", in this session | scraperapi-mcp (picks the tool and parameters) |
| "debug a failed scrape or blocked request" | scraperapi-mcp error recovery section |
| "crawl a website" / "every page on this site" | scraperapi-crawler in app code; scraperapi-mcp → crawler_job_start in this session |
| "scrape 100+ URLs" / "batch job" / "webhook delivery" | scraperapi-async |
| "schedule recurring scraping" / "managed scraping project" | scraperapi-datapipeline |
| "write me a scraper for [site]" | scraperapi-scraper-builder |
| Python, Node.js, Java, PHP or Ruby code that calls ScraperAPI | scraperapi-python-sdk, scraperapi-nodejs-sdk, scraperapi-java-sdk, scraperapi-php-sdk, scraperapi-ruby-sdk |
| "from the terminal" / shell scripts / cron / CI | scraperapi-cli |
| "build an n8n workflow" | scraperapi-n8n |
| "build a Zap" | scraperapi-zapier |
| "audit the SEO of my site" | scraperapi-seo-audit |
| "what does Google show for [keyword]" | scraperapi-serp-intelligence |
| "research the [X] market" | scraperapi-market-research |
| "enrich this lead" / "build a contact card" | scraperapi-lead-enrichment |
| "track the price of [product]" | scraperapi-price-monitoring |
| "run the research agent script" | scraperapi-research-agent |
When in doubt, prefer structured data endpoints over raw HTML scraping for supported platforms —
they return clean JSON with no parsing logic, are more reliable, and often cost fewer credits than
raw scraping with render=true.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub scraperapi/scraperapi-skills --plugin scraperapi20 skills in this plugin
/scraperapi-asyncReference for ScraperAPI's Async Jobs REST API: submit scraping jobs in the background and get results by polling or webhook, including batch jobs. Consult when the user is scraping many URLs, needs non-blocking requests, or wants webhook delivery. Use when user asks: "how do I scrape 1000 URLs with ScraperAPI", "ScraperAPI async jobs", "batch scraping with ScraperAPI", "submit a scraping job and poll for results", "ScraperAPI webhook callback", "ScraperAPI batchjobs endpoint". Covers single and batch jobs, webhook callbacks, apiParams, async-only parameters, binary responses, retention, and error handling. It is language-agnostic: for SDK client code, use the language's SDK skill; to crawl a whole site by following links, use scraperapi-crawler.
Note: Transmits user-supplied queries, URLs, and content to ScraperAPI.
/scraperapi-cliReference for the official ScraperAPI command-line tool (`sapi`, package `scraperapi-cli`). Use this skill whenever the user wants to scrape, run async jobs, fetch structured data or check credits from a terminal or shell script. Trigger on: "scrape this URL from the terminal", "use sapi to fetch X", "ScraperAPI CLI", "ScraperAPI from bash", "sapi scrape", "sapi jobs", "pipe ScraperAPI into jq", "scrape from a Makefile / cron / CI", "check my ScraperAPI credits from the command line", "scrape 10000 URLs from a file". Covers install, auth, commands, JSON and piping behaviour, cost checks and shell recipes. Not for writing scraper code: for a new scraper script use scraperapi-scraper-builder, and for code that calls ScraperAPI use the language's SDK skill.
Note: Transmits user-supplied queries, URLs, and content to ScraperAPI.
Other plugins' skills for the same job