Sitemaps
You can list your sitemaps and download the corresponding xml file any time through our API.
List Sitemaps
GET https://sitemap.sh/api/sitemaps
This endpoint allows you to list your generated sitemap files.
Headers
Authorization
string
Include your bearer token in this request.
{
"sitemaps": [
{
"id": 7,
"uuid": "ioaci2u83u2re98fd",
"filename": "mxjdu9i273dc_2019_06_17_15_34_07.xml",
"project_id": 1,
"created_at": "yyyy-mm-dd h:m:s",
"updated_at": "yyyy-mm-dd h:m:s",
"project": {
// The project details, including locations
}
}
]
}Download a Sitemap
GET https://sitemap.sh/api/:uuid
This endpoint will provide the XML contents of a specific sitemap file. You can then store it in your local web directory and proceed to send it to the search engines.
Path Parameters
uuid
string
The uuid to identify the specific sitemap you want to download.
This endpoint is not protected. You can easily access your sitemaps from any location, without an API token. So be careful with your sitemaps's uuid's, as it is the only information needed to request your generated sitemap file.

Last updated
Was this helpful?