# NightCobbler Web Extraction API

> NightCobbler Web Extraction API is a paid API for AI agents from api.nightcobbler.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Fetches a URL and returns clean, LLM-ready Markdown or JSON by stripping scripts, navigation, and boilerplate while preserving headings, lists, tables, and code blocks

## Facts

- Endpoint: POST https://api.nightcobbler.com/v1/extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightcobbler-web-extraction-api-6039424e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4fGYSFjKCtJi9MUiJgdAi

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 nightcobbler-web-extraction-api-6039424e -d '<json body>'
```

Example prompt: Fetch https://en.wikipedia.org/wiki/Artificial_intelligence and give me the main content as clean markdown, stripped of all navigation and scripts.

## When to prefer this

Choose this endpoint when you need clean, LLM-ready text from a URL without setting up an API key or signing up for a service. It is ideal for one-off or low-volume page extractions where you want structured Markdown or JSON output with boilerplate stripped. Prefer it over full browser automation tools when the page content is mostly server-rendered. It is pay-per-call via x402 protocol, making it cost-effective for sporadic use without subscription overhead.

## Known failure modes

- Invalid or unreachable URL returns an error — ensure the URL is absolute and accessible
- Private or paywalled pages may return incomplete or empty content
- Very large pages may be truncated or slow to process
- Non-HTML responses (e.g. PDFs, binary files) may not extract meaningful content
- Pages requiring JavaScript rendering may return incomplete content if the site relies heavily on client-side rendering

## How this service works

URL to clean, LLM-ready Markdown or JSON. Strips scripts, nav, and boilerplate; keeps headings, lists, tables, and code blocks. JSON mode adds the page title; every response carries a fetch timestamp. No signup, no API key — pay per call.

## Output

Returns a JSON object containing the original URL, the chosen format ('markdown' or 'json'), the cleaned page content as a string with headings/lists/tables/code blocks preserved, and a fetched_at ISO 8601 timestamp indicating when the page was retrieved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "Absolute http(s) URL to fetch"
  },
  "format": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "format": {
   "enum": [
    "markdown",
    "json"
   ],
   "type": "string"
  },
  "content": {
   "type": "string"
  },
  "fetched_at": {
   "type": "string",
   "format": "date-time"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightcobbler-web-extraction-api-6039424e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.nightcobbler.com](https://www.zero.xyz/host/api.nightcobbler.com/llms.txt)
