82trust / 100
Url Map
by 2s in Weather & location
x402 APIPassing, checked 26 min ago
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 }.
GET https://2s.io/api/url/map
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 151 ms typical, 151 ms slowest 5%
- Last check
- 26 min ago
- Next check
- in 5 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://2s.io/api/url/map?limit=50&url=https%3A%2F%2Fwww.anthropic.com%2Fsitemap.xml"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F2s.io%2Fapi%2Furl%2Fmap
const res = await pay("https://2s.io/api/url/map?limit=50&url=https%3A%2F%2Fwww.anthropic.com%2Fsitemap.xml");
console.log(await res.json());Example input
{
"limit": 50,
"url": "https://www.anthropic.com/sitemap.xml"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 26 min ago | Passed | 402 | 246 ms | $0.0027 |
| 6 h ago | Passed | 402 | 151 ms | $0.0027 |