Sitemaps

Generate an XML sitemap for the site

Changed on

Builds an XML sitemap from the team's crawled pages, honouring the excluded-URL rules. With makePublic=true it PUBLISHES the sitemap to a public URL that search engines can fetch — that is outward-facing, so confirm with the user before setting it. Leave makePublic false to just produce the file.

post/v3/sitemaps/generate

Request

  • Base URL: https://api.snowseo.com
  • URL: https://api.snowseo.com/v3/sitemaps/generate
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Request body

teamIdstring required

SnowSEO team ID. Call list_teams first to choose a team.

makePublicboolean

Publish the sitemap at a public URL. Outward-facing — ask the user first.

Response

Default Response

publicUrlstring
isPublicboolean
urlCountnumber
generatedAtstring
isIndexboolean
xmlstring

Changes