/v1/sitemapAPI keyFind and expand a site's sitemaps, or its feeds, into a flat URL list.
Body
| Field | Type | Detail |
|---|---|---|
| url required | string | Any URL on the site. |
| target | "sitemap" | "feeds" | Which walker to run. Default sitemap. |
curl https://api.snakereach.com/v1/sitemap \
-H "X-API-Key: $SNAKEREACH_API_KEY" \
-H "content-type: application/json" \
-d '{"url": "https://example.com", "target": "sitemap"}'{
"url": "https://example.com",
"target": "sitemap",
"urls": [
"https://example.com/article",
"https://example.com/docs"
],
"count": 2
}Errors
- 422 target was neither sitemap nor feeds