WebExtrator Render API
POSThttps://api.acedata.cloud/webextrator/render

Request Headers

acceptstring
Specify the response format returned by the server.
Please select
authorizationstring
Bearer token

Request Body

urlstringRequired parameter
The URL of the webpage to be rendered.
wait_untilstring
Waiting conditions for page loading. Optional values: `load` (page load complete), `domcontentloaded` (DOM parsing complete), `networkidle` (network idle), `commit` (continue as soon as a response is received). The default value is `networkidle`.
Please select
timeoutnumber
The total timeout for rendering operations, in seconds.
delaynumber
The additional seconds to wait after the page has finished loading and before capturing the HTML.
wait_for_selectorstring
Wait for the CSS selector to appear before capturing HTML.
block_resourcesarray
Resource types to be intercepted when the page loads, in order to speed up rendering. Optional values: `image`, `font`, `media`, `stylesheet`, `xhr`, `fetch`.
headersobject
Additional HTTP request headers sent along with the page request.
user_agentstring
Override the default `User-Agent` request header.
callback_urlstring
If this parameter is provided, the request will be processed asynchronously, and the final result will be pushed to this URL via a POST request.
asyncboolean
Whether to process in asynchronous mode. When set to `true`, the interface immediately returns `task_id`, without the need to provide `callback_url`, and then the result can be obtained by polling the corresponding task query interface; if `callback_url` is also provided, the result will be pushed to that callback address.
Please select

Response

WebExtrator Web Render & Extract
Allow Use General Balance

When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.

Shell

Python

JavaScript

Java

Go

PHP

Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.