Beta WebExtrator Render API
POSThttps://api.worldai.chat/webextrator/render

Render a web page at the given URL and return its full HTML, final URL, title, and status code.

Agent integrations

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
Page load wait condition, supports load, domcontentloaded, networkidle, commit, default is load.
Please select
timeoutinteger
Single navigation timeout, in positive integer seconds, default 30 seconds.
delayinteger
Additional waiting time after the page has finished loading, in non-negative integer seconds.
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.
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
cookiesarray
List of Cookies to inject before navigation. Each item must include name, value, domain.
user_agentstring
Override the default `User-Agent` request header.
bypass_cacheboolean
Skip reading from the cache and fetch a new page; the result of this request can still be written to the cache.
Please select
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.
cache_ttl_secondsinteger
The cache validity period for this result, in integer seconds. 0 indicates that this result is not cached; the default is 3600 seconds.

Response

Integration guide

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.

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.