APIMaster.ai
Data APIs/DataForSEO/Website SEO audits
Available

Request website SEO audits (submit task)

OnPage API checks websites for 60+ customizable on-page parameters defines and displays all found flaws and opportunities for optimization so that you can easily fix them. It checks meta tags, duplicate content, image tags, response codes, and other parameters on every page. You can find the full list of OnPage API check-up parameters in the Pages section.

POST/v1/dataforseo/on_page/task_post

Request parameters

ParameterTypeMeaning
accept_languageOptional or conditionalstringlanguage header for accessing the website
allow_subdomainsOptional or conditionalbooleaninclude pages on subdomains
allowed_subdomainsOptional or conditionalarraysubdomains to crawl
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
calculate_keyword_densityOptional or conditionalbooleancalculate keyword density for the target domain
check_spellOptional or conditionalbooleancheck spelling
check_spell_exceptionsOptional or conditionalarraywords excluded from spell check
check_spell_languageOptional or conditionalstringlanguage of the spell check
checks_thresholdOptional or conditionalobjectcustom threshold values for checks
crawl_delayOptional or conditionalintegerdelay between hits, ms
crawl_sitemap_onlyOptional or conditionalbooleancrawl only pages indicated in the sitemap
custom_jsOptional or conditionalstringcustom javascript
custom_robots_txtOptional or conditionalstringcustom robots.txt settings
custom_sitemapOptional or conditionalstringcustom sitemap url
custom_user_agentOptional or conditionalstringcustom user agent
disable_cookie_popupOptional or conditionalbooleandisable the cookie popup
disable_page_checksOptional or conditionalarrayprevent certain page checks from running
disable_sitewide_checksOptional or conditionalarrayprevent certain sitewide checks from running
disallowed_subdomainsOptional or conditionalarraysubdomains not to crawl
enable_browser_renderingOptional or conditionalbooleanemulate browser rendering to measure Core Web Vitals
enable_content_parsingOptional or conditionalbooleanparse content on crawled pages
enable_javascriptOptional or conditionalbooleanload javascript on a page
enable_www_redirect_checkOptional or conditionalbooleancheck if the domain implemented the www redirection
enable_xhrOptional or conditionalbooleanenable XMLHttpRequest on a page
force_sitewide_checksOptional or conditionalbooleanenable sitewide checks when crawling a single page
load_resourcesOptional or conditionalbooleanload resources
max_crawl_depthOptional or conditionalintegercrawl depth
max_crawl_pagesRequiredintegercrawled pages limit
pingback_urlOptional or conditionalstringnotification URL of a completed task
priority_urlsOptional or conditionalarrayurls to be crawled bypassing the queue
respect_sitemapOptional or conditionalbooleanrespect sitemap when crawling
return_despite_timeoutOptional or conditionalbooleanreturn data on pages despite the timeout error
robots_txt_merge_modeOptional or conditionalstringmerge with or override robots.txt settings
start_urlOptional or conditionalstringthe first url to crawl
store_raw_htmlOptional or conditionalbooleanstore HTML of crawled pages
support_cookiesOptional or conditionalbooleansupport cookies on crawled pages
switch_poolOptional or conditionalbooleanswitch proxy pool
tagOptional or conditionalstringuser-defined task identifier
targetRequiredstringtarget domain
validate_micromarkupOptional or conditionalbooleanenable microdata validation

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

$1.89Estimated price

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/task_post' \
  --header 'Authorization: Bearer YOUR_APIMASTER_KEY' \
  --header 'Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "custom_js": "meta = {}; meta.url = document.URL; meta;",
    "enable_javascript": true,
    "load_resources": true,
    "max_crawl_pages": 10,
    "tag": "some_string_123",
    "target": "dataforseo.com"
  }
]'
Download OpenAPI schema

Related APIs