S
SEO SOPKnowledge Base
Search
← All topics

DataForSEO On-Page API — Technical SEO Audit at Scale

runnable

Uses DataForSEO's OnPage API to crawl pages and extract technical SEO data: meta tags, heading structure, word count, load time, schema presence, internal/external links, and 50+ on-page factors.

seotechnical-seodataforseoapion-page-audit
Agent trigger phrases: DataForSEO on-page · OnPage API · technical audit API · on-page audit API · page crawl API · metadata extraction API · on-page data · DataForSEO crawl

DataForSEO OnPage API Overview

The OnPage API crawls any URL and returns comprehensive technical SEO data. It can crawl an entire domain (up to 10,000 pages) or target specific URLs. Data is returned in structured JSON format ready for analysis.

API group: OnPage Primary endpoint base: https://api.dataforseo.com/v3/on_page/

Task Setup: Crawl a Domain

Submit a crawl task:

POST to https://api.dataforseo.com/v3/on_page/task_post

[
  {
    "target": "domain.com",
    "max_crawl_pages": 100,
    "start_url": "https://domain.com/",
    "crawl_delay": 2,
    "store_raw_html": false,
    "check_spell": false,
    "enable_javascript": false
  }
]

For JS-rendered sites: set "enable_javascript": true (higher cost, slower).

Key Data Points Returned Per Page

| Field | Value | |-------|-------| | url | Full URL | | page_timing.time_to_interactive | Page load speed | | meta.title | Title tag content | | meta.description | Meta description content | | meta.htags.h1 | Array of H1 texts | | meta.htags.h2 | Array of H2 texts | | meta.content.words_count | Word count | | meta.content.automated_readability_index | Readability score | | meta.content.perceived_expertise | Expertise signal (0-1) | | structured_data | JSON-LD detected on page | | rel.canonical | Canonical URL declared | | meta.robots.follow | Follow/nofollow | | meta.robots.index | Index/noindex | | links.internal | Internal links count and URLs | | links.external | External links count and URLs | | images.alt_info_missing | Images without alt text count | | duplicate_content | Duplicate detected on domain |

Issues Endpoint

After crawl completes, retrieve issues:

GET https://api.dataforseo.com/v3/on_page/issues_by_type/{task_id}

Issue categories:

  • Title tag issues (missing, duplicate, too long, too short)
  • Meta description issues (missing, duplicate, too long)
  • H1 issues (missing, multiple H1s, no H1)
  • Image alt text issues
  • Broken internal links
  • Redirect chains
  • Slow page load
  • Missing canonical
  • Noindex pages in sitemap
  • Thin content (< 200 words)
  • Duplicate content

Competitive URL Analysis

To audit a competitor's specific page:

POST to https://api.dataforseo.com/v3/on_page/page_screenshot (get visual render) POST to https://api.dataforseo.com/v3/on_page/raw_html (get full HTML) POST to https://api.dataforseo.com/v3/on_page/content_parsing (extract content structure)

Content parsing returns: headings, paragraphs, structured tables, images, and their order — equivalent to reading the page as a document outline.

Use in Content Gap Analysis

  1. Submit top 5 ranking URLs for your target keyword to OnPage content_parsing
  2. Extract: word count, H2/H3 structure, entity density for each
  3. Compare to your page's data
  4. Identify: what do all top 5 have that your page lacks?
  5. Map gaps to content brief additions

On-Page Audit Workflow (Client Site)

  1. Submit full domain crawl (max_crawl_pages: 500 for most sites)
  2. Pull issues_by_type → prioritize by issue count and severity
  3. Address in priority order:
    • Critical: noindex on money pages, missing H1, broken canonical
    • High: missing/duplicate titles, missing meta descriptions, missing schema
    • Medium: thin content, image alt text, slow load times
    • Low: minor readability, long titles by a few characters

Cross-References

  • dataforseo-serp — SERP data to pair with on-page analysis
  • dataforseo-content-analysis — NLP-based content quality analysis
  • sitemap-analyzer — sitemap audit before on-page crawl setup
  • crawl-budget-optimizer — crawl issues overlap with budget waste

#seo-sop #seo #technical-seo #dataforseo #api #on-page-audit