Automate sitemap generation, indexing, and SEO monitoring directly from your repositories. Official SDKs, CI/CD workflows, and open-source tools.
repo and workflow scopes.# Install via npm
npm install @sitemap/cli
# Or via yarn
yarn add @sitemap/cli
SITEMAP_API_KEY=sm_live_8x7K2p9Qm1vR4tYw
GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxx
REPO_OWNER=your-org
REPO_NAME=your-repo
npx sitemap init --target github
npx sitemap generate --dry-run
Add the following workflow to .github/workflows/sitemap.yml to automate sitemap generation on every push to main.
name: Generate & Submit Sitemap
on:
push:
branches: [main]
schedule: # Daily at 06:00 UTC
- cron: '0 6 * * *'
jobs:
sitemap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install CLI
run: npm ci && npx sitemap init
env:
SITEMAP_API_KEY: ${{ secrets.SITEMAP_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate & Push
run: npx sitemap generate --auto-commit
env:
COMMIT_USERNAME: sitemap-bot
COMMIT_EMAIL: bot@sitemap.xml
GITHUB_TOKEN has contents: write permissions to auto-commit generated sitemaps.Command-line interface for sitemap generation, validation, and search engine submission.
Core parsing engine supporting XML, JSON, HTML, and video/image sitemap extensions.
High-performance Go library for streaming sitemap generation and URL indexing.
Python SDK with async support, FastAPI middleware, and Celery task integration.
Programmatic control over sitemap generation, indexing status, and crawl requests.
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/sitemaps/generate | Trigger manual sitemap build & submit |
| GET | /v1/index/status | Check indexing status across major search engines |
| POST | /v1/crawl/request | Force immediate crawl for new/updated URLs |
| GET | /v1/analytics/coverage | Retrieve coverage reports & crawl errors |
Receive real-time notifications when sitemap events occur in your repository.
// POST payload example
{
"event": "sitemap.generated",
"repo": "org/repo",
"urls_count": 1428,
"submitted_to": ["google", "bing", "yandex"],
"timestamp": "2025-01-15T08:32:11Z"
}
Connect your GitHub account securely using OAuth 2.0. We never store your GitHub password.
https://github.com/login/oauth/authorize?client_id=YOUR_CLIENT_IDPOST https://github.com/login/oauth/access_tokenrepo, workflow, public_repocontents: write and that your repository allows commits from GitHub Actions.sitemap:write permissions in the dashboard.--dry-run to preview changes before committing to your repo.--stream mode to reduce memory usage.Still stuck? Our developer community is here to help.
Join GitHub Discussions