scrapingbee_ai_extract

Pack: scrapingbee · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/scrapingbee_ai_extract for the schema, then POST the same URL with its arguments for the data.

Extract structured data from a web page using ScrapingBee’s AI. Pass a natural-language question or field description via ai_query and get back structured JSON. Example: scrapingbee_ai_extract({ url: “https://example.com/product\”, ai_query: “product name and price”, _apiKey: “your-key” })

Parameters

NameTypeRequiredDescription
urlstringyesFull target URL including protocol.
ai_querystringyesNatural-language description of the data to extract, e.g. “the article title, author, and publish date”.
render_jsbooleannoExecute JavaScript via a headless browser before extraction (default true).
premium_proxybooleannoRoute through residential premium proxies (higher credit cost).
country_codestringnoISO 3166-1 alpha-2 country code for proxy geolocation, e.g. “us”.
_apiKeystringyesYour ScrapingBee API key.

Example call

Arguments

{
  "url": "https://example.com/product",
  "ai_query": "product name and price",
  "_apiKey": "your-scrapingbee-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/scrapingbee/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scrapingbee_ai_extract","arguments":{"url":"https://example.com/product","ai_query":"product name and price","_apiKey":"your-scrapingbee-api-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('scrapingbee_ai_extract', {
  "url": "https://example.com/product",
  "ai_query": "product name and price",
  "_apiKey": "your-scrapingbee-api-key"
});

More examples

{
  "url": "https://news.example.com/article",
  "ai_query": "article title, author name, and publication date",
  "render_js": true,
  "country_code": "gb",
  "_apiKey": "your-scrapingbee-api-key"
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the scrapingbee pack
{
  "mcpServers": {
    "scrapingbee": {
      "url": "https://gateway.pipeworx.io/scrapingbee/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 13, 2026