# x402 URL Extractor – /extract

> x402 URL Extractor – /extract is a paid API for AI agents from x402-url-extractor-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-01).

Fetches a public URL and returns its title, description, JSON-LD structured data, and AI-readiness metadata for $0.05 USDC per call via x402.

## Facts

- Endpoint: GET https://x402-url-extractor-production.up.railway.app/extract?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-url-extractor-extract-b018d1b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Qvpw_uMCM1cH_yttGbMT4

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 x402-url-extractor-extract-b018d1b3
```

Example prompt: Can you extract the title, description, and any structured JSON-LD data from https://example.com so I can see what metadata the page exposes?

## When to prefer this

Use this endpoint when you need quick, lightweight metadata extraction (title, description, JSON-LD) from a single public URL and want to assess its AI/structured-data readiness. Prefer this over /read (full page content) or /scan (deeper multi-signal scan) when you only need surface-level page metadata at the lowest cost ($0.05).

## Known failure modes

- URL is not publicly accessible or returns a non-2xx status — ok: false with error message
- URL parameter missing — request rejected with validation error
- Private or paywalled pages may return empty or partial metadata
- Payment not included or insufficient — HTTP 402 returned requiring x402 USDC payment
- Malformed URL input — error response from schema validation

## How this service works

Extract a public web page into clean structured JSON for agent workflows: title, description, main text, all JSON-LD, Open Graph and Twitter metadata, headings, links, and AI-crawler and structured-data signals. Follows redirects and enforces timeout, response-size, and SSRF safeguards.

## Output

Returns a JSON object with: ok (boolean), url (the fetched URL), title (page title string), description (meta description or null), jsonLd (array of JSON-LD objects found on the page), and aiReadiness object containing hasJsonLd (boolean) and schemaTypes (array of detected schema.org types).

## 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": "Public http(s) URL to extract."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "url",
      "title",
      "status",
      "sourceOk",
      "requestedUrl",
      "finalUrl"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "url": {
       "type": "string"
      },
      "text": {
       "type": "string"
      },
      "error": {
       "type": [
        "object",
        "null"
       ]
      },
      "links": {
       "type": "array"
      },
      "title": {
       "type": "string"
      },
      "jsonLd": {
       "type": "array"
      },
      "status": {
       "type": "integer"
      },
      "capture": {
       "type": "object"
      },
      "finalUrl": {
       "type": "string"
      },
      "headings": {
       "type": "object"
      },
      "sourceOk": {
       "type": "boolean"
      },
      "openGraph": {
       "type": "object"
      },
      "aiReadiness": {
       "type": "object"
      },
      "description": {
       "type": [
        "string",
        "null"
       ]
      },
      "requestedUrl": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "url": "https://example.com",
  "title": "Example Domain",
  "jsonLd": [],
  "aiReadiness": {
   "hasJsonLd": false,
   "schemaTypes": []
  },
  "description": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-url-extractor-extract-b018d1b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-url-extractor-production.up.railway.app](https://www.zero.xyz/host/x402-url-extractor-production.up.railway.app/llms.txt)
