FETCHAPI

Parse web page content structure API

One call parses and extracts structured content from a web page, returning headers, footers, main topics, secondary topics, and other page elements. Each item in the answer represents a parsed section of the page with its text, links, and hierarchy level. The sample shows the full parsed structure of a Wikipedia article about Pokémon Trading Card Game.

1 live route on DataForSEO, from $0.00015 per call. Every route below answered our last live test on 2026-10-06; the gateway re-tests them daily.

Get a keySee it in the catalogUse it from MCP

Price per call, by route

The upstream price you are metered at, cheapest first. A route without a published price says so.

ProviderEndpointPriceTested
Parsed content of a web pagePOST on_page/content_parsing/live$0.00015$0.15 / 1k calls✓ 2026-10-06pricing ↗

What it returns

From a real call to the route: DataForSEO.

One call parses and extracts structured content from a web page, returning headers, footers, main topics, secondary topics, and other page elements. Each item in the answer represents a parsed section of the page with its text, links, and hierarchy level. The sample shows the full parsed structure of a Wikipedia article about Pokémon Trading Card Game.
result[].items[].page_content.main_topic[]Main content sections with heading level and textresult[].items[].page_content.main_topic[].h_titleHeading title for the sectionresult[].items[].page_content.main_topic[].levelHTML heading level (1-6)result[].items[].page_content.main_topic[].primary_content[]Main text content with URLsresult[].items[].page_content.headerPage header contentresult[].items[].page_content.footerPage footer contentresult[].items[].fetch_timeWhen the page was fetchedresult[].items[].status_codeHTTP status code of the page

Call it

HTTP with your key in x-api-key, or the call_endpoint tool of our MCP server.

POST /api/gw/dataforseo/on_page/content_parsing/live$0.00015 / call✓ working · tested 2026-10-060.89 s latency
Parameters
ParameterTypeNotes
urlstr · bodyJSON body fielde.g. "https://en.wikipedia.org/wiki/Pok%C3%A9mon_Trading_Card_Game"
HTTP
curl -X POST "https://fetchapi.co/api/gw/dataforseo/on_page/content_parsing/live" \
  -H "x-api-key: YOUR_KEY" -H "content-type: application/json" \
  -d '[{"url": "https://en.wikipedia.org/wiki/Pok%C3%A9mon_Trading_Card_Game"}]'
MCP
call_endpoint("dataforseo.on_page_content_parsing", {}, [{"url": "https://en.wikipedia.org/wiki/Pok%C3%A9mon_Trading_Card_Game"}])
Real example answer (trimmed) · 2026-10-04
{
  "cost": 0.00015,
  "time": "0.3642 sec.",
  "tasks": [
    {
      "id": "10040442-2697-0495-0000-e4cf76cb5a93",
      "cost": 0.00015,
      "data": {
        "api": "on_page",
        "url": "https://en.wikipedia.org/wiki/Pok%C3%A9mon_Trading_Card_Game",
        "function": "content_parsing"
      },
      "path": [
        "v3",
        "on_page",
        "… 2 more"
      ],
      "time": "0.3542 sec.",
      "result": [
        {
          "items": [
            {
              "type": "…",
              "fetch_time": "…",
              "status_code": "…",
              "page_content": "…",
              "page_as_markdown": "…"
            }
          ],
          "items_count": 1,
          "crawl_status": null,
          "crawl_progress": "finished"
        }
      ],
      "status_code": 20000,
      "result_count": 1,
      "status_message": "Ok."
    }
  ],
  "version": "0.1.20260917",
  "status_code": 20000,
  "tasks_count": 1,
  "tasks_error": 0,
  "status_message": "Ok."
}

Related DataForSEO APIs

All 20 DataForSEO jobs →

One key for every API on this page.

Call it over HTTP or from any MCP client. Each key has a rate limit and a monthly cap; calls are metered at the upstream price.