Build sitemap.xml dynamically in Next.js, Astro, or custom headless frontends using the sitemaps API. All sitemap endpoints require publication:read.
Sitemap index
GEThttps://api.bloghunch.com/v1/sitemaps/index
Returns the canonical base URL and timestamps of the latest published post and page updates.
GETRequest
curl https://api.bloghunch.com/v1/sitemaps/index \
-H "Authorization: Bearer {token}"Posts & Pages sitemaps
- Published posts sitemap:
GET /v1/sitemaps/posts(includes extracted image URLs & alt captions) - Published pages sitemap:
GET /v1/sitemaps/pages