Sitemap Check
free/v1/domain/sitemapDiscovers 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 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 Health Check
Verify sitemap is properly formatted, accessible, and includes all important pages.
Ensure search engines can discover and index all content efficiently.
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
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | Required | The domain to find sitemaps forExample: example.com |
Response Fields
| Field | Type | Description |
|---|---|---|
domain | string | The queried domain |
found | boolean | Whether a sitemap was found |
url | string | Primary sitemap URL |
type | string | Sitemap type (xml, index, etc.) |
sitemaps | array | Discovered sitemaps (up to 10) |
urlCount | number | Total URLs found in sitemaps |
sitemapCount | number | Number of sitemaps discovered |
fromRobotsTxt | boolean | Whether sitemap was referenced in robots.txt |
lastModified | string | Last modification date if available |
warnings | array | Warnings about sitemap issues (e.g., too many URLs, invalid format) |
score | number | Sitemap health score (0-100) |
grade | string | Letter grade (A-F) based on score |
recommendations | array | Sitemap improvement suggestions |
Code Examples
curl "https://api.edgedns.dev/v1/domain/sitemap" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "domain=example.com"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);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.