Try the RankNibbler SEO API

Sitemap URLs Beta

GET /api/v1/sitemap-urls

Harvests every URL from a site's XML sitemaps, following the sitemap index — the seed list for any bulk job. Where /api/v1/sitemap returns a 100-URL sample plus validation statistics, this returns the full list.

Beta. This endpoint is new: it is live and safe to call on every plan, but its response shape may still change while we take feedback. Nothing here is scheduled for removal — if you depend on a particular field, tell us and we will keep it stable for you.

A sitemapindex is followed into up to 50 children. Only same-origin <loc> entries are collected, and every sitemap fetched along the way is independently SSRF-checked.

Authentication

Send your API key as an X-API-Key header, or as a key query parameter. Available on every plan, including Free — plans differ only in requests per day. This call costs one request against your daily quota, which is shared across every key on the account. See Authentication.

Query parameters

NameTypeDescription
url requiredstringAny URL on the site — the sitemap is discovered from it.
limit optionalintegerMaximum URLs returned. Default 1000, maximum 50000.
key optionalstringYour API key, if not sent as the X-API-Key header.

Request

Response

200 · application/json
  1. {
  2. "sitemapUrl": "https://example.com/sitemap.xml", "found": true,
  3. "count": 248, "limit": 500,
  4. "urls": ["https://example.com/", "https://example.com/about"],
  5. "usage": { "used": 1, "dailyLimit": 100, "tier": "free" }
  6. }

Response fields

FieldTypeDescription
sitemapUrlstringThe sitemap that was discovered and read.
foundbooleanfalse with count: 0 when no sitemap exists at the discovered location.
countintegerHow many URLs are in urls — after the limit is applied.
urlsstring[]The harvested URLs.

Errors

StatusWhen
401Missing or invalid API key.
403The URL is a private, loopback or cloud-metadata address and was blocked by SSRF protection.
429Burst rate limit (60 req/10s per IP, 30 req/10s per key) or your daily quota. See Rate limits.
502The sitemap could not be read.

Errors return { "error": "…" }; see Errors.