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" })
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). |