{
  "openapi": "3.1.0",
  "info": {
    "title": "Agent Web Scraper, Live Search & 30-Day Prepaid Pass x402 Gateway",
    "version": "2.4.0",
    "description": "Keyless Firecrawl/Exa alternative for autonomous AI agents on Base x402. Convert any webpage to clean LLM Markdown ($0.015), run live multi-source search ($0.02), execute 3-page RAG deep research ($0.06), or mint a 30-Day Unlimited Agent Pass ($4.90 USDC)."
  },
  "servers": [
    {
      "url": "https://agent-web-x402-gateway.b2bintel-edge.workers.dev"
    }
  ],
  "paths": {
    "/api/preview-scrape": {
      "get": {
        "operationId": "previewWebMarkdownFree",
        "summary": "Free 450-character clean Markdown preview + token estimate for any URL",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "https://modelcontextprotocol.io"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Markdown preview and metadata"
          }
        }
      }
    },
    "/v1/x402/scrape-markdown": {
      "get": {
        "operationId": "scrapeWebpageMarkdownX402",
        "summary": "Convert any public URL into full LLM-ready Markdown + JSON-LD + links ($0.015 USDC via x402 or 30d Pass)",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "https://modelcontextprotocol.io"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Full clean Markdown"
          },
          "402": {
            "description": "x402 Payment Required ($0.015 USDC)"
          }
        }
      }
    },
    "/v1/x402/web-search": {
      "get": {
        "operationId": "searchLiveWebX402",
        "summary": "Parallel live web, news, GitHub & HackerNews search ($0.02 USDC via x402 or 30d Pass)",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "x402 protocol base"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 8
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ranked search results"
          },
          "402": {
            "description": "x402 Payment Required ($0.02 USDC)"
          }
        }
      }
    },
    "/v1/x402/deep-research-pack": {
      "get": {
        "operationId": "deepResearchPackX402",
        "summary": "Multi-source live search + full Markdown extraction of top 3 authoritative pages ($0.06 USDC via x402 or 30d Pass)",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "EIP-3009 USDC Base agent payments"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Search + 3 scraped Markdown documents"
          },
          "402": {
            "description": "x402 Payment Required ($0.06 USDC)"
          }
        }
      }
    },
    "/v1/x402/buy-30d-pass": {
      "get": {
        "operationId": "buy30DayAgentPassX402",
        "summary": "Mint a 30-Day Prepaid Bearer Pass Key valid across all 5 Edge Gateways ($4.90 USDC via x402 on Base)",
        "parameters": [
          {
            "name": "agent_id",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "openclaw-agent-01"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Issued ak_x402_... Bearer pass token"
          },
          "402": {
            "description": "x402 Payment Required ($4.90 USDC)"
          }
        }
      }
    }
  }
}