API

Use Website Audit API to grow rankings and traffic

This guide shows how to use the Website Audit API to run website audits and identify technical issues that affect crawling, indexing, and rankings. The same workflow can be applied to any website.
Note: Example responses in the guide are illustrative and may differ from live results.

We’ll follow a simple, repeatable flow:

  1. Launch a website audit.
  2. Retrieve the audit report and health score.
  3. Identify high-impact crawlability and indexability issues.
  4. Get affected URLs for each issue.
  5. Analyze internal linking and content issues.
  6. Inspect individual pages with ranking potential.
  7. Recheck the audit after fixes.

Step 1. Launch a website audit

Start by creating a new audit for the domain you want to improve. This crawl is the foundation for identifying ranking and traffic blockers.

Tip: Each crawled page consumes credits. Set max_pages to control crawl size.

Example: Launch a standard audit

Copy
curl --location 'https://api.seranking.com/v1/site-audit/audits/standard' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token YOUR_API_KEY' \
--data '{
"domain": "example.com",
"title": "Example Audit",
"settings": {
"max_pages": 1000,
"max_depth": 10,
"check_robots": 1
}
}'

Expected outcome: returns an audit ID, e.g., 700237036.


Step 2. Retrieve the audit report and health score

Once the audit is complete, fetch the full report using the endpoint Get audit report.

Tip: Only request the report when the status is finished. Use Get audit status to check progress.

Example report highlights:

Copy
{
"score_percent": 80,
"total_errors": 346,
"total_warnings": 979,
"total_notices": 3915,
"sections": [
{
"name": "Security",
"props": {"no_https": {"status": "error"}}
},
{
"name": "Crawling & Indexing",
"props": {"http4xx": {"status": "error", "value": 28}}
}
]
}

You can see from the report:

  • overall site health score
  • total errors, warnings, notices
  • key issue categories (Crawling & Indexing, Security, Content)

Step 3. Identify high-impact crawlability and indexability issues

Next, focus on issues that most directly affect rankings and traffic. These issues often determine whether search engines can crawl and index your content at all:

Tip: Prioritize issues marked as errors before warnings or notices, as errors have the highest SEO impact.
  • 4xx and 5xx errors
  • pages blocked by noindex or robots.txt
  • canonical tag conflicts
  • duplicate content
  • hreflang issues for multilingual sites

Step 4. Get affected URLs for each issue

For each critical issue, fetch the list of affected URLs. This turns problems into concrete tasks for your team.

Example: URLs affected by title_duplicate

Copy
{
"total_urls": 143,
"urls": [
"https://example.com/page1",
"https://example.com/page2"
]
}

Step 5. Analyze internal linking and content issues

Use the endpoint Get all crawled pages to pull page-level metrics and identify patterns:

  • weak internal linking → < 5 internal links (threshold may vary depending on site size and structure)
  • low word count (potential thin content) → words_count < 300
  • duplicate titles or H1s → title_duplicate, h1_duplicate
  • Pages with many issues → errors, warnings
  • Low crawl priority → high depth + low inlinks

Step 6. Inspect individual pages with ranking potential

Drill down a high-value page using the endpoint Get all issues by URL. This helps you:

  • understand why the page underperforms
  • see all technical and on-page SEO issues
  • align SEO fixes with content optimization

Example page inspection highlights:

Copy
{
"page_data": {
"title": "SEO Tips",
"words": 1820,
"inlinks": 12
},
"issues": [
{
"code": "title_duplicate",
"type": "notice"
}
]
}

Step 7. Recheck the audit after fixes

After resolving issues, launch a recheck with the same settings. 

Expected outcome: confirms issues are fixed, and the health score increased.

MetricBeforeAfter
Health score7886
4xx errors18321
Canonical conflicts917
Crawled pages18,43218,901

Learn how SE Ranking’s API can boost your SEO!

Hi! Meet our product expert, Alex.

He’ll walk you through the API and show you how to get the most out of it.

  • Enjoy a tailored demo on integrating rich, structured SEO data into your stack.
  • Pin down every tech detail live—auth, endpoints, rate limits, data formats.
  • Compare usage tiers and pricing so you can unlock maximum data value.

Request a free demo to see our tools and integrations in action

By clicking this button, you agree to SE Ranking’s Terms of Services and Privacy Policy.