APIMaster.ai
Data APIs/DataForSEO/Website SEO audits
Temporarily unavailable

Get page headings, text and links

This API allows parsing the content on any page you specify and will return the structured content of the target page, including link URLs, anchors, headings, and textual content.

POST/v1/dataforseo/on_page/content_parsing/live

Request parameters

ParameterTypeMeaning
accept_languageOptional or conditionalstringlanguage header for accessing the website
browser_presetOptional or conditionalstringpreset for browser screen parameters
browser_screen_heightOptional or conditionalintegerbrowser screen height
browser_screen_scale_factorOptional or conditionalnumberbrowser screen scale factor
browser_screen_widthOptional or conditionalintegerbrowser screen width
custom_user_agentOptional or conditionalstringcustom user agent
disable_cookie_popupOptional or conditionalbooleandisable the cookie popup
enable_browser_renderingOptional or conditionalbooleanemulate browser rendering to measure Core Web Vitals
enable_javascriptOptional or conditionalbooleanload javascript on a page
enable_xhrOptional or conditionalbooleanenable XMLHttpRequest on a page
ip_pool_for_scanOptional or conditionalstringproxy pool
markdown_viewOptional or conditionalbooleanreturn page content as markdown
store_raw_htmlOptional or conditionalbooleanstore HTML of a crawled page
switch_poolOptional or conditionalbooleanswitch proxy pool
urlRequiredstringURL of the content to parse

Response

The JSON response includes status_code, status_message, tasks and task results. Check both the HTTP status and each task's status_code. A depth of 10 can include special search blocks, so it does not always mean ten organic links. The response's cost field is native API data; your final APIMaster fee is shown in the response headers and usage log.

task_post creates a task. Save its task ID, then use the matching tasks_ready and task_get APIs. Task results are private to the account that created them.

Model-restricted API keys must allow dataforseo. Callback URLs are not supported; retrieve asynchronous results with task_get.

Pricing and settlement

Reference prices use example parameters and default account pricing, checked 2026-12-01. Actual fees vary with parameters, data volume and account pricing; the settled amount is final.

Request a free estimate before running a call. An estimate is not a fixed price or a hard spending cap. Your fee uses the actual settled usage and your account's current group multiplier once. The estimated amount is reserved from your wallet; unused funds are returned after settlement. Model subscriptions and trial credits do not cover these calls.

Use a unique Idempotency-Key for each intended call. Keep the same key and parameters when recovering a call. If the outcome or fee is pending, query /v1/data-requests/{request_id}; do not start another paid call with a new key.

400: invalid parameters; 401: invalid or expired key; 403: key permissions; 402: insufficient wallet or key quota; 409: idempotency conflict or request pending; 429: rate limit; 502/503: request or settlement unavailable. For every failure, preserve the request ID and check settlement before repeating a paid operation.

Code examples

curl --request POST 'https://apimaster.ai/v1/dataforseo/on_page/content_parsing/live' \
  --header 'Authorization: Bearer YOUR_APIMASTER_KEY' \
  --header 'Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "url": "https://dataforseo.com/blog/a-versatile-alternative-to-google-trends-exploring-the-power-of-dataforseo-trends-api"
  }
]'
Download OpenAPI schema

Related APIs