# UOS Genesis URL-to-JSON Converter

> UOS Genesis URL-to-JSON Converter is a paid API for AI agents from genesis.palsus2023.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Fetches a public URL and converts the web page content into structured machine-readable JSON, extracting title, text, headings, and links.

## Facts

- Endpoint: POST https://genesis.palsus2023.workers.dev/v1/url_to_json?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uos-genesis-url-to-json-converter-83c503e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6pR0mitOUheSxXZ1MLU8A

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 uos-genesis-url-to-json-converter-83c503e2 -d '<json body>'
```

Example prompt: Fetch the page at https://example.com/article and convert it into structured JSON so I can see the title, all the headings, the main text, and every link on the page.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call web page to structured JSON conversion with no setup, authentication tokens, or scraping infrastructure required — particularly suited for AI agent workflows that need to programmatically ingest public web content and can settle micropayments in USDC via x402.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — fetch fails with an error
- URL points to a non-HTML resource (PDF, binary, image) — text extraction may be empty or malformed
- Network timeout if target server is slow — request times out
- Malformed or invalid URI in the url field — validation error before fetch
- Payment not completed via x402/USDC — 402 Payment Required returned before processing

## How this service works

Autonomous paid machine utilities using x402 and Base USDC.

## Output

Returns a JSON object containing the fetched URL, extracted plain text content, page title, list of headings, and an array of links found on the page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "Public HTTP or HTTPS URL to fetch and convert into structured machine-readable JSON."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 },
 "additionalProperties": true
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "text": "Example Domain",
  "links": [],
  "title": "Example Domain",
  "headings": [
   "Example Domain"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uos-genesis-url-to-json-converter-83c503e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from genesis.palsus2023.workers.dev](https://www.zero.xyz/host/genesis.palsus2023.workers.dev/llms.txt)
