A sitemap generated on-the-fly by server-side code rather than being a static XML file.
A dynamic sitemap is generated programmatically by server-side code each time it's requested, rather than being a pre-built static XML file. This approach ensures the sitemap always reflects the current state of the website.
Dynamic sitemaps are common in content management systems and web frameworks. For example, Next.js can generate sitemaps using a `sitemap.ts` file, WordPress generates them via plugins, and Django has a built-in sitemap framework.
Best practices include caching the generated sitemap (to avoid regenerating on every request), setting appropriate HTTP cache headers, and using `lastmod` values from actual database timestamps.
SitemapKit's API lets you discover, extract, and parse XML sitemaps from any domain. Get structured JSON data with all sitemap elements including Dynamic Sitemap.