REST API
Generate a sitemap for all published articles in XML or JSON format.
GET
{{baseUrl}}/v1/seo/sitemapAuth required
| Property | Type | Description | Default |
|---|---|---|---|
baseUrl* | string | Base URL for all links | - |
format | 'xml' | 'json' | Output format | 'xml' |
path | string | Path prefix (e.g., 'blog' for /blog/article-slug) | - |
Returns XML sitemap conforming to the Sitemap protocol.
| Property | Type | Description | Default |
|---|---|---|---|
entries* | SitemapEntry[] | - | - |
generatedAt* | string | - | - |
| Property | Type | Description | Default |
|---|---|---|---|
url* | string | - | - |
lastModified* | string | - | - |
changeFrequency* | 'daily' | 'weekly' | 'monthly' | - | - |
priority* | number | - | - |
cURL Command
curl -X GET "https://api.simplist.blog/v1/seo/sitemap?baseUrl=https://myblog.com&format=xml&path=blog" \
-H "X-API-Key: YOUR_API_KEY"<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://myblog.com/blog/getting-started</loc>
<lastmod>2025-01-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://myblog.com/blog/advanced-features</loc>
<lastmod>2025-01-20</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>{
"data": {
"entries": [
{
"url": "https://myblog.com/blog/getting-started",
"lastModified": "2025-01-15T10:30:00Z",
"changeFrequency": "weekly",
"priority": 0.8
}
],
"generatedAt": "2025-12-09T12:00:00Z"
}
}If you're using TypeScript/JavaScript, you can use the SDK instead: client.seo.getSitemap()