Skip to content

Generate Blog Sitemap

GET
/api/v1/posts/seo/sitemap.xml

Responses

XML sitemap

application/xml
XML

Playground

Samples

Powered by VitePress OpenAPI

Generate the blog SEO sitemap.

Auth: public.

Parameters

None.

Request Body

None.

Response 200

xml
<urlset>
	<url>
		<loc>https://your-site.com/blog/hello-world</loc>
	</url>
</urlset>

Response Errors

  • 500 sitemap generation error

Notes

  • Useful for search engine indexing.
  • Keep it wired to the currently published content only.