Logo White

Sitemaps

Build sitemap.xml dynamically in Next.js, Astro, or custom headless frontends using the sitemaps API. All sitemap endpoints require publication:read.

GET/v1/sitemaps/index

Sitemap index

Returns the canonical base URL and timestamps of the latest published post and page updates.

Request

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