Sitemap Check API
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 | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | Domain or full URL — accepts `example.com` or `https://example.com/path`. The chosen protocol determines which scheme is probed for `/sitemap.xml`.Example: https://example.com |
validateUrls | query | boolean | Optional | When true (Pro+ tier), HEAD-probes a random sample (8) of sitemap URLs to detect drift between the sitemap and live content — the leading cause of "Google deindexed my pages" tickets. Reports status distribution, redirected count, noindex count, and dead count.Example: true |
Response Fields
Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.
| Field | Type | Description |
|---|---|---|
domain | string | The queried domain (bare hostname). |
found | boolean | Whether a sitemap was found |
url | string | Primary sitemap URL — discovered at the protocol used in the request. |
type | string | Sitemap type (xml, index, etc.) |
sampleValidation | object | Sample-URL validation result (when validateUrls=true + Pro+ tier): sampled count, statusDistribution (2xx/3xx/4xx/5xx/failed), noindexCount, redirectedCount, deadCount, entries[] with per-URL status + finalUrl + noindex flag. |
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 |
analysisLimited | boolean | True when analysis stopped at an EdgeDNS resource limit; not a sitemap validity verdict. Sitemaps over 8MiB are not fully parsed, independently of the 50MB protocol limit. |
lastModified | string | Last modification date if available |
warnings | array | Warnings about sitemap issues (e.g., too many URLs, invalid format) |
lastmodValidation | object | Per sitemaps.org protocol, <lastmod> must be W3C datetime. totalLastmodTags, validCount, invalidCount, invalidSamples — Google silently discards malformed values, so a non-zero invalidCount is actionable. |
extensions | object | Detected sitemap extensions: hasImage, hasVideo, hasNews + entry counts. Image/video/news extensions unlock Google Images, Video, and News indexing respectively. |
score | number | Sitemap health score (0-100) |
grade | string | Letter grade (A-F) based on score |
recommendations | array | Sitemap improvement suggestions |
urlCountEstimated | boolean | Whether urlCount is an estimate rather than a fully enumerated count. |
Code Examples
Replace YOUR_API_KEY with your API key. This endpoint requires the free plan or higher; see plans and usage limits.
curl --request GET 'https://api.edgedns.dev/v1/domain/sitemap?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/domain/sitemap?domain=https%3A%2F%2Fexample.com",
{
"method": "GET",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
);
if (!response.ok) {
throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);import requests
response = requests.request(
'GET',
"https://api.edgedns.dev/v1/domain/sitemap?domain=https%3A%2F%2Fexample.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full Sitemap Check guide
Learn the concepts, choose a practical workflow, and interpret the observations from Sitemap Check before acting on them. Run supported checks via MCP or through REST.
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.