Collect all URLs from a sitemap index
get all urls from sitemap_index.xml | extract urls from wp-sitemap.xml | fetch all child sitemaps | full url list from sitemap index | curl | sitemap | xargs | seocurl -s https://example.com/sitemap_index.xml | grep -oP '(?<=<loc>)[^<]+' | xargs -n1 curl -s | grep -oP '(?<=<loc>)[^<]+' | sort -uFirst reads the child sitemaps from the index, fetches them one after another and collects all <loc> entries. Typical for WordPress (wp-sitemap.xml), Yoast and Rank Math (sitemap_index.xml). Append | wc -l to get the total number of submitted URLs.
Note: Image sitemaps with <image:loc> are not counted. Indexes nested more than one level deep are not resolved.
Also searched as
- get all urls from sitemap_index.xml
- extract urls from wp-sitemap.xml
- fetch all child sitemaps
- full url list from sitemap index