# WebMD Sitemap Extractor

> WebMD Sitemap Extractor is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-24).

Fetches and returns the sitemap of a given public website URL, listing up to 25 discoverable pages in markdown format

## Facts

- Endpoint: GET https://api.firstmention.uk/s/webmd/sitemap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/webmd-sitemap-extractor-9b064351
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-uJY-0hxXli19xG2xvVn4

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 webmd-sitemap-extractor-9b064351
```

Example prompt: Can you fetch the sitemap for https://techcrunch.com and list up to 20 pages from it?

## When to prefer this

Use this endpoint when you need to quickly discover the page structure or index of a public website without manually browsing it. It is ideal for content audits, competitor analysis, or seeding a crawler with known URLs. Prefer this over a full web crawl when you only need a list of pages rather than deep content extraction.

## Known failure modes

- Invalid or unreachable URL returns an error or ok:false
- Max pages value above 25 is capped at 25
- Private or paywalled sites may return incomplete or empty results
- Malformed URL input causes schema validation failure
- Sites without a sitemap or with blocked crawlers return limited results

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

Returns a JSON object with ok status, the resolved URL, page title, page content in markdown format, word count, and character count of the markdown — representing the discovered sitemap pages of the target website.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "max": {
       "type": "integer",
       "description": "For /sitemap: max pages, default 10, cap 25"
      },
      "url": {
       "type": "string",
       "format": "uri",
       "description": "Public page URL"
      },
      "mode": {
       "enum": [
        "text",
        "article",
        "full"
       ],
       "type": "string",
       "description": "Extraction mode"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "url": {
       "type": "string"
      },
      "title": {
       "type": "string"
      },
      "markdown": {
       "type": "string"
      },
      "word_count": {
       "type": "number"
      },
      "markdown_chars": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "url": "https://example.com/article",
  "title": "Example",
  "markdown": "# Example Hello world.",
  "word_count": 2,
  "markdown_chars": 24
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webmd-sitemap-extractor-9b064351/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
