Sitemap Generator API

POST

Build search-engine-ready XML sitemaps from your URL lists.

Sitemap Generator creates valid XML sitemaps from URL lists following the sitemaps.org protocol for search engine optimization.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/sitemapgenerator
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "sitemap": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n  <url>\n    <loc>https://example.com/</loc>\n    <lastmod>2025-12-16</lastmod>\n    <changefreq>weekly</changefreq>\n    <priority>0.5</priority>\n  </url>\n  <url>\n    <loc>https://example.com/about</loc>\n    <lastmod>2025-12-16</lastmod>\n    <changefreq>weekly</changefreq>\n    <priority>0.5</priority>\n  </url>\n  <url>\n    <loc>https://example.com/contact</loc>\n    <lastmod>2025-12-16</lastmod>\n    <changefreq>weekly</changefreq>\n    <priority>0.5</priority>\n  </url>\n  <url>\n    <loc>https://example.com/blog</loc>\n    <lastmod>2025-12-16</lastmod>\n    <changefreq>daily</changefreq>\n    <priority>0.8</priority>\n  </url>\n  <url>\n    <loc>https://example.com/products</loc>\n    <lastmod>2025-12-16</lastmod>\n    <changefreq>weekly</changefreq>\n    <priority>0.9</priority>\n  </url>\n</urlset>",
    "urlCount": 5,
    "sizeBytes": 892,
    "sizeKb": 0.87,
    "format": "XML",
    "protocol": "sitemaps.org/0.9",
    "settings": {
      "defaultChangeFreq": "weekly",
      "defaultPriority": 0.5,
      "includeLastMod": true,
      "baseUrl": "https://example.com"
    }
  }
}

About the Sitemap Generator API

Generates properly formatted XML compliant with search engine requirements, supporting up to 50,000 URLs per sitemap.

What people use it for

SEO Optimization
Generate sitemaps to help search engines index website content
Website Management
Create and maintain XML sitemaps for content management systems
Build Automation
Integrate sitemap generation into website deployment pipelines
Multi-site Management
Generate sitemaps for multiple websites with custom configurations

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Sitemap Generator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Sitemap Generator API.

Read the docs →
How many sitemaps does the Free plan cover?
The Free plan gives you 200 credits each month, which generates 100 sitemaps. On the Starter plan, 100,000 sitemaps consume your monthly 200,000 credits, which works out to about $0.30 per 1,000 sitemaps.
Do I get sitemap file sizes on the Free plan?
No. Sitemap file size in bytes and kilobytes is reserved for paid plans starting with Starter. The Free plan returns the generated XML sitemap, URL count, protocol information, and applied configuration settings.
How many URLs can I include in a single sitemap?
You can supply up to 50,000 URLs in a single request. This aligns with the sitemaps.org specification limit for individual sitemap files.
Can I supply relative paths instead of full URLs?
Yes. You can provide relative paths along with a base URL parameter, and the generator automatically combines them into full absolute paths. You can pass URLs as plain strings or as objects containing individual priority, change frequency, and last modified values.
Does the generated XML follow the official sitemaps.org standard?
Yes. Sitemap Generator formats the XML to adhere strictly to the sitemaps.org protocol recognized by major search engines. It maps priority values, change frequencies, and last modified dates to standard schema tags.

Ready to build with Sitemap Generator? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs