Skip to main content
GET
/
dca
/
jobs
/
{job_id}
/
hp_errors
Get errors for an job
curl --request GET \
  --url https://api.brightdata.com/dca/jobs/{job_id}/hp_errors \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.brightdata.com/dca/jobs/{job_id}/hp_errors"

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/jobs/{job_id}/hp_errors', 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/jobs/{job_id}/hp_errors",
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/jobs/{job_id}/hp_errors"

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/jobs/{job_id}/hp_errors")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.brightdata.com/dca/jobs/{job_id}/hp_errors")

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
{
  "errors": [
    {
      "url": "www.youtube.com/watch?v=GBaFv4O5H7g",
      "error": "aborted",
      "consumer": "dca-hp-so-szakh"
    },
    {
      "url": "www.youtube.com/watch?v=dVSRDWxlWBg",
      "error": "aborted",
      "consumer": "dca-hp-so-sz5zu"
    },
    {
      "url": "www.youtube.com/watch?v=1YrOL8ZqR4Q",
      "error": "aborted",
      "consumer": "dca-hp-so-sz6ga"
    }
  ]
}
"Invalid job ID supplied"
"Job not found"
"Internal server error"
Retrieve per-input error details for a Bright Data Scraper Studio batch job. Use this endpoint to identify which inputs in a batch failed, what the error code was and how to remediate.
Per the OpenAPI spec, the job_id for this endpoint is the one returned by the /dca/trigger_hp (high-priority) endpoint. Jobs created via the regular /dca/trigger endpoint may use a different error-retrieval path. If the response is empty for a regular trigger job, contact Bright Data support to confirm the right endpoint for your workflow.

Request

curl "https://api.brightdata.com/dca/jobs/$JOB_ID/hp_errors" \
  -H "Authorization: Bearer $BRIGHT_DATA_API_TOKEN"
response = requests.get(
    f"https://api.brightdata.com/dca/jobs/{job_id}/hp_errors",
    headers={"Authorization": f"Bearer {API_TOKEN}"},
)
errors = response.json()
const response = await fetch(
  `https://api.brightdata.com/dca/jobs/${jobId}/hp_errors`,
  { headers: { Authorization: `Bearer ${process.env.BRIGHT_DATA_API_TOKEN}` } }
);
const errors = await response.json();

Query parameters

NameTypeRequiredDescription
skip_normalizebooleanNoWhen true, returns full non-normalized error details. Default returns normalized errors.

Errors

StatusCauseFix
400 Bad RequestInvalid job ID formatVerify the job ID matches the j_ prefix returned by the trigger endpoint
404 Not FoundJob does not exist or your account does not have accessConfirm the job ID is current and from a job you triggered
500Internal server errorRetry with exponential backoff, for example 1s, 2s, 4s

When to use this endpoint

  • Build a re-trigger workflow that retries only the failed inputs from a previous batch
  • Surface user-actionable error messages in a UI or admin console
  • Track failure trends over time (which collectors fail most often, which input shapes cause 422s)

Authorizations

Authorization
string
header
required

Use your Bright Data API Key as a Bearer token in the Authorization header.

How to authenticate:

  1. Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
  2. Include the API Key in the Authorization header of your requests
  3. 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

Path Parameters

job_id
string
required

Job ID returned from the /trigger_hp endpoint

Query Parameters

skip_normalize
boolean

Return full (non-normalized) error details

Response

List of errors for the specified job

errors
object[]