# Metalift Sitemap Fetcher

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

Fetches all URLs from a website's XML sitemap by discovering and parsing robots.txt or /sitemap.xml

## Facts

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

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-b4ed6434 -d '<json body>'
```

Example prompt: Fetch all the URLs listed in the sitemap for https://www.example.com so I can batch-scrape every page on the site.

## When to prefer this

Use this endpoint when you need a complete, structured list of all URLs on a site before performing batch scraping. It is preferable to the single-page link-discovery (map) endpoint when you want site-wide coverage rather than just links from one HTML page. It is more efficient than crawling page-by-page when the site has an XML sitemap.

## Known failure modes

- Site has no sitemap.xml and robots.txt provides no sitemap directive — returns empty or error
- URL provided is not a valid homepage or sitemap URL — validation error
- Target site blocks automated requests to sitemap — access denied or timeout
- Malformed XML sitemap — parsing failure
- Network timeout reaching the target domain

## 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 list of URLs extracted from the site's XML sitemap(s), discovered via robots.txt or /sitemap.xml, ready for use in batch scraping or further processing.

## 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-b4ed6434/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.metalift.ai](https://www.zero.xyz/host/api.metalift.ai/llms.txt)
