集蜂云平台API
  1. 任务
集蜂云平台API
  • 采集器
    • 运行采集器
      POST
    • 获取运行日志
      GET
    • 运行列表
      GET
  • 任务
    • 创建一个定时任务
      POST
    • 更新调度时间
      PUT
    • 任务调度启停
      PUT
    • 获取任务列表
      GET
    • 运行任务
      POST
    • 更新任务
      PUT
    • 获取任务详情
      GET
  • 数据
    • 获取数据列表
      GET
    • 获取采集的数据
      GET
    • 下载键值对文件
      GET
  • 数据接口
    • 获取抖音视频详情
      POST
    • 获取XHS笔记详情
      POST
    • 获取B站视频评论
      POST
  1. 任务

获取任务详情

GET
/v1/tasks/{taskId}

请求参数

Path 参数
taskId
string 
taskId
必需
Header 参数
beeize-api-token
string 
可选
token,可以在平台设置中查看

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/v1/tasks/' \
--header 'beeize-api-token;'

返回响应

🟢200成功
application/json
Body
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
        }
    }
}
修改于 2025-01-10 10:01:25
上一页
更新任务
下一页
获取数据列表
Built with