v1
latestOpenAPI 3.1.02026-07-137321.6 KBGet an answer to a question about a given web page
Returns the answer in plain text. Proxies and Chromium JavaScript rendering are used for page retrieval and processing, then the answer is extracted using an LLM model.
Query parameters
URL of the target page.
Question or instructions to ask the LLM model about the target page.
HTTP headers to pass to the target page. Can be specified either via a nested query parameter (...&headers[One]=value1&headers=[Another]=value2) or as a JSON encoded object (...&headers={"One": "value1", "Another": "value2"}).
Maximum web page retrieval time in ms. Increase it in case of timeout errors (10000 by default, maximum is 30000).
Execute on-page JavaScript using a headless browser (true by default).
Maximum JavaScript rendering time in ms. Increase it in case if you see a loading indicator instead of data on the target page.
CSS selector to wait for before returning the page content. Useful for pages with dynamic content loading. Overrides js_timeout.
Type of proxy. Use residential if your site restricts traffic from datacenters, or stealth for the most heavily protected sites with advanced anti-bot detection (datacenter by default). Residential and stealth proxy requests are more expensive than datacenter, see the pricing page for details.
Country of the proxy to use (US by default).
Your own proxy URL to use instead of our built-in proxy pool in "http://user:password@host:port" format (<a target="_blank" href="https://webscraping.ai/proxies/smartproxy">Smartproxy</a> for example).
Type of device emulation.
Return error on 404 HTTP status on the target page (false by default).
Return error on redirect on the target page (false by default).
Custom JavaScript code to execute on the target page.
Format of the response (text by default). "json" will return a JSON object with the response, "text" will return a plain text/HTML response.
Response
Success