AI agent instructions
AI agent instructions
only_images is still in the generated request type (the 1.x API accepts it) but image scraping was removed.
Fields
Additional instructions to use for the scrape. E.g. ‘Extract only the title, date and content of the articles.’
Whether to only scrape the main content of the page. If True, navbars, footers, etc. are excluded.
Playwright selector to scope the scrape to. Only content inside this selector will be scraped.
Model used for structured extraction. Canonical OpenRouter ids: google/gemini-3.5-flash, google/gemini-3.5-flash-lite, google/gemini-3.1-flash-lite, google/gemini-3.1-flash-lite-preview, google/gemini-2.5-flash, openai/gpt-4.1-mini, openai/gpt-4o, google/gemma-3-27b-it, openai/gpt-oss-120b, perplexity/sonar-pro, deepseek/deepseek-r1, meta-llama/llama-3.3-70b-instruct, anthropic/claude-sonnet-4-5, anthropic/claude-haiku-4-5, moonshotai/kimi-k2.5, x-ai/grok-4.3, minimax/minimax-m2.5. Reviewed legacy LiteLLM ids remain accepted. Defaults to google/gemini-3.5-flash.
Whether to use link/image placeholders to reduce the number of tokens in the prompt and hallucinations. However this is an experimental feature and might not work as expected.
A Zod schema or a JSON Schema object describing the data to extract.
JSON Schema to send instead of converting
response_format. Only used with a Zod schema.When true (default) a failed structured extraction throws
ScrapeFailedError
and the extracted data is returned directly. When false the StructuredData
wrapper is returned so callers can inspect .success.