# Metalift Sitemap Fetcher

> Metalift Sitemap Fetcher is a paid API for AI agents from app.metalift.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Fetches all URLs from a website's XML sitemap by parsing robots.txt or /sitemap.xml, returning a structured list of site-wide URLs.

## Facts

- Endpoint: POST https://app.metalift.ai/v1/sitemap?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/metalift-sitemap-fetcher-f571c944
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jLVr2p7IzRysxQ-CKl5D9

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 metalift-sitemap-fetcher-f571c944 -d '<json body>'
```

Example prompt: Fetch all the URLs listed in the sitemap for https://example.com — I want a complete list of their pages before I start scraping content from each one.

## When to prefer this

Use this endpoint before batch scraping a website when you need a complete list of its indexed pages. Prefer this over the same-origin link discovery (map) endpoint when you want site-wide URL coverage rather than links from a single page. This is the right choice when the target site publishes an XML sitemap and you want an exhaustive URL inventory with minimal credits spent per URL.

## Known failure modes

- No sitemap found — robots.txt exists but references no sitemap, or /sitemap.xml returns 404
- Sitemap is malformed XML — parse error returned
- Website blocks the sitemap request (403/401 response)
- Sitemap index returns nested sitemaps that are very large — partial results or timeout
- Domain does not exist or is unreachable — connection error

## How this service works

Metalift sitemap: fetch URLs from XML sitemaps (robots.txt or /sitemap.xml). Prefer over map for site-wide URL lists before batch scrape. (1 credit ≈ $0.002 USDC)

## Output

A structured list of URLs discovered from the website's XML sitemap (found via robots.txt or /sitemap.xml), ready for downstream batch scraping or analysis. May include metadata like last-modified dates if present in the sitemap.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "Site homepage or direct sitemap.xml URL"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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