Docs
Key Pages from Sitemap
Key Pages from Sitemap
Discover representative URLs from a site map hierarchy.
Endpoint
POST /api/v1/key-pages-from-sitemap
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
url | string (URL) | Yes | The website or sitemap URL used to discover key pages. Protocol is optional. |
Example Request
curl -s -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://site.com"
}' \
"https://api.watchero.io/api/v1/key-pages-from-sitemap"Example Response
{
"pages": [
"https://site.com/",
"https://site.com/en/",
"https://site.com/pricing/"
]
}The service follows sitemap indexes recursively, filters URLs to the source domain, and returns a deduplicated list with one representative page per directory level. Validation errors respond with HTTP 400; other failures respond with HTTP 500.