Get a crawl

A batch job and its tasks, or one task, with content and receipts.
GET/v1/crawls/{id}
Open as Markdown
On this page

Price

Pricerequest

Free. Pages were billed when they were fetched.

Description

{id} is a batch job_… id or a task cr_… id. A single task that robots.txt blocked responds 451; a batch always responds 200 and reports each task's state. Free.

Request

Endpoint
GET https://api.dataforgaio.com/v1/crawls/{id}
Authentication
HTTP Basic auth: any login, with your dg_ API key as the password. A Bearer header with the key also works. Create a key.
Body
No request body

Fields

  • idstringrequired
    A job_… or cr_… id.
    Examplejob_4c1d8e2f9a7b4e3c8d5f6a7b8c9d0e1f
  • include_receiptbooleanoptional
    Include receipts. Defaults to the batch's setting.
    Exampletrue

Response

Shape: Native. Expand a field to see its children; every field has a link anchor.

  • statusstring
    Always ok for a 2xx response.
    Exampleok
  • job_idstring
    job_… for a batch, cr_… for a single task.
    Examplejob_8cbb5b5c8e155c82995945f93cdad009
  • completed once every task finished, else queued or processing.
    One ofqueuedprocessingcompletedExamplecompleted
  • costnumber
    Sum of the task costs, USD.
    Example0.00011
  • Number of tasks.
    Example2
  • Tasks that failed or were blocked.
    Example1
  • tasksarray<object>
    The tasks.
    Show 39 child fields
    • idstring
      Task id, cr_…. Use it with GET /v1/crawls/{id}.
      Examplecr_744695e7dd8a5016bb2b2d314ea9ef81
    • statusstring
      Task state.
      One ofcompletedfailedblockedqueuedprocessingExamplecompleted
    • HTTP-style code for this task: 200 completed, 451 blocked by robots.txt, 422 invalid target or over max_cost, 502 upstream error, 503 level unavailable, 202 queued or processing.
      Example200
    • Plain-language status. For a completed but non-substantive page, says why.
      ExampleOk.
    • costnumber
      What this task was charged, USD.
      Example0.00011
    • fetch_levelstring|null
      The level that delivered the page. Null until a page was delivered.
      One ofstandardrenderedprotectedExamplestandard
    • upgradedboolean
      True when Auto-upgrade moved past the requested level.
      Examplefalse
    • Why it upgraded, for example 403 at standard. Empty when it didn't.
    • contentobject
      The page. Present when status is completed.
      Show 4 child fields
      • titlestring
        Page title.
        ExampleTrail running shoes
      • markdownstring
        Page as Markdown, for output_format: markdown.
        Example# Trail running shoes Every trail shoe we stock comes with free gait analysis and 60-day returns.
      • htmlstring
        Page HTML, for output_format: html.
      • jsonobject
        Title, text and metadata, for output_format: json.
    • errorobject
      Present when status is failed or blocked.
      Show 2 child fields
      • Same as status_code.
        Example451
      • codestring
        Error code, for example blocked_by_policy or upstream_error.
        Exampleblocked_by_policy
    • receiptobject
      Provenance and cost. Present unless include_receipt is false.
      Show 22 child fields
      • Receipt id, rc_….
        Examplerc_744695e7dd8a5016bb2b2d314ea9ef81
      • The URL that was requested.
        Examplehttps://summitrunning.example/trail-shoes
      • fetched_atstring|null
        When the page was fetched, ISO 8601 UTC. Null when it wasn't fetched.
        Example2026-12-03T10:42:18Z
      • http_statusinteger|null
        HTTP status the site returned.
        Example200
      • content_sha256string|null
        SHA-256 of the content we returned, so you can prove what you saw.
        Example9f2c4a1b7e0d3c58a6b1f4e2d7c9a0b3e5f8d1c4a7b0e3f6d9c2a5b8e1f4d7c0
      • content_checkstring|null
        Whether the page is real content: substantive, or why not.
        One ofsubstantiveblockedlogin_wallerror_pageempty_shellExamplesubstantive
      • Signals behind a non-substantive verdict.
        Example[]
      • robots_txtstring|null
        What the site's robots.txt says about this path for our crawler.
        One ofalloweddisallowednot_foundunreachableExampleallowed
      • ai_use_signalstring|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.
        Examplenone_declared
      • Where each AI-use signal was found.
        Example{}
      • enginestring
        The level you asked to start at.
        One ofstandardrenderedExamplestandard
      • fetch_levelstring|null
        The level that delivered the page. Null until a page was delivered.
        One ofstandardrenderedprotectedExamplestandard
      • upgradedboolean
        True when Auto-upgrade moved past the requested level.
        Examplefalse
      • Why it upgraded, for example 403 at standard. Empty when it didn't.
      • Same as fetch_level, or engine when nothing was delivered.
        Examplestandard
      • unit_cost_usdnumber|null
        What this page was charged, in USD. Null until the task has run.
        Example0.00011
      • billed_usdnumber|null
        Same as unit_cost_usd.
        Example0.00011
      • billed_pagesinteger|null
        1 when the page was billed, 0 when it cost nothing.
        Example1
      • cost_breakdownobject|null
        The charge split into the base page price and what an upgrade added.
        Show 2 child fields
        • basenumber
          Base page price, USD.
          Example0.00011
        • upgradenumber
          Added by Auto-upgrade, USD.
          Example0
      • currencystring
        Always USD.
        ExampleUSD

Errors

CodeWhen
unauthorizedHTTP 401. Missing, malformed or revoked API key.
not_foundHTTP 404. No job, task or tracker with that id in your organization.
rate_limitedHTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor Retry-After.
Tasks that end in an error are not billed. All status codes