Hilfezentrum
arrow
Die nutzerführer
arrow
Query parameters

Query parameters

2025-09-09 10:02

1.Universal Scraper API Input Query Parameters

Parameter Type Default Description
source string - Crawler ID
context

├─ context.url


└─context.screenshot_type
map[string]interface - Specific parameters, user-defined additional information
string - Link to a specific page
number - Select screenshot type (only for PNG format) (1: Full page screenshot, 2: Viewport screenshot)
geo string - Region
callback string - Callback URL
js_render bool FALSE Enable JS rendering (false: Disable, true: Enable)
locale string - Language
format []string - Desired response format
这些参数帮助实现从简单 HTML 抓取,到 JS 渲染、自动解析、截图甚至会话模拟等复杂需求

2.输出查询参数

id string A unique identifier in the format s_XXXXXXXXXXXX_XXXX
request interface{} Request details, including callback, context, format, etc.
callback string Callback address: indicates the notification address after the request is completed (if any)
context

├─ context.url

└─context.screenshot_type
map[string]interface Context: contains specific request parameters
string Request URL: indicates the URL to be crawled or processed
number Screenshot type: indicates the screenshot format or selected screenshot type (1 indicates a specific type)
format []string Requested response format: can be an array of multiple formats (e.g., html and png)
geo string Geolocation code: indicates the geographic region from which the request originated (e.g., AE for the United Arab Emirates)
js_render boolean Whether JavaScript rendering is enabled (true for enabled, false for disabled)
locale string Request locale: in the format language-region (e.g., af-ZA for Afrikaans, South Africa)
source string Crawler source identifier: indicates which crawler the request originated from (e.g., uni-scraper)
status string Current request status: indicates the current progress or status of the task (pending, done, faulted).