# Get crawl receipts

`GET /v1/crawls/{id}/receipt`

Just the receipts for a job or task, one per page.

Family: Crawl API

## Price

Unit: request

Free.

## Description

Use it to store proof of what was fetched without the page content. Free.

## Authentication

HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works.

## Request

No request body.

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | A `job_…` or `cr_…` id. |

### Example request

```bash
curl -X GET "https://api.dataforgaio.com/v1/crawls/TASK_ID/receipt" \
  -u "api:$DATAFORGAIO_API_KEY"
```

## Response

| Field | Type | Description |
|---|---|---|
| `status` | string | Always `ok`. |
| `job_id` | string | The job or task id. |
| `receipts_count` | integer | Number of receipts. |
| `receipts` | array<object> | One receipt per task. |
| `receipts.task_id` | string | Task id, `cr_…`. |
| `receipts.receipt_id` | string | Receipt id, `rc_…`. |
| `receipts.source_url` | string | The URL that was requested. |
| `receipts.fetched_at` | string\|null | When the page was fetched, ISO 8601 UTC. Null when it wasn't fetched. |
| `receipts.http_status` | integer\|null | HTTP status the site returned. |
| `receipts.content_sha256` | string\|null | SHA-256 of the content we returned, so you can prove what you saw. |
| `receipts.content_check` | string\|null | Whether the page is real content: `substantive`, or why not. one of `substantive`, `blocked`, `login_wall`, `error_page`, `empty_shell` |
| `receipts.content_check_reasons` | array<string> | Signals behind a non-substantive verdict. |
| `receipts.robots_txt` | string\|null | What the site's robots.txt says about this path for our crawler. one of `allowed`, `disallowed`, `not_found`, `unreachable` |
| `receipts.ai_use_signal` | string\|null | The site's declared stance on AI use, from robots.txt, meta tags, headers and its terms, for example `none_declared` or `opt_out`. |
| `receipts.ai_use_details` | object | Where each AI-use signal was found. |
| `receipts.engine` | string | The level you asked to start at. one of `standard`, `rendered` |
| `receipts.fetch_level` | string\|null | The level that delivered the page. Null until a page was delivered. one of `standard`, `rendered`, `protected` |
| `receipts.upgraded` | boolean | True when Auto-upgrade moved past the requested level. |
| `receipts.upgrade_reason` | string | Why it upgraded, for example `403 at standard`. Empty when it didn't. |
| `receipts.fetch_method` | string | Same as `fetch_level`, or `engine` when nothing was delivered. |
| `receipts.unit_cost_usd` | number\|null | What this page was charged, in USD. Null until the task has run. |
| `receipts.billed_usd` | number\|null | Same as `unit_cost_usd`. |
| `receipts.billed_pages` | integer\|null | 1 when the page was billed, 0 when it cost nothing. |
| `receipts.cost_breakdown` | object\|null | The charge split into the base page price and what an upgrade added. |
| `receipts.cost_breakdown.base` | number | Base page price, USD. |
| `receipts.cost_breakdown.upgrade` | number | Added by Auto-upgrade, USD. |
| `receipts.currency` | string | Always `USD`. |

### Example response

```json
{
  "status": "ok",
  "job_id": "job_8cbb5b5c8e155c82995945f93cdad009",
  "receipts_count": 2,
  "receipts": [
    {
      "task_id": "cr_744695e7dd8a5016bb2b2d314ea9ef81",
      "source_url": "https://summitrunning.example/trail-shoes",
      "fetched_at": "2026-12-03T10:42:18Z",
      "http_status": 200,
      "content_sha256": "9f2c4a1b7e0d3c58a6b1f4e2d7c9a0b3e5f8d1c4a7b0e3f6d9c2a5b8e1f4d7c0",
      "content_check": "substantive",
      "content_check_reasons": [],
      "robots_txt": "allowed",
      "ai_use_signal": "none_declared",
      "ai_use_details": {},
      "engine": "standard",
      "fetch_level": "standard",
      "upgraded": false,
      "upgrade_reason": "",
      "unit_cost_usd": 0.00011,
      "billed_usd": 0.00011,
      "currency": "USD",
      "receipt_id": "rc_744695e7dd8a5016bb2b2d314ea9ef81",
      "fetch_method": "standard",
      "billed_pages": 1,
      "cost_breakdown": {
        "base": 0.00011,
        "upgrade": 0
      }
    },
    {
      "task_id": "cr_1160aaf84d8d5ca6a414351f2a73b5ab",
      "source_url": "https://summitrunning.example/cart/checkout",
      "fetched_at": null,
      "http_status": null,
      "content_sha256": null,
      "content_check": null,
      "content_check_reasons": [],
      "robots_txt": "disallowed",
      "ai_use_signal": "none_declared",
      "ai_use_details": {},
      "engine": "standard",
      "fetch_level": null,
      "upgraded": false,
      "upgrade_reason": "",
      "unit_cost_usd": 0,
      "billed_usd": 0,
      "currency": "USD",
      "receipt_id": "rc_1160aaf84d8d5ca6a414351f2a73b5ab",
      "fetch_method": "standard",
      "billed_pages": 0,
      "cost_breakdown": {
        "base": 0,
        "upgrade": 0
      }
    }
  ]
}
```

## Errors

| Code | When |
|---|---|
| unauthorized | HTTP 401. Missing, malformed or revoked API key. |
| not_found | HTTP 404. No job, task or tracker with that id in your organization. |
| rate_limited | HTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor `Retry-After`. |

## Related

- [Crawl a page](https://dataforgaio.com/docs/api/crawls-create.md): Fetch one page now and get its content with a receipt: where and when it was fetched, what robots.txt and the site's AI-use signals said, a content hash and the cost.
- [Crawl a batch](https://dataforgaio.com/docs/api/crawls-batch.md): Queue up to 100 URLs in one request; poll the job or get it at your webhook.
- [Get a crawl](https://dataforgaio.com/docs/api/crawls-get.md): A batch job and its tasks, or one task, with content and receipts.
