Skip to content

Agent

GET /v2/agent/{job_id}

Copy page

Read an agent run: its status, its answer and the pages it cites.

GET /v2/agent/{job_id}

Authentication: your key as a bearer token.

Path parameters

FieldTypeRequiredDefault
job_idstringRequired

Request

bash
curl https://api.darkcrawl.dev/v2/agent/JOB_ID \
  -H "Authorization: Bearer $DARKCRAWL_API_KEY"

Response

Status 200.

Response
{
  "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

CodeStatus
NOT_FOUND404
BLOCKLIST_UNAVAILABLE503
RATE_LIMITED429

What each code means, and what to do about it: Errors.

Notes

  • status is processing, completed or failed. A completed run has data: {"answer": ...}, or your own schema's object when you sent one. A failed run has error, and may have partial.
  • Each [n] in the answer is the sources entry with that n, and scrapeId is its stored capture. pagesRead and steps count 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.