# WebMD Extract – Web Page to Markdown Extractor

> WebMD Extract – Web Page to Markdown 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-10-29).

Fetches a public URL and returns its content as clean Markdown with metadata such as title, headings, links, word count, and robots status

## Facts

- Endpoint: GET https://api.firstmention.uk/s/webmd/extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/webmd-extract-web-page-to-markdown-extractor-99c0ac5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P7B4ghEVE0CkyLcrNHABs

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-extract-web-page-to-markdown-extractor-99c0ac5c
```

Example prompt: Can you fetch the content of https://en.wikipedia.org/wiki/Artificial_intelligence and give me the full text as markdown, with up to 100 links listed?

## When to prefer this

Use this endpoint when you need to read, extract, or convert the content of a specific known public URL into structured, agent-readable Markdown. It is ideal when you already have the URL and want clean text with headings, link counts, and robots metadata — rather than discovering URLs (use websearch for that) or auditing page quality (use pageaudit). At $0.01 USDC per call via x402 micropayment, it is cost-effective for single-page reads or small batches.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — ok: false with HTTP status code
- URL points to a non-HTML resource (PDF, binary) that cannot be parsed to markdown
- Page blocks bots via robots.txt — robots.allowed: false returned
- Invalid or malformed URL input — validation error returned
- Timeout if the target server is slow to respond
- Truncated response if page content is very large — truncated: true flag set

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, basewatch, chainread, check-sanctions, chgwatch, company-facts, composite, edgar, feednews, pageaudit, solcheck, token-dd, txpreflight, walletcheck, webmd, webread, websearch, x402index. Each operation describes its service.

## Output

A JSON object containing: ok (success flag), the resolved final_url, page title, language code, content format, markdown rendering of the page body, word_count, markdown_chars, truncated flag, headings array with levels, links_count, external_links_count, robots crawl permission, page description, and price_usd charged per call.

## 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",
     "properties": {
      "url": {
       "type": "string",
       "description": "Absolute public http(s) URL to extract"
      },
      "urls": {
       "type": "array",
       "items": {
        "type": "string"
       },
       "description": "Batch (POST only): array of up to 10 URLs to extract in one call"
      },
      "links_max": {
       "type": "integer",
       "description": "Max links to list (0-1000, default 200)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "title": {
       "type": "string"
      },
      "status": {
       "type": "number"
      },
      "markdown": {
       "type": "string"
      },
      "final_url": {
       "type": "string"
      },
      "word_count": {
       "type": "number"
      },
      "markdown_chars": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "url": "https://example.com/",
  "lang": "en",
  "title": "Example Domain",
  "format": "html",
  "robots": {
   "allowed": true
  },
  "headings": [
   {
    "text": "Example Domain",
    "level": 1
   }
  ],
  "markdown": "This domain is for use in documentation examples without needing permission.",
  "price_usd": "0.01",
  "truncated": false,
  "word_count": 25,
  "description": "",
  "links_count": 0,
  "external_links_count": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webmd-extract-web-page-to-markdown-extractor-99c0ac5c/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)
