# TokenGuard API - Web Sitemap Fetcher

> TokenGuard API - Web Sitemap Fetcher is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Fetches and parses the sitemap of a given website, returning all URLs with their last-modified dates and nested sitemap index references

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/web/sitemap
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-api-web-sitemap-fetcher-e9649458
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vybe_vjvK3WfdGQV7huMp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tokenguard-api-web-sitemap-fetcher-e9649458 -d '<json body>'
```

Example prompt: Can you fetch the sitemap for https://uniswap.org and give me all the page URLs it lists along with when they were last updated?

## When to prefer this

Choose this endpoint when you need a quick, structured inventory of all public URLs on a website without manually crawling every page. It is especially useful for understanding the content scope of crypto/DeFi project sites, performing SEO audits, or bootstrapping a crawl plan. Prefer this over a full web crawl when you only need the URL list and last-modified metadata, not page content.

## Known failure modes

- Site has no sitemap.xml or robots.txt sitemap directive — returns empty or error
- Site blocks the fetcher with a 403/robots disallow — returns access denied error
- Malformed sitemap XML causes parse failure
- Network timeout if the target site is slow or unreachable
- Large sitemaps with thousands of URLs may truncate or time out
- Payment not fulfilled via x402 micropayment — returns 402 Payment Required

## How this service works

Enumerate a site's URLs from robots.txt + sitemap.xml (sitemap-index aware) — map a domain before crawling it

## Output

Returns a JSON object containing the target site URL, an array of page entries each with a 'loc' (URL) and 'lastmod' (last modified date), a total count of URLs found, and an array of any nested sitemap index URLs discovered.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Site URL or bare domain"
  },
  "max_urls": {
   "type": "integer",
   "description": "Cap on returned URLs (default 500, max 2000)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "site": "https://example.com",
  "urls": [
   {
    "loc": "https://example.com/a",
    "lastmod": "2026-07-01"
   }
  ],
  "count": 120,
  "sitemaps": [
   "https://example.com/sitemap.xml"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-api-web-sitemap-fetcher-e9649458/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
