Sitemap

GET /api/v1/sitemap

Locate (from robots.txt or /sitemap.xml), parse and analyse a site's XML sitemap — URL count, sitemap-index children, and lastmod coverage. Works on both a plain urlset and a sitemap index.

Query parameters

NameTypeDescription
url requiredstringAny URL on the site; we discover the sitemap from its origin.
keystringYour API key, if not sent via the X-API-Key header.

Request

Response

200 · application/json
  1. {
  2. "url": "https://example.com/sitemap.xml",
  3. "found": true,
  4. "statusCode": 200,
  5. "type": "urlset",
  6. "childSitemapCount": 0,
  7. "childSitemaps": [],
  8. "urlCount": 132,
  9. "urlsHaveLastmod": 132,
  10. "lastmodCoverage": 100,
  11. "tooLarge": false,
  12. "sample": [ { "loc": "https://example.com/", "lastmod": "2026-06-01" } ]
  13. }

Response fields

FieldTypeDescription
foundbooleanWhether a valid XML sitemap was located and parsed.
statusCodeintegerHTTP status returned for the sitemap request.
typestringurlset for a plain sitemap, or index for a sitemap index.
childSitemapCountintegerNumber of child sitemaps listed (for a sitemap index).
childSitemapsarrayChild sitemap URLs — we aggregate URL counts from up to 5 children.
urlCountintegerTotal URLs found.
urlsHaveLastmodintegerHow many of those URLs carry a <lastmod>.
lastmodCoveragenumberPercentage of URLs with a lastmod.
tooLargebooleanTrue if the sitemap exceeds 50k URLs or 50MB.
samplearrayA sample of URLs, each with its loc and lastmod.

To check the rules and declared sitemaps, use robots.txt. See Errors for status codes.