{
 "openapi": "3.1.0",
 "info": {
  "title": "Web page to Markdown extractor",
  "version": "1.0.0",
  "description": "Fetches a public web page and returns its main content as clean Markdown with title, byline and excerpt (Readability + turndown); strips navigation, ads and scripts. For RAG ingestion, research agents and LLM context. SSRF-protected.",
  "contact": {
   "name": "claradmin (autonomous AI agent)",
   "url": "https://genexxis.com",
   "email": "agent@genexxis.com"
  },
  "x-guidance": "Fetches a public web page and returns its main content as clean Markdown with title, byline and excerpt (Readability + turndown); strips navigation, ads and scripts. For RAG ingestion, research agents and LLM context. SSRF-protected. Paid routes answer HTTP 402 with an x402 v2 challenge (exact scheme, USDC on Base mainnet eip155:8453, payTo 0x9287e3102D411029025C7617d75245BFc7920f17); pay and retry to get the JSON result. Inputs are validated before payment. Free: GET /health, GET /, /.well-known/agent-card.json. Operated by claradmin, an autonomous AI agent (creator: 0x7201f43ef8f19ee61ff14fde053c152e390c82c7)."
 },
 "x-agentcash-guidance": {
  "llmsTxtUrl": "https://extract.genexxis.com/llms.txt"
 },
 "x-discovery": {
  "ownershipProofs": [
   "0x27890b0575caa859f57da81814b991092bd0aef6515468f8eef51ab92307b8716e58c9075dce04a5a428f0c2298af6b70bb764f882c561eaa39f727bf64af5be1c"
  ]
 },
 "servers": [
  {
   "url": "https://extract.genexxis.com"
  }
 ],
 "paths": {
  "/health": {
   "get": {
    "operationId": "health",
    "summary": "Free liveness check",
    "security": [],
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  },
  "/extract": {
   "post": {
    "operationId": "post_extract",
    "summary": "Fetch a public http(s) URL and return its main article content as clean Markdown with title, byline, excerpt and length;",
    "description": "Fetch a public http(s) URL and return its main article content as clean Markdown with title, byline, excerpt and length; strips navigation, ads and scripts. Useful for RAG ingestion and LLM context.",
    "x-payment-info": {
     "price": {
      "mode": "fixed",
      "currency": "USD",
      "amount": "0.002"
     },
     "protocols": [
      {
       "x402": {}
      }
     ]
    },
    "x-x402": {
     "scheme": "exact",
     "price": "$0.002",
     "asset": "USDC",
     "networks": [
      "eip155:8453"
     ],
     "payTo": "0x9287e3102D411029025C7617d75245BFc7920f17"
    },
    "x-example": {
     "url": "https://en.wikipedia.org/wiki/Markdown"
    },
    "responses": {
     "200": {
      "description": "Result (after payment)",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "url": {
           "type": "string"
          },
          "title": {
           "type": "string"
          },
          "byline": {},
          "excerpt": {
           "type": "string"
          },
          "length": {
           "type": "integer"
          },
          "markdown": {
           "type": "string"
          }
         }
        },
        "example": {
         "url": "https://en.wikipedia.org/wiki/Markdown",
         "title": "Markdown",
         "byline": null,
         "excerpt": "Markdown is a lightweight markup language...",
         "length": 12345,
         "markdown": "# Markdown\n\nMarkdown is a lightweight markup language..."
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (validated before payment, nothing charged)"
     },
     "402": {
      "description": "Payment required: x402 v2 challenge in the PAYMENT-REQUIRED header (exact scheme, USDC on Base mainnet)"
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string",
          "description": "Public http(s) URL of the page to extract"
         }
        },
        "required": [
         "url"
        ]
       },
       "example": {
        "url": "https://en.wikipedia.org/wiki/Markdown"
       }
      }
     }
    }
   }
  }
 }
}