{
  "openapi": "3.0.3",
  "info": {
    "title": "Clear",
    "version": "1.0.0",
    "description": "A page an AI agent can buy in one HTTP call. Public HTML extract (Readability + Turndown). Charge only on a successful extract. Price: $0.005 USDC on Base via x402 / PayAI. extra.name is USD Coin version 2. Live host: https://clear-agent-fetch.fly.dev payTo: 0x2382EF343ba76a6D56efC8C04920d7df2F98A54D",
    "contact": {
      "name": "Clear",
      "url": "https://clear-agent-fetch.fly.dev"
    }
  },
  "externalDocs": {
    "description": "Machine docs (llms.txt)",
    "url": "https://clear-agent-fetch.fly.dev/llms.txt"
  },
  "servers": [
    {
      "url": "https://clear-agent-fetch.fly.dev",
      "description": "Live"
    }
  ],
  "x-discovery": {
    "ownershipProofs": [
      "0x2382EF343ba76a6D56efC8C04920d7df2F98A54D"
    ]
  },
  "paths": {
    "/v1/fetch": {
      "post": {
        "tags": [
          "fetch"
        ],
        "summary": "Fetch a public URL as markdown",
        "operationId": "fetchUrl",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FetchRequest"
              },
              "example": {
                "url": "https://example.com"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful extract. Payment settled."
          },
          "400": {
            "description": "Missing or non-http(s) url."
          },
          "402": {
            "description": "Payment required (x402 v2). One accept: USDC on Base, amount 5000, extra.name USD Coin version 2."
          },
          "403": {
            "description": "Policy refuse. Not billed."
          },
          "422": {
            "description": "Extract failed. Not billed."
          },
          "429": {
            "description": "Rate limited."
          }
        }
      },
      "get": {
        "tags": [
          "fetch"
        ],
        "summary": "Method not allowed",
        "operationId": "fetchUrlGet",
        "responses": {
          "405": {
            "description": "POST only"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FetchRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Public http(s) URL to fetch. Not authenticated or private.",
            "example": "https://example.com"
          }
        }
      }
    }
  }
}
