Step-by-step integration guides for popular platforms
SitemapHost integrates with any platform that can make HTTP requests. These guides walk through end-to-end integration with popular frameworks and CMS platforms, covering automated sitemap generation as part of your build and deployment pipeline.
## General Integration Pattern Regardless of your platform, the integration follows the same core workflow: 1. **Collect URLs** -- Gather all public URLs from your CMS, database, or static build output 2. **Push to SitemapHost** -- Send URLs to `POST /api/sitemap/generate` with your API key 3. **Automate** -- Trigger the push on content changes, deploys, or a scheduled cron ```bash # The universal pattern: POST your URLs curl -X POST https://dash.sitemaphost.app/api/sitemap/generate \ -H "Content-Type: application/json" \ -H "X-API-Key: sk_live_xxxxxxxxxxxxxxxx" \ -d '{ "domain": "sitemap.yoursite.com", "urls": [ { "loc": "https://yoursite.com/page-1" }, { "loc": "https://yoursite.com/page-2" } ] }' ``` ## Other Platforms While we provide detailed guides for Next.js and WordPress, SitemapHost works with any stack: - **Gatsby / Astro / Hugo** -- Run a post-build script that reads your output directory and pushes URLs - **Shopify** -- Use the Storefront API to fetch products and collections, then push to SitemapHost - **Ruby on Rails / Django / Laravel** -- Add a rake task, management command, or artisan command - **Headless CMS (Contentful, Sanity, Strapi)** -- Use webhooks to trigger sitemap updates on publish > **Need a guide for your platform?** [Contact us](mailto:support@sitemaphost.app) and we will consider adding it.