# GET /v2/agent/{job_id}

> 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](https://darkcrawl.dev/docs/api-reference/authentication/).

## Path parameters

| Field    | Type     | Required | Default |
| -------- | -------- | -------- | ------- |
| `job_id` | `string` | Required |         |

## Request

**curl**

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

**Python**

```python
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())
```

**Node**

```javascript
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`.

```json
{
  "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](https://darkcrawl.dev/docs/api-reference/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](https://darkcrawl.dev/docs/api-reference/rate-limits/).
- An unknown or expired job, and another company's job, answer `404 NOT_FOUND`.
