获取任务详情
GET
/v1/tasks/{taskId}请求参数
Path 参数
taskId
string
taskId
Header 参数
beeize-api-token
string
可选
token,可以在平台设置中查看
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
object
必需
id
string
必需
createAt
string
必需
updateAt
string
必需
name
string
必需
scraperId
string
必需
serviceId
string
必需
title
string
必需
desc
string
必需
input
object
必需
proxyConfig
object
必需
scheduleCron
string
必需
scheduleEnabled
boolean
必需
runOptions
object
必需
total
integer
必需
limit
integer
必需
offset
integer
必需
items
array [object {16}]
必需
示例
{
"code": 0,
"msg": "",
"data": {
"id": "ua8c79ch7zj23ccnf",
"createAt": "2025-01-10 16:04:30",
"updateAt": "2025-01-10 16:21:08",
"name": "ua8c79ch7zj23ccnf",
"scraperId": "z17puzjcy4rbpc3a7",
"serviceId": "qm5ynbclhmcrgpgo0",
"title": "加拿大政府新闻",
"desc": "",
"input": {
"start_urls": [
{
"url": "https://www.canada.ca/en/news/advanced-news-search/news-results.html?&typ=newsreleases&start=&end=",
"_key": 0
}
],
"ai_extract": true,
"detail_link_extract": "article > .h5 > a",
"title_extract": "",
"body_extract": "",
"author_extract": "",
"publish_time_extract": "",
"image_extract": "",
"keywords_extract": "",
"description_extract": "",
"page_link_extract": "",
"max_page_number": 3,
"next_page_type": "click_next_page",
"list_selector": "",
"list_detail_link_extract": "",
"list_title_extract": null,
"list_author_extract": null,
"list_publish_time_extract": null,
"list_image_extract": null,
"list_description_extract": null,
"list_file_extract": null,
"list_need_request_detail": true,
"list_url_path_rule": "relative",
"include": [],
"exclude": [],
"strategy": "same-hostname",
"download_media": false,
"use_chrome": true,
"body_html": false,
"is_screenshot": false,
"max_request_retries": 3,
"request_timeout": 30,
"max_downloads_limit": 10,
"max_concurrency": 4,
"available_memory_ratio": 75,
"proxyConfiguration": {
"proxyType": "NO_PROXY",
"countryCode": "cn"
}
},
"proxyConfig": {
"countryCode": "cn",
"proxyType": "RESIDENTIAL"
},
"scheduleCron": "27 4 16 */1 * ?",
"scheduleEnabled": true,
"runOptions": {
"buildTag": "latest",
"timeoutSecs": 600,
"memoryMbytes": 8192
}
}
}
最后修改时间: 8 天前