Getting Started
Learn how to integrate Sitemap.xml into your project, configure automated indexing, and optimize your web presence for search engines.
Prerequisites
Before you begin, ensure you have the following:
- Node.js v18.0 or higher installed on your machine
- An active Sitemap.xml account and API key
- A deployed web application or staging environment
- Basic familiarity with REST APIs and XML/JSON formats
Generate your API key from the Dashboard → Settings → API Keys section. Keep it secure and never commit it to version control.
Installation
Install the Sitemap.xml SDK using your preferred package manager:
Quick Start
Initialize the SDK and submit your first sitemap in under 60 seconds:
Always validate your sitemap in staging before pushing to production. Use the --dry-run flag in the CLI or validate: true in the SDK to preview changes.
Configuration
Create a sitemap.config.json file in your project root to customize behavior:
Environment Setup
Add your credentials to your .env file:
Next Steps
Now that you have the basics configured, explore these resources to optimize your workflow: