Agent
GET /v2/agent/{job_id}
Copy page
Read an agent run: its status, its answer and the pages it cites.
GET /
Authentication: your key as a bearer token.
Path parameters
| Field | Type | Required | Default |
|---|---|---|---|
job_id | string | Required |
Request
curl https://api.darkcrawl.dev/v2/agent/JOB_ID \
-H "Authorization: Bearer $DARKCRAWL_API_KEY"import os
import requests
resp = requests.get(
"https://api.darkcrawl.dev/v2/agent/JOB_ID",
headers={"Authorization": "Bearer " + os.environ["DARKCRAWL_API_KEY"]},
timeout=330,
)
print(resp.json())const resp = await fetch("https://api.darkcrawl.dev/v2/agent/JOB_ID", {
headers: {
Authorization: "Bearer " + process.env.DARKCRAWL_API_KEY,
},
signal: AbortSignal.timeout(330000),
});
console.log(await resp.json());Response
Status 200.
{
"success": true,
"status": "completed",
"data": {
"answer": "The mirror list moved to the forum thread on the second page [1]."
},
"expiresAt": "2026-12-26T10:00:00+00:00",
"creditsUsed": 0,
"sources": [
{
"n": 1,
"url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/forum/thread/1",
"scrapeId": "01K0EXAMPLECAPTURE0000000B",
"fetchedAt": "2026-11-26T10:00:00+00:00",
"sha256Markdown": "9f2c000000000000000000000000000000000000000000000000000000000000",
"title": "Mirror list"
}
],
"pagesRead": 2,
"steps": 3,
"readWithAccount": false,
"threadId": "01K0EXAMPLETHREAD00000000A",
"threadTurn": 1
}Errors
| Code | Status |
|---|---|
NOT_FOUND | 404 |
BLOCKLIST_UNAVAILABLE | 503 |
RATE_LIMITED | 429 |
What each code means, and what to do about it: Errors.
Notes
statusisprocessing,completedorfailed. A completed run hasdata:{"answer": ...}, or your ownschema's object when you sent one. A failed run haserror, and may havepartial.- Each
[n]in the answer is thesourcesentry with thatn, andscrapeIdis its stored capture.pagesReadandstepscount what the run did. The reply here is trimmed:model, which names the model that answered, is left out. - Reading the status of your own job does not count as a request. It has its own per-minute limit, set out under Rate limits.
- An unknown or expired job, and another company's job, answer
404 NOT_FOUND.