Content Parsing: Live

The readable content of one URL: header, main topics by heading, sidebar, footer, tables, ratings, offers and contacts, with optional Markdown.
POST/v1/pages/content_parsing/live
Open as Markdown
On this page

Price

Pricepage
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. A Bearer header with the key also works. Create a key.
Body
JSON array of task objects, up to 100 tasks per requestMode: Live

Fields (per task)

  • urlstringrequired
    Absolute http or https URL of the page, up to 2,000 characters.
    Max2000Examplehttps://summitrunning.example/trail-shoes
  • enable_javascriptbooleanoptional
    Render the page in a browser before reading it. The fetch starts at the Rendered level, so max_level must be rendered or protected. Also accepts the string "true".
    DefaultfalseExamplefalse
  • Same as enable_javascript.
    DefaultfalseExamplefalse
  • custom_jsstringoptional
    Not supported. A task that sends it fails with 40501 and isn't billed.
  • markdown_viewbooleanoptional
    Also return the page's main content as Markdown in page_as_markdown.
    DefaultfalseExampletrue
  • auto_upgradebooleanoptional
    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. false stops at the Standard level and returns the failure at $0. Also accepts "true", "false", 1 and 0.
    DefaulttrueExampletrue
  • max_levelstringoptional
    The highest fetch level Auto-upgrade may use. rendered never uses the Protected level.
    DefaultprotectedOne ofstandardrenderedprotectedExamplerendered
  • max_costnumberoptional
    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.
    Min0Example0.002
  • max_ageintegeroptional
    Accept a cached result up to this many seconds old, 0 to 86,400. 0 always 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.

  • versionstring
    Response format version, for example 0.1.20261203.
    Example0.1.20261203
  • Status of the request as a whole. 20000 when it was accepted; each task has its own status_code.
    Example20000
  • Plain-language request status.
    ExampleOk.
  • timestring
    Time the whole request took, for example 1.8410 sec.
    Example0.4210 sec.
  • costnumber
    Sum of every task's cost, in USD.
    Example0.0011
  • Number of tasks in tasks.
    Example1
  • Tasks whose status_code is 40000 or higher.
    Example0
  • tasksarray<object>
    One entry per task you sent, in the order you sent them.
    Show 191 child fields
    • idstring
      Task id (a UUID). For task_post, use it with task_get.
      Example8cbb5b5c-8e15-5c82-9959-45f93cdad009
    • Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table.
      Example20000
    • Plain-language status. For 40501 it names the field that failed.
      ExampleOk.
    • timestring
      Time this task took on our side, for example 1.8203 sec.
      Example0.4210 sec.
    • costnumber
      What this task was charged, in USD. 0 when it returned no data.
      Example0.0011
    • Number of entries in result.
      Example1
    • patharray<string>
      The route this task ran on, split into segments, starting with v1.
      Example["v1","pages","content_parsing"]
    • dataobject
      The task you sent, echoed back. Utility routes echo their query parameters.
      Example{"url":"https://summitrunning.example/trail-shoes","markdown_view":true}
    • resultarray<object>|null
      The data for this task. Null when the task returned an error.
      Show 177 child fields
      • Always finished: the page is fetched within the call.
        Examplefinished
      • Counters for the one-page crawl.
        Show 3 child fields
      • Number of entries in items. Always 1.
        Example1
      • itemsarray<object>
        The parsed page.
        Show 170 child fields
        • typestring
          Always content_parsing_element.
          Examplecontent_parsing_element
        • When we fetched the page, YYYY-MM-DD HH:MM:SS +00:00.
          Example2026-12-03 10:42:18 +00:00
        • HTTP status the page answered with.
          Example200
        • page_contentobject|null
          The page split into parts. Null when the page didn't answer 2xx.
          Show 165 child fields
          • headerobject|null
            The site header (outside the main content).
            Show 34 child fields
            • primary_contentarray<object>|null
              Text blocks: paragraphs, list items, quotes.
              Show 5 child fields
              • textstring
                Text of the block.
                ExampleHome Stores
              • urlnull
                Always null.
              • urlsarray<object>|null
                Links inside the block.
                Show 2 child fields
                • urlstring
                  Absolute link URL.
                  Examplehttps://summitrunning.example/
                • anchor_textstring|null
                  Link text.
                  ExampleHome
            • secondary_contentarray<object>|null
              Link-heavy blocks, such as menus and link lists.
              Show 5 child fields
              • textstring
                Text of the block.
                ExampleHome Stores
              • urlnull
                Always null.
              • urlsarray<object>|null
                Links inside the block.
                Show 2 child fields
                • urlstring
                  Absolute link URL.
                  Examplehttps://summitrunning.example/
                • anchor_textstring|null
                  Link text.
                  ExampleHome
            • table_contentarray<object>|null
              Tables.
              Show 21 child fields
              • headerarray<object>|null
                Header rows (<thead>, or a first row of <th> cells).
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
              • bodyarray<object>|null
                Body rows.
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
              • footerarray<object>|null
                Footer rows.
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
          • footerobject|null
            The site footer.
            Show 34 child fields
            • primary_contentarray<object>|null
              Text blocks: paragraphs, list items, quotes.
              Show 5 child fields
              • textstring
                Text of the block.
                ExampleHome Stores
              • urlnull
                Always null.
              • urlsarray<object>|null
                Links inside the block.
                Show 2 child fields
                • urlstring
                  Absolute link URL.
                  Examplehttps://summitrunning.example/
                • anchor_textstring|null
                  Link text.
                  ExampleHome
            • secondary_contentarray<object>|null
              Link-heavy blocks, such as menus and link lists.
              Show 5 child fields
              • textstring
                Text of the block.
                ExampleHome Stores
              • urlnull
                Always null.
              • urlsarray<object>|null
                Links inside the block.
                Show 2 child fields
                • urlstring
                  Absolute link URL.
                  Examplehttps://summitrunning.example/
                • anchor_textstring|null
                  Link text.
                  ExampleHome
            • table_contentarray<object>|null
              Tables.
              Show 21 child fields
              • headerarray<object>|null
                Header rows (<thead>, or a first row of <th> cells).
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
              • bodyarray<object>|null
                Body rows.
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
              • footerarray<object>|null
                Footer rows.
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
          • main_topicarray<object>|null
            The main content, one topic per heading.
            Show 39 child fields
            • h_titlestring|null
              The heading that starts this topic. Null for text before the first heading.
              ExampleTrail running shoes
            • main_titlestring|null
              The page's <h1>, or its <title> when there's no h1.
              ExampleTrail running shoes
            • authorstring|null
              Author from the author meta tag or JSON-LD.
              ExampleSummit Running Co.
            • languagestring|null
              The <html lang> value.
              Exampleen
            • levelinteger|null
              Heading level, 1 to 6.
              Example1
            • primary_contentarray<object>|null
              Text blocks: paragraphs, list items, quotes.
              Show 5 child fields
              • textstring
                Text of the block.
                ExampleHome Stores
              • urlnull
                Always null.
              • urlsarray<object>|null
                Links inside the block.
                Show 2 child fields
                • urlstring
                  Absolute link URL.
                  Examplehttps://summitrunning.example/
                • anchor_textstring|null
                  Link text.
                  ExampleHome
            • secondary_contentarray<object>|null
              Link-heavy blocks, such as menus and link lists.
              Show 5 child fields
              • textstring
                Text of the block.
                ExampleHome Stores
              • urlnull
                Always null.
              • urlsarray<object>|null
                Links inside the block.
                Show 2 child fields
                • urlstring
                  Absolute link URL.
                  Examplehttps://summitrunning.example/
                • anchor_textstring|null
                  Link text.
                  ExampleHome
            • table_contentarray<object>|null
              Tables.
              Show 21 child fields
              • headerarray<object>|null
                Header rows (<thead>, or a first row of <th> cells).
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
              • bodyarray<object>|null
                Body rows.
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
              • footerarray<object>|null
                Footer rows.
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
          • secondary_topicarray<object>|null
            Sidebar (<aside>) content, one topic per heading.
            Show 39 child fields
            • h_titlestring|null
              The heading that starts this topic. Null for text before the first heading.
              ExampleTrail running shoes
            • main_titlestring|null
              The page's <h1>, or its <title> when there's no h1.
              ExampleTrail running shoes
            • authorstring|null
              Author from the author meta tag or JSON-LD.
              ExampleSummit Running Co.
            • languagestring|null
              The <html lang> value.
              Exampleen
            • levelinteger|null
              Heading level, 1 to 6.
              Example1
            • primary_contentarray<object>|null
              Text blocks: paragraphs, list items, quotes.
              Show 5 child fields
              • textstring
                Text of the block.
                ExampleHome Stores
              • urlnull
                Always null.
              • urlsarray<object>|null
                Links inside the block.
                Show 2 child fields
                • urlstring
                  Absolute link URL.
                  Examplehttps://summitrunning.example/
                • anchor_textstring|null
                  Link text.
                  ExampleHome
            • secondary_contentarray<object>|null
              Link-heavy blocks, such as menus and link lists.
              Show 5 child fields
              • textstring
                Text of the block.
                ExampleHome Stores
              • urlnull
                Always null.
              • urlsarray<object>|null
                Links inside the block.
                Show 2 child fields
                • urlstring
                  Absolute link URL.
                  Examplehttps://summitrunning.example/
                • anchor_textstring|null
                  Link text.
                  ExampleHome
            • table_contentarray<object>|null
              Tables.
              Show 21 child fields
              • headerarray<object>|null
                Header rows (<thead>, or a first row of <th> cells).
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
              • bodyarray<object>|null
                Body rows.
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
              • footerarray<object>|null
                Footer rows.
                Show 6 child fields
                • row_cellsarray<object>
                  Cells in the row.
                  Show 5 child fields
                  • textstring|null
                    Cell text.
                    ExampleModel
                  • urlsarray<object>|null
                    Links in the cell.
                    Show 2 child fields
                    • urlstring
                      Absolute link URL.
                      Examplehttps://summitrunning.example/
                    • anchor_textstring|null
                      Link text.
                      ExampleHome
                  • is_headerboolean
                    True for <th> cells.
                    Exampletrue
          • ratingsarray<object>|null
            Aggregate ratings from JSON-LD.
            Show 5 child fields
            • namestring|null
              Name of the rated thing.
              ExampleRidge Runner 4
            • rating_valuenumber|null
              Average rating.
              Example4.6
            • Best possible rating (default 5).
              Example5
            • rating_countinteger|null
              Number of ratings or reviews.
              Example128
            • relative_ratingnumber|null
              rating_value / max_rating_value.
              Example0.92
          • offersarray<object>|null
            Offers from JSON-LD.
            Show 4 child fields
            • namestring|null
              Offer or product name.
              ExampleRidge Runner 4
            • pricenumber|null
              Price (or low price).
              Example139
            • price_currencystring|null
              ISO currency code.
              ExampleUSD
            • priceValidUntil as given.
          • Not parsed. Always null.
          • contactsobject|null
            Phone numbers and emails linked with tel: and mailto:.
            Show 2 child fields
            • telephonesarray<string>|null
              Phone numbers.
              Example["+13035550142"]
            • emailsarray<string>|null
              Email addresses.
              Example["fit@summitrunning.example"]
        • page_as_markdownstring|null
          The 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|null
      Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks.
      Example744695e7-dd8a-5016-bb2b-2d314ea9ef81
    • fetch_levelstring|null
      The fetch level that delivered the data: standard, rendered or protected. Null when the route doesn't fetch pages or nothing was fetched.
      One ofstandardrenderedprotectedExamplerendered
    • upgradedboolean
      True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that.
      Exampletrue
    • upgrade_reasonstring|null
      Why 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_hitboolean
      True when the data came from the shared result cache instead of a new fetch.
      Examplefalse

Errors

CodeWhen
40100No credentials were sent (HTTP 401).
40101The API key is missing, malformed or revoked (HTTP 401).
40202Too many requests for this key (HTTP 429, with Retry-After).
40503The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405).
40006More than 100 tasks in one POST (HTTP 400).
40210Wallet balance below the worst case this POST could cost (HTTP 402).
40501A task field failed validation. Returned per task; other tasks still run.
50000The task returned no data because of an error on our side or upstream. $0.
40102No allowed fetch level got the page, or it answered 5xx. $0.
40501url 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.
Tasks that end in an error are not billed. All status codes

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.