Get a Sitemap’s Index
Required scope:
public-api:read
Description
This endoint returns a sitemap index containing links to individual sitemap files. The Sitemap Guide explains how to setup sitemaps for a Livingdocs delivery.
Use Cases
- Provides a Sitemap Index for Deliveries (linked via robots.txt)
Endpoint
GET api/v1/sitemaps/index
Parameters
Name | Type | Required | Notes |
---|---|---|---|
:baseUrl | string | x | Base url of the delivery host. Example: ?baseUrl=https://livingdocs.io/ |
:contentTypes | string | A comma-separated list of contentTypes to include in the sitemap. Example: ?contentTypes=regular,pages | |
:entriesPerPage | string | Optional sitemap entry page size. Default 20000 |
Response
Get a Sitemap’s Entries
Required scope:
public-api:read
Endpoint
GET api/v1/sitemaps/entries
Parameters
Name | Type | Required | Notes |
---|---|---|---|
:baseUrl | string | x | Base url of the delivery host. Example: ?baseUrl=https://livingdocs.io/ |
:date | string | x | Date for the specific month matching the schema from the sitemap index file. Example: ?date=2021-06 or ?date=2021-06.2 |
:contentTypes | string | A comma-separated list of contentTypes to include in the sitemap. Example: ?contentTypes=regular,pages | |
:entriesPerPage | string | Optional sitemap entry page size. Default 20000 |