# AgentGate Web Content Extractor

> AgentGate Web Content Extractor is a paid API for AI agents from agentgate-x402.netlify.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Extracts clean readable text, links, headings, and metadata from any HTTP/HTTPS web page URL, payable per-call in USDC via x402.

## Facts

- Endpoint: GET https://agentgate-x402.netlify.app/api/extract
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentgate-web-content-extractor-ca023db5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Rp6R-q9hCUoXXWqpYUT9-

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 agentgate-web-content-extractor-ca023db5
```

Example prompt: Can you pull the clean readable text and all the links from this page for me: https://techcrunch.com/2024/01/15/openai-latest-news/

## When to prefer this

Choose this endpoint when an AI agent needs to retrieve and parse the readable content of a specific, known URL without setting up API keys or accounts. It is ideal for single-page extraction tasks where you want clean text plus structured metadata (links, headings, word count) and are comfortable paying $0.005 USDC per call via the x402 protocol on Base. Prefer alternatives if you need to crawl entire sites, handle JavaScript-heavy SPAs, or require bulk/batch processing at lower per-call cost.

## Known failure modes

- URL is unreachable or returns a non-200 status — endpoint may return an error or empty content
- Page is JavaScript-rendered (SPA) and static extraction may miss dynamic content
- Paywalled or login-gated pages return only the gated content or an access-denial page
- Malformed or non-HTTP URL input causes a request validation error
- Insufficient USDC balance or failed x402 payment results in a 402 Payment Required response with no content returned

## How this service works

Machine-payable micro-APIs: web content extraction, airport data, route distances and DNS intelligence. No accounts, no API keys — AI agents pay $0.002–$0.005 per request in USDC on Base via the x402 protocol.

## Output

Returns a JSON object containing the page URL, clean readable text stripped of HTML, an array of links with href and anchor text, the page title, an array of headings, a word count integer, and a meta description string.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "http(s) URL of the page to extract"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/article",
  "text": "Clean readable text…",
  "links": [
   {
    "href": "…",
    "text": "…"
   }
  ],
  "title": "Example article",
  "headings": [
   "…"
  ],
  "wordCount": 1240,
  "description": "…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentgate-web-content-extractor-ca023db5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentgate-x402.netlify.app](https://www.zero.xyz/host/agentgate-x402.netlify.app/llms.txt)
