Crawl a page
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.
POST
/v1/crawlsOn this page
Price
Pricepage
- Live
- $0.00011
- Standard fetch
- $0.00011
- Rendered fetch
- $0.0011
- Protected fetch
- $0.003
Billed at the level that delivered the page.
Description
Runs inline and returns one task. The HTTP status follows the task: 200 completed (also for a fetched page that isn't real content, billed $0), 451 blocked by robots.txt, 502 when the site couldn't be fetched. A body with targets instead of url is treated as POST /v1/crawls/batch.
Billing. One page at the price of the fetch level that delivered it (Standard $0.00011, Rendered $0.0011, Protected $0.003). Blocked, failed and non-substantive pages cost $0.
Request
- Endpoint
- POST https://api.dataforgaio.com/v1/crawls
- Authentication
- HTTP Basic auth: any login, with your
dg_API key as the password. ABearerheader with the key also works. Create a key. - Body
- JSON object
Fields
- The page to fetch: an absolute http(s) URL on a public host.Max
2000Examplehttps://summitrunning.example/trail-shoes - Lets a blocked page move to a higher fetch level, billed at the level that delivered it.
falsestops at the requested level and returns the failure at $0.DefaulttrueExampletrue - The highest fetch level Auto-upgrade may use.Default
protectedOne ofstandardrenderedprotectedExamplerendered - The most one page may cost, in USD, up to 6 decimal places. The wallet check reserves this instead of the worst-case price, and a fetch never upgrades past it.Min
0Example0.002 - What
contentholds: Markdown text, the page HTML, or a JSON object of the page's title, text and metadata.DefaultmarkdownOne ofmarkdownhtmljsonExamplemarkdown - The level to start at.
renderedruns JavaScript from the first fetch and needsmax_levelrendered or protected.browseris accepted as an older name forrendered.DefaultstandardOne ofstandardrenderedExamplestandard trueis the same asengine: rendered.Defaultfalse- Include the receipt on each task.Default
trueExampletrue - A project in your organization to file this under. Leave it out for the default project.Example
5b2f8c1e-3d4a-4e6f-9a0b-1c2d3e4f5a6b
Response
Shape: Native. Expand a field to see its children; every field has a link anchor.
- statusstringAlways
okfor a 2xx response.Exampleok - costnumberSum of the task costs, USD.Example
0.00011 - tasks_countintegerNumber of tasks.Example
1 - tasks_errorintegerTasks that failed or were blocked.Example
0 - tasksarray<object>The tasks.
Show 39 child fieldsHide child fields
- idstringTask id,
cr_…. Use it with GET /v1/crawls/{id}.Examplecr_8cbb5b5c8e155c82995945f93cdad009 - statusstringTask state.One of
completedfailedblockedqueuedprocessingExamplecompleted - status_codeintegerHTTP-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 - status_messagestringPlain-language status. For a completed but non-substantive page, says why.Example
Ok. - costnumberWhat this task was charged, USD.Example
0.00011 - fetch_levelstring|nullThe level that delivered the page. Null until a page was delivered.One of
standardrenderedprotectedExamplestandard - upgradedbooleanTrue when Auto-upgrade moved past the requested level.Example
false - upgrade_reasonstringWhy it upgraded, for example
403 at standard. Empty when it didn't. - contentobjectThe page. Present when
statusiscompleted.Show 4 child fieldsHide child fields
- titlestringPage title.Example
Trail running shoes - markdownstringPage as Markdown, for
output_format: markdown.Example# Trail running shoes Every trail shoe we stock comes with free gait analysis and 60-day returns. - htmlstringPage HTML, for
output_format: html. - jsonobjectTitle, text and metadata, for
output_format: json.
- errorobjectPresent when
statusisfailedorblocked.Show 2 child fieldsHide child fields
- http_statusintegerSame as
status_code. - codestringError code, for example
blocked_by_policyorupstream_error.
- receiptobjectProvenance and cost. Present unless
include_receiptis false.Show 22 child fieldsHide child fields
- receipt_idstringReceipt id,
rc_….Examplerc_8cbb5b5c8e155c82995945f93cdad009 - source_urlstringThe URL that was requested.Example
https://summitrunning.example/trail-shoes - fetched_atstring|nullWhen the page was fetched, ISO 8601 UTC. Null when it wasn't fetched.Example
2026-12-03T10:42:18Z - http_statusinteger|nullHTTP status the site returned.Example
200 - content_sha256string|nullSHA-256 of the content we returned, so you can prove what you saw.Example
9f2c4a1b7e0d3c58a6b1f4e2d7c9a0b3e5f8d1c4a7b0e3f6d9c2a5b8e1f4d7c0 - content_checkstring|nullWhether the page is real content:
substantive, or why not.One ofsubstantiveblockedlogin_wallerror_pageempty_shellExamplesubstantive - content_check_reasonsarray<string>Signals behind a non-substantive verdict.Example
[] - robots_txtstring|nullWhat the site's robots.txt says about this path for our crawler.One of
alloweddisallowednot_foundunreachableExampleallowed - ai_use_signalstring|nullThe site's declared stance on AI use, from robots.txt, meta tags, headers and its terms, for example
none_declaredoropt_out.Examplenone_declared - ai_use_detailsobjectWhere each AI-use signal was found.Example
{} - enginestringThe level you asked to start at.One of
standardrenderedExamplestandard - fetch_levelstring|nullThe level that delivered the page. Null until a page was delivered.One of
standardrenderedprotectedExamplestandard - upgradedbooleanTrue when Auto-upgrade moved past the requested level.Example
false - upgrade_reasonstringWhy it upgraded, for example
403 at standard. Empty when it didn't. - fetch_methodstringSame as
fetch_level, orenginewhen nothing was delivered.Examplestandard - unit_cost_usdnumber|nullWhat this page was charged, in USD. Null until the task has run.Example
0.00011 - billed_usdnumber|nullSame as
unit_cost_usd.Example0.00011 - billed_pagesinteger|null1 when the page was billed, 0 when it cost nothing.Example
1 - cost_breakdownobject|nullThe charge split into the base page price and what an upgrade added.
- currencystringAlways
USD.ExampleUSD
Errors
| Code | When |
|---|---|
| invalid_request | HTTP 400. The body failed validation. error.details maps each field to its problem. |
| unauthorized | HTTP 401. Missing, malformed or revoked API key. |
| balance_required | HTTP 402. Your wallet balance is below the most this request could cost. Nothing ran. |
| invalid_target | HTTP 422. A URL is not an absolute public http(s) URL. Nothing was fetched. |
| rate_limited | HTTP 429. Too many requests, or too many requests in flight for your organization. Retry-After says when to retry. |
| upstream_error | HTTP 502. The target or search timed out or returned an error we couldn't recover from. You weren't billed. |
Tasks that end in an error are not billed. All status codes