# CodePulse API - Web Scrape

> CodePulse API - Web Scrape 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-14).

Scrapes a webpage and returns its text content as plain text, with confidence scoring and warnings

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/web/scrape
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-web-scrape-f26567a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8HRJ-59mWHhVU-_LklTZ1

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

Example prompt: Can you scrape the text content from https://example.com and tell me what it says?

## When to prefer this

Use this endpoint when you need to extract the plain text content of a public webpage quickly and cheaply ($0.03 USDC per call) without managing a browser or API keys. Ideal for AI agents that need to read web content on demand. Prefer this over alternatives when you want pay-per-call pricing with no subscription, and when plain text extraction (not structured data) is sufficient.

## Known failure modes

- URL is unreachable or returns a non-200 status — supported may be false
- Page is JavaScript-heavy and content cannot be statically extracted — low confidence returned
- Invalid or malformed URL provided — error or empty result
- Payment not fulfilled via x402 — request rejected before scraping

## How this service works

Extracts clean readable text from any website URL.

## Output

Returns a JSON object containing the full extracted text content of the page, a list of warnings (if any), a supported flag indicating whether scraping succeeded, a confidence level (e.g. 'high'), and a data_as_of timestamp.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Website URL to scrape"
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "text": "Example Domain\nThis domain is for use in illustrative examples..."
  },
  "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-scrape-f26567a5/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)
