Install
openclaw skills install @superagnt/web-scrapingScrape, search, and map the web for agents — clean markdown, structured JSON, and site URL discovery.
openclaw skills install @superagnt/web-scrapingThe superagnt Web API gives agents reliable access to the live web through a single integration. Fetch the content of any public page as clean main-content markdown or structured JSON, run a web search and pull the full content of each result in one call, and discover every URL on a site before scraping it. JavaScript-rendered pages are handled for you. Instead of managing scraping infrastructure, proxies, and rate limits yourself, you call superagnt with one credential and consume agent-ready JSON with predictable, usage-based credit pricing.
If this client speaks MCP, you can connect the Web Scraping facet server instead of using this skill's curl calls — the same endpoints below as native MCP tools with structured parameters and OAuth sign-in, scoped to this capability:
https://mcp.superagnt.com/mcp/web-scraping
That URL publishes full OAuth discovery: an MCP-capable client needs the URL
and nothing else (approve once in the browser). On clients that hold a bearer
instead, add it as an Authorization: Bearer header. Per-client setup lines:
https://mcp.superagnt.com/agent-setup/prompt.md
This skill document stays fully usable on curl-only environments — everything below works with just the API key.
Get an API key from the dashboard and export it as
SUPERAGNT_API_KEY. Every request sends it as a Bearer token:
Authorization: Bearer $SUPERAGNT_API_KEY
If the variable is not set, ask the user for their key or point them at https://superagnt.com/r/ch-web-scraping-key.
One call proves the key, the credit balance, and this source end to end:
curl -s https://api.superagnt.com/v1/credits \
-H 'Authorization: Bearer $SUPERAGNT_API_KEY'
A JSON result means you are live. A 401 means the key is wrong or missing; a 402 means the workspace is out of credits — the dashboard shows both.
https://api.superagnt.com/v1/data/web
| Method | Path | Summary |
|---|---|---|
POST | /scrape | Scrape a web page |
POST | /search | Search the web |
POST | /map | Map a website's URLs |
The following JSON defines every operation with its parameters. Each tool maps to an API endpoint under the base URL.
[
{
"name": "superagnt_web_scrape",
"description": "Scrape a web page",
"method": "POST",
"path": "/scrape",
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL to scrape (must be a publicly reachable http(s) URL)."
},
"formats": {
"type": "array",
"description": "Output formats to return. Each entry is either a string preset or an object form. String presets: 'markdown' (default), 'summary', 'html', 'rawHtml', 'links', 'images'. Object forms include { type: 'json', schema, prompt } for structured extraction, { type: 'screenshot', fullPage, quality } for an image, and { type: 'changeTracking', modes } for diffs. Defaults to ['markdown'] when omitted."
},
"onlyMainContent": {
"type": "boolean",
"description": "Return only the main content of the page, excluding navs, headers, and footers."
},
"includeTags": {
"type": "array",
"description": "Only include content within these HTML tags / CSS selectors."
},
"excludeTags": {
"type": "array",
"description": "Exclude content within these HTML tags / CSS selectors."
},
"maxAge": {
"type": "integer",
"description": "Return cached content up to this age in milliseconds (faster, cheaper). Default 172800000 (2 days)."
},
"waitFor": {
"type": "integer",
"description": "Milliseconds to wait for the page to render before scraping."
},
"mobile": {
"type": "boolean",
"description": "Emulate a mobile device."
},
"timeout": {
"type": "integer",
"description": "Request timeout in milliseconds (1000-300000). Default 60000."
},
"parsers": {
"type": "array",
"description": "PDF parsing configuration."
},
"proxy": {
"type": "string",
"description": "Proxy / anti-bot mode. 'auto' (default) escalates only on failure; 'enhanced' forces advanced anti-bot handling and costs more."
},
"location": {
"type": "object",
"description": "Geographic proxy location and language settings."
}
},
"required": [
"url"
]
}
},
{
"name": "superagnt_web_search",
"description": "Search the web",
"method": "POST",
"path": "/search",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The search query."
},
"limit": {
"type": "integer",
"description": "Number of results per source. Default 10."
},
"sources": {
"type": "array",
"description": "Which result sources to query. Defaults to ['web']. Each entry is a preset string or an object with a `type`."
},
"categories": {
"type": "array",
"description": "Restrict results to these categories."
},
"tbs": {
"type": "string",
"description": "Time-based search filter (e.g. 'qdr:d' for past day)."
},
"location": {
"type": "string",
"description": "Geo-target for the search (e.g. 'San Francisco, California, United States')."
},
"country": {
"type": "string",
"description": "ISO country code. Default 'US'."
},
"includeDomains": {
"type": "array",
"description": "Only return results from these hostnames (mutually exclusive with excludeDomains)."
},
"excludeDomains": {
"type": "array",
"description": "Exclude results from these hostnames (mutually exclusive with includeDomains)."
},
"timeout": {
"type": "integer",
"description": "Request timeout in milliseconds. Default 60000."
},
"scrapeOptions": {
"type": "object",
"description": "When provided, each result is also scraped and its content returned. Accepts the same content options as /scrape (e.g. `formats`, `onlyMainContent`). Increases cost because every result is fetched."
}
},
"required": [
"query"
]
}
},
{
"name": "superagnt_web_map",
"description": "Map a website's URLs",
"method": "POST",
"path": "/map",
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The base URL of the site to map."
},
"search": {
"type": "string",
"description": "Order returned URLs by relevance to this query."
},
"sitemap": {
"type": "string",
"description": "How to use the site's sitemap. Default 'include'."
},
"includeSubdomains": {
"type": "boolean",
"description": "Include URLs on subdomains."
},
"ignoreQueryParameters": {
"type": "boolean",
"description": "Treat URLs that differ only by query string as the same URL."
},
"limit": {
"type": "integer",
"description": "Maximum number of URLs to return. Default 5000, max 100000."
},
"timeout": {
"type": "integer",
"description": "Request timeout in milliseconds."
},
"location": {
"type": "object",
"description": "Geographic proxy location and language settings."
}
},
"required": [
"url"
]
}
}
]
curl -X POST 'https://api.superagnt.com/v1/data/web/scrape' \
-H 'Authorization: Bearer your_api_key_here' \
-H 'Content-Type: application/json' \
-d '{"url": "https://example.com", "formats": ["markdown"]}'
This skill covers Web Scraping only — the endpoints listed above,
nothing else. The same API key also works with superagnt's other data sources
and platform tools, but those are separate listings that the user installs or
enables themselves; this skill does not add or enable anything beyond what is
documented here. The public catalog is at https://api.superagnt.com/v1/platforms.