---
title: "Check sitemap membership and changes"
description: "Read a Site generation, exact URL membership, and dated changes."
canonical_url: "https://gscdump.com/gscdump-sdk/guides/read-data/hosted-sitemaps"
last_updated: "2026-10-03T07:15:32.065Z"
---

# Check sitemap membership and changes

Sitemap membership describes an observed feed generation. It does not prove that a Search Engine indexed a URL.

## Before you start

Use `sitemaps:read` for an authorized Site. The [hosted first-result guide](/gscdump-sdk/guides/start/hosted-first-result) shows client setup.

## Read Site sitemaps

::pre{tabindex="0"}
```ts
const snapshot = await client.getSiteSitemaps({ params: { siteId } })
console.log(snapshot.data.sitemaps, snapshot.data.generation)
```
::

Read `snapshot.data.generation` and `snapshot.data.meta.syncStatus` with the feed list. No generation means the Site has no published membership observation yet.

## Check URL membership

::pre{tabindex="0"}
```ts
const membership = await client.querySitemapMembership({
  params: { siteId },
  body: { urls: ['https://example.com/docs'] },
})
console.log(membership.data.evidence)
```
::

The response uses `present`, `absent`, or `unknown` evidence for each exact URL. An `unknown` result can reflect a missing or incomplete generation. Do not turn it into `absent`.

## Read changes

::pre{tabindex="0"}
```ts
const changes = await client.getSiteSitemapChanges({
  params: { siteId },
  query: { days: 28 },
})
console.log(changes.data.added, changes.data.removed, changes.data.completeness)
```
::

Check the window and `completeness` before reporting a removal. See the [hosted HTTP contract](/gscdump-sdk/api/hosted-http) for pagination and optional fields.

## Handle incomplete observations

If generation or completeness is missing, show “unknown” and retry after a new observation. For URL inspection rather than feed membership, read [Hosted indexing](/gscdump-sdk/guides/read-data/hosted-indexing). [Webhooks](/gscdump-sdk/guides/build-integrations/webhooks) can notify your server of later changes.

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
