LLMs cannot directly access web page data. The web extractor accesses a URL and extracts its content for the model.
Usage
The web extractor can be called in three ways. The required parameters differ for each method:
- OpenAI-compatible - Responses API
- OpenAI-compatible - Chat Completions API
- DashScope
Add
web_search and web_extractor to the tools parameter.When usingqwen3-max-2026-01-23, setenable_thinkingtotrue.
For better accuracy with mathematical or data analytics problems, also enable the code_interpreter tool.
Supported models
Recommended models
- Responses API
- Chat Completions API / DashScope
Qwen-Max: Qwen3.8-Max series, Qwen3.7-Max seriesQwen-Plus: Qwen3.7-Plus series, Qwen3.6-Plus series, Qwen3.5-Plus seriesDeepSeek: deepseek-v4-flash, deepseek-v4-flash-0731, deepseek-v4-proGLM: glm-5.2Qwen3.8 open-source series
Other models
The following models also support this tool but may not perform as well as the recommended models. Only supported through the Responses API.
- Qwen-Flash: Qwen3.7-Flash series, Qwen3.6-Flash series, Qwen3.5-Flash series
- Qwen3.6 open-source series (except qwen3.6-27b)
- Qwen3.5 open-source series
Getting started
This example calls the web extractor through the Responses API to summarize a technical document.
You must get an API key and configure it as an environment variable.
Streaming output
Web extraction can be time-consuming. Enable streaming output to receive intermediate results in real time.
Use the Responses API to retrieve intermediate tool execution status.
- OpenAI-compatible - Responses API
- OpenAI-compatible - Chat Completions API
- DashScope
Billing
Billing includes:
- Model call fees: Content extracted from the web page is added to the prompt, increasing input token count. These tokens are billed at the model's standard rate. For pricing details, see the Model Studio console.
-
Tool call fees: Includes web extraction and web search.
-
Web search fees per 1,000 calls:
- China (Beijing) region: $0.57341.
- Singapore region: $10.00.
- The web extractor is free for a limited time.
-
Web search fees per 1,000 calls: