Scrapingbee Ai Extract
scrapingbee_ai_extractExtract 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" })
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "https://example.com/product",
"_apiKey": "your-scrapingbee-api-key",
"ai_query": "product name and price"
},
"name": "scrapingbee_ai_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full target URL including protocol. | |
| _apiKey | Yes | Your ScrapingBee API key. | |
| ai_query | Yes | Natural-language description of the data to extract, e.g. "the article title, author, and publish date". | |
| render_js | No | Execute JavaScript via a headless browser before extraction (default true). | |
| country_code | No | ISO 3166-1 alpha-2 country code for proxy geolocation, e.g. "us". | |
| premium_proxy | No | Route through residential premium proxies (higher credit cost). |