# CodePulse API - Web Sitemap Fetcher

> CodePulse API - Web Sitemap Fetcher is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Fetches and returns all URLs listed in a website's sitemap for a given domain

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/web/sitemap
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-web-sitemap-fetcher-76cc4f90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zECSG3AR5DHwPuczGBMRI

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 codepulse-api-web-sitemap-fetcher-76cc4f90 -d '<json body>'
```

Example prompt: Can you fetch the full sitemap for example.com and give me a list of all the URLs it contains?

## When to prefer this

Use this endpoint when you need a structured list of all publicly indexed pages on a website without crawling every link manually. Ideal for site audits, content discovery, or seeding a crawler. Prefer this over generic scraping endpoints when you specifically need sitemap-derived URL enumeration rather than page content.

## Known failure modes

- Site has no sitemap.xml or robots.txt sitemap reference — supported:false returned
- Sitemap is malformed or non-standard format — warnings array populated
- Domain is unreachable or returns non-200 — error or empty result
- Sitemap is very large and may be truncated — warnings may indicate partial results
- Rate limiting or bot protection on target site blocks fetch

## How this service works

Resolves and lists all URLs inside a sitemap XML.

## Output

Returns a JSON object with a list of all URLs found in the website's sitemap, along with a confidence level (e.g. 'high'), a supported flag indicating whether the site has a parseable sitemap, any warnings encountered during fetching, and a data_as_of timestamp.

## 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",
       "description": "URL to sitemap.xml file"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "urls": [
    "https://example.com/home",
    "https://example.com/about"
   ]
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-web-sitemap-fetcher-76cc4f90/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
