Get Page Content
AI-generatedSummary
Get the HTML content of a web page
Inputs
- url (required) — Target page URL to navigate to.
- queryParameters — Array of name/value pairs to append as query parameters to the URL.
- options — Configuration for the page request, including batch size, device emulation, extra headers, timeout, waiting condition, PDF/screenshot settings, and other browser launch options.
Output shape
a single record containing the page body, response headers, HTTP status code, and the requested URL
Returns one JSON object with fields body, headers, statusCode, and url on success; no binary payload is included for this operation.
Examples
Example 1: Retrieve the HTML of a simple site
url=https://example.com, queryParameters empty, options default
Example 2: Fetch JSON data with custom headers and longer timeout
url=https://api.example.com/data, queryParameters=[{name:'page',value:'1'}], options={batchSize:1, timeout:60000, extraHeaders={Authorization:'Bearer token'}}