List Scraper Studio jobs
curl --request GET \
--url https://api.brightdata.com/dca/collector/jobs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.brightdata.com/dca/collector/jobs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.brightdata.com/dca/collector/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.brightdata.com/dca/collector/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.brightdata.com/dca/collector/jobs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.brightdata.com/dca/collector/jobs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brightdata.com/dca/collector/jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"total": 3,
"offset": 0,
"limit": 50,
"data": [
{
"id": "j_example1234567890",
"status": "done",
"queued": "2026-07-02T12:21:04.121Z",
"started": "2026-07-02T12:21:04.387Z",
"finished": "2026-07-02T12:21:09.566Z",
"inputs": 1,
"page_loads": 1,
"total_pages": 1,
"failed_pages": 0,
"data_lines": 50,
"trigger": {
"type": "CP",
"user": "user@example.com",
"ip": "192.0.2.10"
},
"expired": "2026-07-19T00:00:00.000Z"
},
{
"id": "j_example0987654321",
"status": "done",
"queued": "2026-07-02T12:14:17.941Z",
"started": "2026-07-02T12:14:18.098Z",
"finished": "2026-07-02T12:14:25.122Z",
"inputs": 1,
"page_loads": 1,
"total_pages": 1,
"failed_pages": 0,
"data_lines": 50,
"trigger": {
"type": "CP",
"user": "user@example.com",
"ip": "192.0.2.10"
},
"expired": "2026-07-19T00:00:00.000Z"
}
]
}爬虫与作业管理
列出 Scraper Studio 作业
使用 GET /dca/collector/jobs 获取账户中的 Scraper Studio 作业。可按爬虫 ID 和日期范围过滤,并使用 offset 和 limit 分页。
GET
/
dca
/
collector
/
jobs
List Scraper Studio jobs
curl --request GET \
--url https://api.brightdata.com/dca/collector/jobs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.brightdata.com/dca/collector/jobs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.brightdata.com/dca/collector/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.brightdata.com/dca/collector/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.brightdata.com/dca/collector/jobs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.brightdata.com/dca/collector/jobs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brightdata.com/dca/collector/jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"total": 3,
"offset": 0,
"limit": 50,
"data": [
{
"id": "j_example1234567890",
"status": "done",
"queued": "2026-07-02T12:21:04.121Z",
"started": "2026-07-02T12:21:04.387Z",
"finished": "2026-07-02T12:21:09.566Z",
"inputs": 1,
"page_loads": 1,
"total_pages": 1,
"failed_pages": 0,
"data_lines": 50,
"trigger": {
"type": "CP",
"user": "user@example.com",
"ip": "192.0.2.10"
},
"expired": "2026-07-19T00:00:00.000Z"
},
{
"id": "j_example0987654321",
"status": "done",
"queued": "2026-07-02T12:14:17.941Z",
"started": "2026-07-02T12:14:18.098Z",
"finished": "2026-07-02T12:14:25.122Z",
"inputs": 1,
"page_loads": 1,
"total_pages": 1,
"failed_pages": 0,
"data_lines": 50,
"trigger": {
"type": "CP",
"user": "user@example.com",
"ip": "192.0.2.10"
},
"expired": "2026-07-19T00:00:00.000Z"
}
]
}使用
GET /dca/collector/jobs 获取您账户中的 Bright Data Scraper Studio 作业。可按爬虫 ID 和日期范围过滤列表,并使用 offset 和 limit 控制分页。
from_date 和 to_date 为必填项。使用较窄的日期范围可获得更快的响应并更便于分页。
将爬虫 ID 作为
collector 参数传入,仅返回该爬虫的作业。爬虫 ID 可从列出爬虫获取。过滤、分页和排序
- 按爬虫过滤。 将爬虫 ID 作为
collector参数传入,仅返回该爬虫的作业。ID 可从列出爬虫获取。 - 分页。 使用
offset和limit分页浏览作业。要获取下一页,请将offset增加上一页的limit值,例如offset=0&limit=100,然后offset=100&limit=100。limit必须介于 0 和 500 之间。 - 排序。 使用
sort_asc=1表示升序,sort_asc=-1表示降序。默认值为-1。
何时使用该端点
- 构建一个按日期范围列出某个爬虫近期作业的仪表盘
- 审计作业历史,并根据
inputs、data_lines和failed_pages计算成功率 - 查找作业 ID,然后通过作业数据获取每个作业的元数据
- 通过关注
failed_pages发现需要处理的爬虫
错误
| 状态 | 原因 | 修复方法 |
|---|---|---|
400 Bad Request | from_date 或 to_date 缺失或格式错误 | 以 YYYY-MM-DD 格式发送这两个日期 |
401 Unauthorized | 令牌缺失、格式错误或已吊销 | 从账户设置 → API 令牌重新复制 |
5xx | Bright Data API 临时错误 | 使用指数退避重试,例如 1s、2s、4s |
相关
授权
Use your Bright Data API Key as a Bearer token in the Authorization header.
How to authenticate:
- Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
- Include the API Key in the Authorization header of your requests
- Format:
Authorization: Bearer YOUR_API_KEY
Example:
Authorization: Bearer b5648e1096c6442f60a6c4bbbe73f8d2234d3d8324554bd6a7ec8f3f251f07df
Learn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication
查询参数
Start date for the jobs list, in YYYY-MM-DD format.
示例:
"2026-06-01"
End date for the jobs list, in YYYY-MM-DD format.
示例:
"2026-07-13"
Scraper ID used to filter jobs for a specific scraper. Get IDs from the List Scrapers endpoint.
示例:
"c_example1234567890"
Number of jobs to skip before returning results. Used for pagination.
Maximum number of jobs to return. Must be between 0 and 500.
必填范围:
0 <= x <= 500Sort direction. Use 1 for ascending order or -1 for descending order.
可用选项:
1, -1 此页面对您有帮助吗?