{"slug":"2s-io-api-url-map-79dfa4","title":"Discover the URLs a page or sitemap points at in a single fetch","host":"2s.io","method":"GET","resource":"https://2s.io/api/url/map","category":"code","description":"Discover the URLs a page or sitemap points at in a single fetch. Point it at an XML sitemap or sitemap-index and it returns the <loc> URLs; point it at an HTML page and it returns the <a href> links — auto-detected. URLs are resolved to absolute, de-duplicated, fragment-stripped, and http(s)-only. `","price_listed":0.0027,"price_asked":0.0027,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":255,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"limit":50,"url":"https://www.anthropic.com/sitemap.xml"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"method":{"const":"GET"},"queryParams":{"properties":{"limit":{"default":200,"maximum":2000,"minimum":1,"type":"integer"},"sameHostOnly":{"default":false,"type":"boolean"},"url":{"type":"string"}},"required":["url"]},"type":{"const":"http"}},"required":["type","method","queryParams"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0027,"price_match":true,"latency_ms":255,"error":null}],"description_full":"Discover the URLs a page or sitemap points at in a single fetch. Point it at an XML sitemap or sitemap-index and it returns the <loc> URLs; point it at an HTML page and it returns the <a href> links — auto-detected. URLs are resolved to absolute, de-duplicated, fragment-stripped, and http(s)-only. `limit` (1-2000, default 200) caps the count; `sameHostOnly` keeps only links on the same host. Single SSRF-guarded fetch, no JavaScript, stateless — NOT a recursive crawler: to go deeper, call map again on a child sitemap or a discovered page. Returns { url, finalUrl, source: \"sitemap\"|\"links\", count, capped, urls }.","last_updated":"2026-09-19T15:59:13.601Z","schemes":["exact"]}