Skip to main content

Sitemap Check

free
GET/v1/domain/sitemap

Discovers and analyzes XML sitemaps to understand site structure and content. Checks robots.txt references, common sitemap locations, and parses sitemap content.

What It Does

Searches for sitemaps at common locations (/sitemap.xml, /sitemap_index.xml) and robots.txt references. Parses sitemap XML per the sitemaps.org protocol to extract URLs, last modified dates, change frequency, and priority values. Handles sitemap indexes with multiple child sitemaps.

Why It's Useful

Sitemaps reveal site structure, content freshness, and crawling priorities. They're essential for SEO auditing, content discovery, and understanding how a site wants search engines to index its content.

Use Cases

Content Strategist

Content Discovery

Map all pages on a competitor's site through their sitemap to understand content strategy.

Discover competitor content for gap analysis and strategy planning.

SEO Specialist

SEO Health Check

Verify sitemap is properly formatted, accessible, and includes all important pages.

Ensure search engines can discover and index all content efficiently.

Data Engineer

Web Scraping Preparation

Use sitemap to generate a complete list of URLs for web scraping projects.

Efficiently crawl websites by starting with known URL lists.

Parameters

NameTypeRequiredDescription
domainstringRequiredThe domain to find sitemaps forExample: example.com

Response Fields

FieldTypeDescription
domainstringThe queried domain
foundbooleanWhether a sitemap was found
urlstringPrimary sitemap URL
typestringSitemap type (xml, index, etc.)
sitemapsarrayDiscovered sitemaps (up to 10)
urlCountnumberTotal URLs found in sitemaps
sitemapCountnumberNumber of sitemaps discovered
fromRobotsTxtbooleanWhether sitemap was referenced in robots.txt
lastModifiedstringLast modification date if available
warningsarrayWarnings about sitemap issues (e.g., too many URLs, invalid format)
scorenumberSitemap health score (0-100)
gradestringLetter grade (A-F) based on score
recommendationsarraySitemap improvement suggestions

Code Examples

cURL
curl "https://api.edgedns.dev/v1/domain/sitemap" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d "domain=example.com"
JavaScript
const response = await fetch(
  'https://api.edgedns.dev/v1/domain/sitemap?domain=example.com',
  {
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY'
    }
  }
);

const data = await response.json();
console.log(data);
Python
import requests

response = requests.get(
    'https://api.edgedns.dev/v1/domain/sitemap',
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    params={
    'domain': 'example.com'
    }
)

data = response.json()
print(data)

Read the full Sitemap Check guide

Why it matters, real-world use cases, parameters, response fields, and how to call it from Claude, ChatGPT, or Gemini via MCP.

Read the guide →

Related Endpoints

External References

Learn more about the standards and protocols behind this endpoint.

Try This Endpoint

Test the Sitemap Check endpoint live in the playground.