Actions14
- Account Actions
- Discovery Actions
- Extraction Actions
- Result Actions
- Scraper Creation Actions
- Scraper Run Actions
Extraction → Extract Page by Prompt
AI-generatedSummary
Scrapes a target URL using an AI agent to extract specific data based on a natural language prompt.
Inputs
- url (required) — The URL to be scraped.
- message — The natural language instruction describing what data to extract (e.g., 'Extract the product name and price').
- outputSchema — Optional JSON schema defining the desired output structure. If provided, it is appended to the prompt to guide the AI.
- mode — Select 'Super' for standard scraping or 'Cheap' if the target website has weak security.
- proxyCountry — ISO country code for the proxy (e.g., US, GB, ID, SG).
- requestOptions — Configuration for request behavior, including batching, timeout, proxy settings, and SSL verification.
Output shape
A single record (item) containing the extracted data.
The data structure depends on the provided prompt or outputSchema. The operation returns the result of the AI extraction.
Examples
Example 1: Extract product details from an e-commerce page.
URL: https://shop.example.com/product/123; Prompt: Extract the product name, price, and availability; Mode: Super.
Example 2: Get restaurant information with specific schema constraints.
URL: https://restaurant.example.com; Output Schema: JSON defining name, rating, and address.