Sitemap
Contains all fields required to generate sitemaps.
Anchor to FieldsFields
- pagesCount (Count)
- resources (PaginatedSitemapResources)
- Anchor to pagesCountpages•Count
Count The number of sitemap's pages for a given type.
Show fields
- Anchor to resourcesresources•Paginated
Sitemap Resources A list of sitemap's resources for a given type.
Important Notes:
- The number of items per page varies from 0 to 250.
- Empty pages (0 items) may occur and do not necessarily indicate the end of results.
- Always check
to determine if more pages are available.
Requests for sitemap resources might be throttled. When a request is throttled,
resourcesreturnsnullwith an error whoseextensions.codeisTHROTTLED, and the HTTP status is still 200. To detect throttling, checkextensions.coderather than the error message. Treat a throttled page as failed rather than empty, and retry later.Show fields
- Anchor to pagepage•Int!required
The page number to fetch.
Arguments
Anchor to QueriesQueries
- sitemap (Sitemap!)
- •query
Returns sitemap data for a specific resource type, enabling headless storefronts to generate XML sitemaps for search engine optimization. The query provides a page count and paginated access to resources like
Product,Collection,Page, andBlogobjects.When paginating through resources, the number of items per page varies from 0 to 250, and empty pages can occur without indicating the end of results. Always check
to determine if more pages are available. Requests for sitemap resources might be throttled; seeresourcesfor how throttled requests are reported.Show fields
- Anchor to typetype•Sitemap
Type! required The type of the resource for the sitemap.
Show enum values
Arguments