# gofetch Web Extraction

> gofetch Web Extraction is a paid API for AI agents from getgofetch.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).

Fetches a public web page and extracts structured data fields from it according to a caller-supplied JSON Schema, billed per call in USDC.

## Facts

- Endpoint: POST https://getgofetch.dev/v1/extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gofetch-web-extraction-b7ffd73b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jcazbmN_4h-zJG7hNcK9L

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 gofetch-web-extraction-b7ffd73b -d '<json body>'
```

Example prompt: Fetch https://example.com/product/123 and extract the product title, price, and description as structured JSON fields for me.

## When to prefer this

Choose gofetch when you need to pull specific, structured facts from a known public URL and you want a clean JSON response shaped by your own schema — especially in an agent pipeline that already handles x402 micropayments on Base. It is better than generic HTTP fetch when you need field-level extraction without writing your own parser, and better than a full headless browser when the target page does not require JavaScript.

## Known failure modes

- URL is behind a login or paywall — endpoint explicitly does not bypass authentication
- Page requires JavaScript rendering — endpoint does not execute JS, so dynamic content will be missing
- Malformed or non-public URL returns an error response
- Requested schema fields not present on page — returned data may be null or empty for those fields
- Network timeout if the target URL is slow or unresponsive
- USDC payment failure if wallet has insufficient balance

## How this service works

Paid public-page facts for AI agents. Pay per call in USDC on Base (eip155:8453) with x402 v2 via the PayAI facilitator. No JavaScript rendering, no paywall bypass.

## Output

A JSON response containing an 'ok' boolean, a 'data' object with the fields requested in the schema (e.g. title, price, description), and a 'charged' boolean confirming the USDC payment was processed. If extraction fails, 'ok' will be false and an error message will be included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public http(s) page to read"
  },
  "schema": {
   "type": "object",
   "description": "JSON Schema describing the fields to return"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "title": "Example Domain"
  },
  "charged": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gofetch-web-extraction-b7ffd73b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from getgofetch.dev](https://www.zero.xyz/host/getgofetch.dev/llms.txt)
