Scrape pages with JS rendering and proxies, extract by CSS selector, ask an LLM about a page, search Google and read structured site data through WebScraping.AI.
WebScraping.AI ships in the w6w first-party pack. It declares 9 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.webscrapingaiWebScraping.AI is a scraping API with headless-Chromium JavaScript rendering, rotating datacenter, residential and stealth proxies, and built-in HTML parsing. This app exposes its REST API to a workflow, authenticated with an API key.
A workflow can fetch a page’s HTML or its visible text as Markdown, pull the HTML of one or many CSS selectors in a single fetch, and run its own JavaScript on a page. Two LLM endpoints answer a free-form question about a page or extract a set of named fields from it. It can also run a Google search and get parsed results, read structured JSON for a page on a supported site (YouTube, TikTok, X, LinkedIn, Instagram, Reddit and more), and read the account’s remaining credits.
Every call spends credits from the account; proxy tier and JavaScript rendering change the price, and failed requests are not billed.
Three routes to the same 9 actions. The Workflow tab is generated from WebScraping.AI's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
account-get Read the account email, remaining credits, concurrency and the next reset time.
ai-fields Fetch a page and have an LLM extract named fields from it. A field the page does not contain comes back null.
ai-question Fetch a page through proxies and headless Chromium, then answer a question or instruction about it with an LLM. Returns plain text.
data-get Structured JSON for a page on a supported site (YouTube, TikTok, X, LinkedIn, Instagram, Reddit and more over time). The shape of `data` depends on the detected provider and type.
html-get Fetch a page's full HTML through proxies and headless Chromium, optionally running your own JavaScript on it first.
selected-get Fetch a page and return the inner HTML of the first element matching a CSS selector. No match fails with a 400 "Element not found".
selected-multiple-get Fetch a page once and return, for each CSS selector, the inner HTML of every element it matches (an empty list when nothing matches).
serp-search Parsed Google search results (organic results, related searches, pagination).
text-get Fetch a page's visible text as Markdown. With the JSON format it also returns the title and description, and optionally the page's links.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying WebScraping.AI's real ids.
{
"manifestVersion": "2",
"name": "webscrapingai-example",
"steps": [
{
"id": "ai-fields",
"uses": {
"app": "io.w6w.webscrapingai",
"action": "ai-fields",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"url": "<url>",
"fields": "<fields>"
}
}
]
}ai-fields account-get ai-question data-get html-get +4 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for WebScraping.AI, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to WebScraping.AI. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "ai-fields",
payload: {
url: "<value>",
fields: "<value>",
// fetchOptions: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action ai-fields --payload '{"url":"<value>","fields":"<value>"}' Give an AI agent WebScraping.AI — without giving it WebScraping.AI's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.webscrapingai#ai-fields",
"input": {
"url": "<url>",
"fields": "<fields>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's WebScraping.AI connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
WebScraping.AI's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. WebScraping.AI itself is MIT, and the runtime that executes it is source-available (FSL).
WebScraping.AI declares its own checks, so its health is a property of the app rather than something the host guesses at.
Unauthenticated GET /account. WebScraping.AI's own JSON `Wrong API key` refusal passes — it proves the application itself is answering.
Remaining API credits (monthly plus pay-as-you-go) on the account.