Features Pricing Regions Support Start free Log in FR

List sitemaps

Returns all top-level sitemaps for a site. Child sitemaps (from sitemap indexes) are not included.

GET /v1/sites/{id}/sitemaps

Requires scope: sites:read

Path parameters

ParameterTypeRequiredDescription
id integer Required Site ID.

Example request

curl https://api.cache-boost.com/v1/sites/42/sitemaps \
  -H "Authorization: Bearer cb_live_YOUR_KEY"

Response

Returns 200 OK with an array of sitemap objects.

[
  {
    "id": 7,
    "url": "https://www.example.com/sitemap.xml",
    "status": "ready",
    "status_message": null,
    "last_processed_at": "2025-01-15T02:00:00Z",
    "created_at": "2025-01-10T09:00:00Z"
  }
]

Status values

ValueDescription
waitingQueued for download.
downloadingCurrently downloading the sitemap file.
parsingExtracting URLs from the sitemap.
readyProcessed successfully — URLs are available.
errorProcessing failed. See status_message for details.

Errors

CodeDescription
401Missing or invalid API key.
403Insufficient scope or access denied.
404Site not found.