Content Parsing: Live
/v1/pages/content_parsing/liveOn this page
Price
- Live
- $0.00011
- Standard fetch
- $0.00011
- Rendered fetch
- $0.0011
- Protected fetch
- $0.003
usd.live is the Standard-level price. by_level is the price at the level that returned the page.
Description
Send up to 100 tasks, one URL each. Scripts, forms and navigation are dropped; the rest is split into the site header, the main content (one topic per heading), sidebar topics and the footer. Link-heavy blocks go to secondary_content.
Ratings and offers come from the page's JSON-LD; phone numbers and emails from tel: and mailto: links. Send markdown_view: true to also get the main content as Markdown.
Billing. Billed by the fetch level that returned the page: Standard, Rendered or Protected (see the price table). A page that no allowed level could fetch, or that answered 5xx, costs $0 and comes back as 40102 with the reason. Redirect and 4xx answers are delivered pages and are billed.
Accepted and ignored: load_resources, check_spell, validate_micromarkup, custom_user_agent, accept_language, the browser_* fields, ip_pool_for_scan, switch_pool, store_raw_html, disable_cookie_popup, enable_xhr, return_despite_timeout and checks_threshold.
Request
- Endpoint
- POST https://api.dataforgaio.com/v1/pages/content_parsing/live
- 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 array of task objects, up to 100 tasks per requestMode: Live
Fields (per task)
- Absolute http or https URL of the page, up to 2,000 characters.Max
2000Examplehttps://summitrunning.example/trail-shoes - Render the page in a browser before reading it. The fetch starts at the Rendered level, so
max_levelmust berenderedorprotected. Also accepts the string"true".DefaultfalseExamplefalse - Same as
enable_javascript.DefaultfalseExamplefalse - Not supported. A task that sends it fails with 40501 and isn't billed.
- Also return the page's main content as Markdown in
page_as_markdown.DefaultfalseExampletrue - Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it.
falsestops at the Standard level and returns the failure at $0. Also accepts"true","false",1and0.DefaulttrueExampletrue - The highest fetch level Auto-upgrade may use.
renderednever uses the Protected level.DefaultprotectedOne ofstandardrenderedprotectedExamplerendered - The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. Levels whose price is above it are skipped; if even the cheapest allowed level costs more, the task fails with 40501 at $0.Min
0Example0.002 - Accept a cached result up to this many seconds old, 0 to 86,400.
0always fetches fresh. Pages are always fetched fresh: this field is accepted and has no effect here.Min0Max86400Example3600
Response
Shape: v3 task envelope. Expand a field to see its children; every field has a link anchor.
- versionstringResponse format version, for example
0.1.20261203.Example0.1.20261203 - status_codeintegerStatus of the request as a whole. 20000 when it was accepted; each task has its own
status_code.Example20000 - status_messagestringPlain-language request status.Example
Ok. - timestringTime the whole request took, for example
1.8410 sec.Example0.4210 sec. - costnumberSum of every task's
cost, in USD.Example0.0011 - tasks_countintegerNumber of tasks in
tasks.Example1 - tasks_errorintegerTasks whose
status_codeis 40000 or higher.Example0 - tasksarray<object>One entry per task you sent, in the order you sent them.
Show 191 child fieldsHide child fields
- idstringTask id (a UUID). For task_post, use it with task_get.Example
8cbb5b5c-8e15-5c82-9959-45f93cdad009 - status_codeintegerOutcome of this task. 20000 means data came back; 20100 means queued. See the status codes table.Example
20000 - status_messagestringPlain-language status. For 40501 it names the field that failed.Example
Ok. - timestringTime this task took on our side, for example
1.8203 sec.Example0.4210 sec. - costnumberWhat this task was charged, in USD. 0 when it returned no data.Example
0.0011 - result_countintegerNumber of entries in
result.Example1 - patharray<string>The route this task ran on, split into segments, starting with
v1.Example["v1","pages","content_parsing"] - dataobjectThe task you sent, echoed back. Utility routes echo their query parameters.Example
{"url":"https://summitrunning.example/trail-shoes","markdown_view":true} - resultarray<object>|nullThe data for this task. Null when the task returned an error.
Show 177 child fieldsHide child fields
- crawl_progressstringAlways
finished: the page is fetched within the call.Examplefinished - crawl_statusobjectCounters for the one-page crawl.
Show 3 child fieldsHide child fields
- max_crawl_pagesintegerAlways 1.Example
1 - pages_in_queueintegerAlways 0.Example
0 - pages_crawledintegerAlways 1.Example
1
- items_countintegerNumber of entries in
items. Always 1.Example1 - itemsarray<object>The parsed page.
Show 170 child fieldsHide child fields
- typestringAlways
content_parsing_element.Examplecontent_parsing_element - fetch_timestringWhen we fetched the page,
YYYY-MM-DD HH:MM:SS +00:00.Example2026-12-03 10:42:18 +00:00 - status_codeintegerHTTP status the page answered with.Example
200 - page_contentobject|nullThe page split into parts. Null when the page didn't answer 2xx.
Show 165 child fieldsHide child fields
- headerobject|nullThe site header (outside the main content).
Show 34 child fieldsHide child fields
- primary_contentarray<object>|nullText blocks: paragraphs, list items, quotes.
Show 5 child fieldsHide child fields
- textstringText of the block.Example
Home Stores - urlnullAlways null.
- urlsarray<object>|nullLinks inside the block.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- secondary_contentarray<object>|nullLink-heavy blocks, such as menus and link lists.
Show 5 child fieldsHide child fields
- textstringText of the block.Example
Home Stores - urlnullAlways null.
- urlsarray<object>|nullLinks inside the block.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- table_contentarray<object>|nullTables.
Show 21 child fieldsHide child fields
- headerarray<object>|nullHeader rows (
<thead>, or a first row of<th>cells).Show 6 child fieldsHide child fields
- row_cellsarray<object>Cells in the row.
Show 5 child fieldsHide child fields
- textstring|nullCell text.Example
Model - urlsarray<object>|nullLinks in the cell.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- is_headerbooleanTrue for
<th>cells.Exampletrue
- bodyarray<object>|nullBody rows.
Show 6 child fieldsHide child fields
- row_cellsarray<object>Cells in the row.
Show 5 child fieldsHide child fields
- textstring|nullCell text.Example
Model - urlsarray<object>|nullLinks in the cell.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- is_headerbooleanTrue for
<th>cells.Exampletrue
- main_topicarray<object>|nullThe main content, one topic per heading.
Show 39 child fieldsHide child fields
- h_titlestring|nullThe heading that starts this topic. Null for text before the first heading.Example
Trail running shoes - main_titlestring|nullThe page's
<h1>, or its<title>when there's no h1.ExampleTrail running shoes - languagestring|nullThe
<html lang>value.Exampleen - levelinteger|nullHeading level, 1 to 6.Example
1 - primary_contentarray<object>|nullText blocks: paragraphs, list items, quotes.
Show 5 child fieldsHide child fields
- textstringText of the block.Example
Home Stores - urlnullAlways null.
- urlsarray<object>|nullLinks inside the block.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- secondary_contentarray<object>|nullLink-heavy blocks, such as menus and link lists.
Show 5 child fieldsHide child fields
- textstringText of the block.Example
Home Stores - urlnullAlways null.
- urlsarray<object>|nullLinks inside the block.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- table_contentarray<object>|nullTables.
Show 21 child fieldsHide child fields
- headerarray<object>|nullHeader rows (
<thead>, or a first row of<th>cells).Show 6 child fieldsHide child fields
- row_cellsarray<object>Cells in the row.
Show 5 child fieldsHide child fields
- textstring|nullCell text.Example
Model - urlsarray<object>|nullLinks in the cell.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- is_headerbooleanTrue for
<th>cells.Exampletrue
- bodyarray<object>|nullBody rows.
Show 6 child fieldsHide child fields
- row_cellsarray<object>Cells in the row.
Show 5 child fieldsHide child fields
- textstring|nullCell text.Example
Model - urlsarray<object>|nullLinks in the cell.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- is_headerbooleanTrue for
<th>cells.Exampletrue
- secondary_topicarray<object>|nullSidebar (
<aside>) content, one topic per heading.Show 39 child fieldsHide child fields
- h_titlestring|nullThe heading that starts this topic. Null for text before the first heading.Example
Trail running shoes - main_titlestring|nullThe page's
<h1>, or its<title>when there's no h1.ExampleTrail running shoes - languagestring|nullThe
<html lang>value.Exampleen - levelinteger|nullHeading level, 1 to 6.Example
1 - primary_contentarray<object>|nullText blocks: paragraphs, list items, quotes.
Show 5 child fieldsHide child fields
- textstringText of the block.Example
Home Stores - urlnullAlways null.
- urlsarray<object>|nullLinks inside the block.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- secondary_contentarray<object>|nullLink-heavy blocks, such as menus and link lists.
Show 5 child fieldsHide child fields
- textstringText of the block.Example
Home Stores - urlnullAlways null.
- urlsarray<object>|nullLinks inside the block.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- table_contentarray<object>|nullTables.
Show 21 child fieldsHide child fields
- headerarray<object>|nullHeader rows (
<thead>, or a first row of<th>cells).Show 6 child fieldsHide child fields
- row_cellsarray<object>Cells in the row.
Show 5 child fieldsHide child fields
- textstring|nullCell text.Example
Model - urlsarray<object>|nullLinks in the cell.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- is_headerbooleanTrue for
<th>cells.Exampletrue
- bodyarray<object>|nullBody rows.
Show 6 child fieldsHide child fields
- row_cellsarray<object>Cells in the row.
Show 5 child fieldsHide child fields
- textstring|nullCell text.Example
Model - urlsarray<object>|nullLinks in the cell.
Show 2 child fieldsHide child fields
- urlstringAbsolute link URL.Example
https://summitrunning.example/ - anchor_textstring|nullLink text.Example
Home
- is_headerbooleanTrue for
<th>cells.Exampletrue
- ratingsarray<object>|nullAggregate ratings from JSON-LD.
Show 5 child fieldsHide child fields
- namestring|nullName of the rated thing.Example
Ridge Runner 4 - rating_valuenumber|nullAverage rating.Example
4.6 - max_rating_valuenumberBest possible rating (default 5).Example
5 - rating_countinteger|nullNumber of ratings or reviews.Example
128 - relative_ratingnumber|null
rating_value / max_rating_value.Example0.92
- offersarray<object>|nullOffers from JSON-LD.
Show 4 child fieldsHide child fields
- namestring|nullOffer or product name.Example
Ridge Runner 4 - pricenumber|nullPrice (or low price).Example
139 - price_currencystring|nullISO currency code.Example
USD - price_valid_untilstring|null
priceValidUntilas given.
- commentsnullNot parsed. Always null.
- contactsobject|nullPhone numbers and emails linked with
tel:andmailto:.Show 2 child fieldsHide child fields
- telephonesarray<string>|nullPhone numbers.Example
["+13035550142"] - emailsarray<string>|nullEmail addresses.Example
["fit@summitrunning.example"]
- page_as_markdownstring|nullThe main content as Markdown, when you sent
markdown_view: true.Example# Trail running shoes Every trail shoe we stock comes with free gait analysis and 60-day returns. Read our [independent test results](https://www.example-re...
- receipt_idstring|nullId of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks.Example
744695e7-dd8a-5016-bb2b-2d314ea9ef81 - fetch_levelstring|nullThe fetch level that delivered the data:
standard,renderedorprotected. Null when the route doesn't fetch pages or nothing was fetched.One ofstandardrenderedprotectedExamplerendered - upgradedbooleanTrue when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that.Example
true - upgrade_reasonstring|nullWhy the request upgraded, in our level names and HTTP facts, for example
403 at standard; challenge page at rendered. Null when it didn't upgrade.Example403 at standard - cache_hitbooleanTrue when the data came from the shared result cache instead of a new fetch.Example
false
Errors
| Code | When |
|---|---|
| 40100 | No credentials were sent (HTTP 401). |
| 40101 | The API key is missing, malformed or revoked (HTTP 401). |
| 40202 | Too many requests for this key (HTTP 429, with Retry-After). |
| 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). |
| 40006 | More than 100 tasks in one POST (HTTP 400). |
| 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). |
| 40501 | A task field failed validation. Returned per task; other tasks still run. |
| 50000 | The task returned no data because of an error on our side or upstream. $0. |
| 40102 | No allowed fetch level got the page, or it answered 5xx. $0. |
| 40501 | url isn't an absolute http(s) URL, custom_js was sent, enable_javascript needs a higher max_level, or max_cost is below the cheapest allowed level. |
Migrating
Replaces DataForSEO /v3/on_page/content_parsing/live. The request body and response envelope match: change the base URL to https://api.dataforgaio.com/v1 and use your dg_ key as the password.