Skip to main content

Sitemap Check API

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

NameLocationTypeRequiredDescription
domainquerystringRequiredDomain 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
validateUrlsquerybooleanOptionalWhen 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.

FieldTypeDescription
domainstringThe queried domain (bare hostname).
foundbooleanWhether a sitemap was found
urlstringPrimary sitemap URL — discovered at the protocol used in the request.
typestringSitemap type (xml, index, etc.)
sampleValidationobjectSample-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.
sitemapsarrayDiscovered sitemaps (up to 10)
urlCountnumberTotal URLs found in sitemaps
sitemapCountnumberNumber of sitemaps discovered
fromRobotsTxtbooleanWhether sitemap was referenced in robots.txt
analysisLimitedbooleanTrue 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.
lastModifiedstringLast modification date if available
warningsarrayWarnings about sitemap issues (e.g., too many URLs, invalid format)
lastmodValidationobjectPer sitemaps.org protocol, <lastmod> must be W3C datetime. totalLastmodTags, validCount, invalidCount, invalidSamples — Google silently discards malformed values, so a non-zero invalidCount is actionable.
extensionsobjectDetected sitemap extensions: hasImage, hasVideo, hasNews + entry counts. Image/video/news extensions unlock Google Images, Video, and News indexing respectively.
scorenumberSitemap health score (0-100)
gradestringLetter grade (A-F) based on score
recommendationsarraySitemap improvement suggestions
urlCountEstimatedbooleanWhether 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
curl --request GET 'https://api.edgedns.dev/v1/domain/sitemap?domain=https%3A%2F%2Fexample.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
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);
Python
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.

    Sitemap Check API Reference | EdgeDNS