Web collection
Fetch public web pages and return Markdown or structured JSON.
Document ID:
agent.collection.task.raw_html_v1Inputs
urlsRequired · url_listWeb URLs
Default:output_formatOptional · selectOutput format
Default: markdown · Allowed: markdown, jsonMinimal call
estimate_collection{
"input": {
"output_format": "markdown",
"urls": [
"https://example.com/"
]
},
"task_code": "raw_html_v1",
"task_query": "获取 https://example.com/ 的网页内容"
}Result and pagination
- mode:
none - 2 Credits per successful URL; estimated 5–90 seconds.
Only the fields listed below are part of the stable result contract.
| Path | Type | Description |
|---|---|---|
meta.request_id | string | Asklear request identifier for tracing. |
meta.api_name | string | Executed collection operation name. |
meta.latency_ms | integer | Collection execution latency in milliseconds. |
meta.credits_charged | integer | Asklear Credits settled for each successful URL in this task. |
data.documents | array<object> | One result document per submitted URL. |
data.documents[].url | string | Normalized submitted URL. |
data.documents[].status | enum | succeeded or failed. |
data.documents[].format | enum | markdown or json. |
data.documents[].content | string | Converted Markdown content when format is markdown and status is succeeded. |
data.documents[].elements | array<object> | Structured JSON elements when format is json and status is succeeded. |
data.documents[].elements[].type | string | Element type, such as a visible HTML tag. |
data.documents[].elements[].text | string | Visible text for the element. |
data.documents[].elements[].metadata | object | Bounded element metadata; currently includes the source tag. |
data.documents[].error_code | string | Stable error code for a failed document; currently collection_failed. |