All posts
Provenance5 min read

What a crawl receipt should contain

Success-only billing is now common for crawl APIs. A receipt is what lets you check it. Here is the standard we hold our own receipts to, field by field, and why each field exists.

DataForGAIO

Many crawl and web data APIs now say they bill only for successful requests. That's a good shift for the industry. It also raises a question every buyer should ask: successful by whose definition, and how would I check?

A 200 status isn't the answer. A captcha page returns 200. So does a "sign in to continue" screen, a soft 404 that says "this product doesn't exist", and the empty shell of a JavaScript app. If "success" means "the server responded", those pages get billed, and they end up in datasets.

We think every fetch should come back with a receipt: a structured record, attached to the result, that says what was fetched, whether it's real content, what the site declared about AI use, and exactly what it cost. This post sets out what we think that receipt should contain, and holds our own receipts to it.

The principles

A receipt is useful if it meets four tests:

  1. It travels with the data. It's attached to the result, in the same response, not in a dashboard log you have to join later.
  2. It's deterministic. The same input gives the same verdict every time, so it can serve as billing evidence.
  3. It separates evidence from conclusions. It shows the reasons behind each verdict, not just the verdict.
  4. It says when it doesn't know. A failed lookup is reported as unknown, never as a clean result.

The fields

Here is a complete DataForGAIO crawl receipt:

{
  "receipt_id": "rc_8a1f3e2d4c5b6a7980f1e2d3c4b5a697",
  "source_url": "https://developer.mozilla.org/en-US/docs/Web",
  "fetched_at": "2026-11-02T14:03:27Z",
  "http_status": 200,
  "content_sha256": "9c1e4b...7d20",
  "content_check": "substantive",
  "content_check_reasons": [],
  "robots_txt": "allowed",
  "ai_use_signal": "none_declared",
  "ai_use_details": {
    "robots_txt": { "status": "none_declared", "found": true, "disallowed_agents": [] },
    "tdmrep": { "status": "none_declared", "well_known": { "found": false } },
    "ai_txt": { "status": "none_declared", "found": false },
    "robots_meta": { "status": "none_declared", "directives": [] }
  },
  "fetch_level": "standard",
  "upgraded": false,
  "upgrade_reason": "",
  "unit_cost_usd": 0.00011,
  "billed_usd": 0.00011,
  "billed_pages": 1,
  "currency": "USD"
}

Provenance

  • source_url is the URL that was requested.
  • fetched_at is when the fetch happened, in UTC. Site rules change, and a policy decision should rest on what the site said at the time.
  • http_status is the origin's status code.
  • content_sha256 is a hash of the content returned. Anyone holding the text can later prove it's what was fetched, and spot when a page has changed between crawls.

These four answer "where did this row come from?" They're the minimum for a training dataset you expect to explain later.

Content check

  • content_check is one of substantive, blocked, login_wall, error_page, or empty_shell.
  • content_check_reasons is a list of machine-readable codes behind the verdict, for example status:429, marker:cloudflare_challenge, or visible_text_chars:84.

Our check is deterministic heuristics only: HTTP status, known challenge-page markers, title and heading patterns, password fields, and how much visible text remains once scripts, styles, navigation, and footers are stripped. No model call, no randomness. That's a deliberate trade. A model might catch a few more edge cases, but a verdict that can change between runs can't be billing evidence.

The reasons matter as much as the verdict. If you disagree with an empty_shell call, visible_text_chars:84 tells you exactly why it was made.

Site rules

  • robots_txt is what the site's robots.txt said for this path under RFC 9309: allowed, disallowed, not_found, or unchecked. It's recorded, not enforced, so the decision about a disallowed page stays with you and is visible in the data.
  • ai_use_signal combines four AI-use sources into one value: reserved, partially_reserved, none_declared, or unknown.
  • ai_use_details keeps each source separately: robots.txt rules for AI crawlers, TDMRep (header, meta, and /.well-known/tdmrep.json), ai.txt, and noai or noimageai directives.

The combined value is the strictest one observed. If any source couldn't be checked and none reserves use, the answer is unknown. Reporting none_declared there would be a guess, and receipts don't guess.

These are evidence for review, not a legal determination or a license. We explain each source in which AI-use signal does what.

Cost

  • fetch_level says how the page was fetched: standard, rendered, or protected. upgraded and upgrade_reason say whether it needed more than the level its price includes, and why.
  • unit_cost_usd and billed_usd give the charge in dollars, at the published price for that level.
  • billed_pages is 1 or 0.
  • currency is always USD.

A receipt in dollars rather than credits means the number on the receipt is the number on the invoice. There's no multiplier table to consult.

How billing ties to the content check

This is where the receipt stops being metadata and becomes accountability. You pay only when a level returns real content, and only for that level:

content_checkBilled
substantive at standard$0.00011
substantive at protected$0.003
blocked or empty_shell at every allowed level$0
Upstream failure$0

Because the verdict and its reasons sit next to billed_usd on every receipt, you can audit your own bill. Sum billed_usd across a job and you get its cost. Filter to billed_pages: 1 and every row should be substantive. Spot-check a few upgraded rows and upgrade_reason tells you what the lower level ran into.

That's the difference between "we bill only for success" as a promise and as something you can verify.

Getting receipts

Every response from POST /v1/crawls and every task in a batch includes the receipt by default. Pass include_receipt: false if you don't want it. To fetch only the receipts for a job, call:

curl https://api.dataforgaio.com/v1/crawls/job_5f0c2a9e1b7d4c3a8e6f1d2b3c4a5e6f/receipt \
  -H "Authorization: Bearer $DATAFORGAIO_API_KEY"
{ "status": "ok", "job_id": "job_5f0c...", "receipts_count": 100, "receipts": [ { "task_id": "cr_...", "receipt_id": "rc_...", "...": "..." } ] }

SERP requests get receipts too, with the same provenance and cost fields. content_check, robots_txt, and ai_use_signal are null there, because those describe a fetched page and its site's rules.

What we'd like to see become normal

We'd like every crawl API to return something like this, in its own format with its own field names. The exact schema matters less than the properties: provenance on every row, a deterministic content verdict with reasons, AI-use signals reported per source, an honest unknown, and a price in real currency next to the verdict that justified it.

We've written our receipt up in full on the pipeline page. If you build crawlers, datasets, or AI search tools and think a field is missing, tell us. We'll publish changes to the standard with dates.

receiptsprovenancebillingcrawl apistandards

Open a receipt for a page you choose.

Start free, crawl a URL, and check exactly what was billed and why.