API Documentation
Build, manage, and submit sitemaps programmatically. Integrate indexing pipelines with 100+ search engines.
https://api.sitemap.xml/v1
Base URL
All API requests should be made to:
Authentication
Authenticate your requests using API keys. Include your key in the Authorization header as a Bearer token.
Keep your API keys secure. Never expose them in client-side code or public repositories. Generate keys from your Dashboard → API Settings.
Rate Limits
API requests are rate-limited to ensure stable performance across all users. Limits are applied per API key:
- Starter: 100 requests/hour
- Professional: 2,500 requests/hour
- Enterprise: Custom limits (contact sales)
Rate limit headers are included in every response:
Generate Sitemap
Initiates a full crawl of the target URL and generates an optimized XML sitemap. Supports dynamic content, pagination, and multi-language structures.
Request Body
| Parameter | Type | Description |
|---|---|---|
target_url Required | string | The root URL to crawl (e.g., https://example.com) |
max_urls Optional | integer | Maximum URLs to include (default: 50000) |
include_assets Optional | boolean | Include images, videos, and news extensions |
webhook_url Optional | string | URL to receive completion notifications |
Example Request
Success Response (202)
Get Sitemap Status
Retrieve the current status, progress, and statistics for a generated sitemap.
Response Example
Submit for Indexing
Push URLs directly to major search engine indexing APIs (Google Indexing API, Bing, Yandex). Returns immediate acknowledgment with tracking IDs.
Request Body
| Parameter | Type | Description |
|---|---|---|
urls Required | array[string] | List of URLs to submit (max 200 per request) |
engines Optional | array[enum] | ["google", "bing", "yandex"] (default: all) |
priority Optional | string | "normal" or "urgent" |
Errors
The API uses standard HTTP status codes and returns detailed error objects when requests fail:
Error Response Format
SDKs & Libraries
Official client libraries are available for popular languages. They handle authentication, retries, and pagination automatically:
- JavaScript/Node.js:
npm install @sitemap/sdk - Python:
pip install sitemap-client - Go:
go get github.com/sitemap-xml/go-client - PHP:
composer require sitemap/xml-sdk