Dynamically generate a modified sitemap from another XML Sitemap or RSS feed. e.g.

URL (required)

Add a url parameter for the source Sitemap e.g.

https://tools4sitemaps.com/sitemap?url=https://www.sitemaps.org/sitemap.xml

Limit

Add a limit parameter to limit the number of URLs in the modified sitemap. e.g. &limit=10

https://tools4sitemaps.com/sitemap?url=https://www.sitemaps.org/sitemap.xml&limit=10

Add a selection parameter to change the URLs selected when a limit is applied. If not specified, the selection will default to first. e.g.

https://tools4sitemaps.com/sitemap?url=https://www.sitemaps.org/sitemap.xml&limit=10&selection=random

  • first (default)
  • last
  • random

Format

Add a format parameter to change the output format. If not specified, the format will default to 'xml'. e.g.

https://tools4sitemaps.com/sitemap?url=https://www.sitemaps.org/sitemap.xml&format=text

  • xml (default)
  • text
  • csv
  • validate

Filter

Add a filter parameter to filter the URLs to only those which match the filter. The filter is regex, and requires safe URL encoding. e.g.

https://tools4sitemaps.com/sitemap?url=https://www.sitemaps.org/sitemap.xml&filter=protocol

Exclude

Add a exclude parameter to filter out the URLs which match the filter. The filter is regex, and requires safe URL encoding. e.g.

https://tools4sitemaps.com/sitemap?url=https://www.sitemaps.org/sitemap.xml&exclude=protocol

Last Mod

Add a lastmod_days parameter to filter to URLs with a lastmod datetime within the number of days specified.

Hostname Rewrite

Add a hostname_rewrite parameter to replace the hostname in all the URLs with the value specified. Do not include the scheme. e.g.

https://tools4sitemaps.com/sitemap?url=https://www.sitemaps.org/sitemap.xml&hostname_rewrite=www.example.com

URL Rewrite

Add a rewrite_from and rewrite_to parameters to replace parts of the URl. Regex is supported, and requires safe URL encoding. e.g.

https://tools4sitemaps.com/sitemap?url=https://www.sitemaps.org/sitemap.xml&rewrite_from=www.sitemaps.org&rewrite_to=www.sitemaps.com

Publish Age

If your source feed has a publication date (e.g. News XML Sitemap or RSS feed), add a publish_date_age_filter parameter with a number of hours as the value to filter the URLs with a 'published_date' more recent than the current time minus the number of hours specified.

User Agent

The default user agent string used to request the source feed is Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

Add a ua parameter and user-agent label to change the user-agent used to make the requests.

  • safari = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194AA'

Sitemap Filter

Add a sitemap_filter parameter to filter Sitemaps found in a Sitemap Index to those where the filter is contained anywhere in the Sitemap URL.

Sitemap Limit

Add a sitemap_limit parameter to limit the number of Sitemaps found in a Sitemap Index.