# Extract API – Sitemap Fetcher

> Extract API – Sitemap Fetcher is a paid API for AI agents from extract-x402.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-21).

Fetches and returns a structured sitemap (list of URLs with metadata) for a given website, paying $0.01 USDC via x402 on Base.

## Facts

- Endpoint: GET https://extract-x402.vercel.app/v1/sitemap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-api-sitemap-fetcher-39694382
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AsecoGPprSkq-mbaZIbOc

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 extract-api-sitemap-fetcher-39694382
```

Example prompt: Can you fetch the full sitemap for https://example.com and list all the pages on it, up to 500 URLs?

## When to prefer this

Choose this endpoint when you need to quickly discover all pages of a website without crawling it page-by-page. It is ideal for SEO audits, content inventories, competitor research, and feeding page lists into downstream scraping or analysis pipelines. Prefer it over full-site crawling when you only need the URL index, not page content.

## Known failure modes

- Invalid or unreachable URL returns an error or empty sitemap
- Site has no sitemap.xml — returns empty or partial results
- Payment not provided or insufficient — HTTP 402 response blocking access
- Limit parameter not respected if the sitemap is very large
- Malformed URL input causes a validation error

## How this service works

Paid web & document extraction (single or batch), rendering, screenshots, URL-to-PDF and site intelligence for AI agents. Payment via x402 (HTTP 402) in USDC on Base (eip155:8453). $0.01 per extract/sitemap/feed, $0.02 per render/screenshot/pdf, $0.03 per site-intel, $0.05 per 10-URL batch.

## Output

Returns a JSON object with type 'sitemap', an array of URL entries each containing a 'loc' (URL string) and optional 'lastmod' (last modified date), plus a total 'count' of URLs found and the 'origin' domain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string"
      },
      "limit": {
       "type": "string",
       "description": "max URLs, default 500"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "sitemap",
  "urls": [
   {
    "loc": "https://example.com/about",
    "lastmod": "2026-01-01"
   }
  ],
  "count": 120,
  "origin": "https://example.com"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/extract-api-sitemap-fetcher-39694382/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from extract-x402.vercel.app](https://www.zero.xyz/host/extract-x402.vercel.app/llms.txt)
