Updated
Extract All URLs from a Sitemap Index (Nested and Image Sitemaps)
Large sites publish a sitemap index pointing to dozens of child sitemaps by type. Online converters often read only the first level and return a list of sitemap files, not pages.
Try it now on Apify Sitemap URL Extractor: All URLs, lastmod, hreflang · $0.0001 per one url returned in the dataset · failed items are free
How to do it, step by step
- Enter the site or the index URL.
- Run; child sitemaps are followed recursively, duplicates removed.
- Use
include/exclude(regular expressions) to keep only part of the site. - Image and video sitemaps are read too;
imagescounts the images listed for a URL.
The exact input used for the example below:
{
"sites": [
"wordpress.org"
],
"maxUrlsPerSite": 50
}Real result
Run GvWK3Ak3lpLksuqxn on 2026-12-05: status SUCCEEDED, 50 item(s), 1.9 s of run time. Output shortened for reading (long text cut with “…”).
50 URLs returned from 3 sitemap file(s) (image-sitemap-1.xml, news-sitemap.xml, video-sitemap-1.xml); 50 carry a lastmod date, the newest 2026-12-04.
[
{
"url": "https://wordpress.org/design/",
"lastmod": "2026-12-03T19:43:26.000Z",
"changefreq": null,
"priority": null,
"alternates": [],
"sitemap": "https://wordpress.org/news-sitemap.xml",
"images": 0
},
{
"url": "https://wordpress.org/download/releases/6-3/",
"lastmod": "2023-07-11T04:29:39.000Z",
"changefreq": null,
"priority": null,
"alternates": [],
"sitemap": "https://wordpress.org/video-sitemap-1.xml",
"images": 0
},
{
"url": "https://wordpress.org/6-3-hero-animation-v2-mp4-compressed/",
"lastmod": "2023-08-10T02:07:05.000Z",
"changefreq": null,
"priority": null,
"alternates": [],
"sitemap": "https://wordpress.org/video-sitemap-1.xml",
"images": 0
}
]
FAQ
How deep does it follow indexes?
Indexes inside indexes are followed; loops are detected.
Can I get only one child sitemap?
Yes: pass that file in Sitemap URLs instead of the site.
Is there a URL limit?
Max URLs per site caps the output (default 100) so a test run stays cheap; raise it for a full export.