{
  "openapi": "3.1.0",
  "info": {
    "title": "AgentDiet 15-App B2A Intelligence & Distillation Hub",
    "version": "1.0.0",
    "description": "15-App Autonomous Business-to-Agent (B2A) API Hub & MCP Suite. Supports Web Distillation, On-Chain Risk, DEX Token Intelligence, B2B Lead Enrichment, Domain OSINT, Email Verification, SEC Filings, GitHub Audits, Prompt Firewall, and native HTTP 402 (x402 Base USDC).",
    "x-guidance": "All 15 /v1/* endpoints support both GET and POST with HTTP 402 x402 V2 (Base Mainnet USDC) and L402 settlement, plus MCP JSON-RPC at /mcp and /mcp/<slug>.",
    "contact": {
      "name": "AgentDiet B2A Node Operator",
      "email": "roberto.yanguas@gmail.com"
    }
  },
  "servers": [
    {
      "url": "https://shopify-spy-72343955726.us-central1.run.app"
    }
  ],
  "paths": {
    "/v1/distill": {
      "get": {
        "operationId": "distillUrlGet",
        "summary": "Distill a web URL into compact agent-ready tokens",
        "tags": [
          "Distillation"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "Target webpage URL to distill (or builtin://stripe-docs)",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Extraction mode: markdown, structured, skeleton, or budget",
            "schema": {
              "type": "string",
              "enum": [
                "markdown",
                "structured",
                "skeleton",
                "budget"
              ],
              "default": "markdown"
            }
          },
          {
            "name": "query",
            "in": "query",
            "required": false,
            "description": "BM25 focus query when mode=budget",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "max_tokens",
            "in": "query",
            "required": false,
            "description": "Strict token ceiling when mode=budget",
            "schema": {
              "type": "integer",
              "minimum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Distilled content + ROI Proof receipt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Execution status ('ok')"
                    },
                    "cache": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "HIT",
                            "MISS"
                          ]
                        },
                        "cache_key": {
                          "type": "string"
                        },
                        "latency_ms": {
                          "type": "number"
                        }
                      }
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "agent_id": {
                          "type": "string"
                        },
                        "payment_method": {
                          "type": "string"
                        },
                        "fee_charged_usd": {
                          "type": "number"
                        }
                      }
                    },
                    "roi_proof": {
                      "type": "object",
                      "properties": {
                        "raw_tokens": {
                          "type": "integer"
                        },
                        "distilled_tokens": {
                          "type": "integer"
                        },
                        "tokens_saved": {
                          "type": "integer"
                        },
                        "compression_ratio_pct": {
                          "type": "number"
                        },
                        "llm_cost_saved_usd": {
                          "type": "number"
                        },
                        "roi_multiplier": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "object",
                      "description": "Distilled Markdown, structured JSON tables/metadata, skeleton outline, or BM25 budget excerpt."
                    }
                  },
                  "required": [
                    "status",
                    "roi_proof",
                    "data"
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "distillContentPost",
        "summary": "Distill a URL or raw HTML payload with BM25 budget control",
        "tags": [
          "Distillation"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Target webpage URL to fetch and distill (or builtin://stripe-docs)"
                  },
                  "html": {
                    "type": "string",
                    "description": "Optional raw HTML string to distill directly without fetching"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "markdown",
                      "structured",
                      "skeleton",
                      "budget"
                    ],
                    "default": "markdown",
                    "description": "Distillation mode"
                  },
                  "query": {
                    "type": "string",
                    "description": "BM25 focus query when mode=budget"
                  },
                  "max_tokens": {
                    "type": "integer",
                    "minimum": 20,
                    "description": "Strict token budget ceiling when mode=budget"
                  }
                },
                "required": [
                  "url"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Distilled content + ROI Proof receipt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Execution status ('ok')"
                    },
                    "cache": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "HIT",
                            "MISS"
                          ]
                        },
                        "cache_key": {
                          "type": "string"
                        },
                        "latency_ms": {
                          "type": "number"
                        }
                      }
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "agent_id": {
                          "type": "string"
                        },
                        "payment_method": {
                          "type": "string"
                        },
                        "fee_charged_usd": {
                          "type": "number"
                        }
                      }
                    },
                    "roi_proof": {
                      "type": "object",
                      "properties": {
                        "raw_tokens": {
                          "type": "integer"
                        },
                        "distilled_tokens": {
                          "type": "integer"
                        },
                        "tokens_saved": {
                          "type": "integer"
                        },
                        "compression_ratio_pct": {
                          "type": "number"
                        },
                        "llm_cost_saved_usd": {
                          "type": "number"
                        },
                        "roi_multiplier": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "object",
                      "description": "Distilled Markdown, structured JSON tables/metadata, skeleton outline, or BM25 budget excerpt."
                    }
                  },
                  "required": [
                    "status",
                    "roi_proof",
                    "data"
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/onchain-risk": {
      "get": {
        "operationId": "onchain_risk_get",
        "summary": "Base & EVM Smart Contract / Wallet Rug & Risk Scanner",
        "description": "Audits any Base/EVM address for bytecode risk, proxy patterns, honeypot selectors, and balance.",
        "tags": [
          "blockchain-security"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "0x EVM wallet or smart contract address on Base/Ethereum to scan for rug/security risks",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Base & EVM Smart Contract / Wallet Rug & Risk Scanner structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "onchain_risk_post",
        "summary": "Base & EVM Smart Contract / Wallet Rug & Risk Scanner",
        "description": "Audits any Base/EVM address for bytecode risk, proxy patterns, honeypot selectors, and balance.",
        "tags": [
          "blockchain-security"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "minLength": 1,
                    "description": "0x EVM wallet or smart contract address on Base/Ethereum to scan for rug/security risks"
                  }
                },
                "required": [
                  "address"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Base & EVM Smart Contract / Wallet Rug & Risk Scanner structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/token-intel": {
      "get": {
        "operationId": "token_intel_get",
        "summary": "DEX Token Liquidity, Slippage & Whale Audit API",
        "description": "Fetches live DEX liquidity pools, FDV, 24h volume, price impact, and rug-pull flags for any token.",
        "tags": [
          "crypto-market-data"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.015000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "description": "Token contract address or symbol (e.g. USDC, WETH, DEGEN) on Base/Solana/Ethereum",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "DEX Token Liquidity, Slippage & Whale Audit API structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "token_intel_post",
        "summary": "DEX Token Liquidity, Slippage & Whale Audit API",
        "description": "Fetches live DEX liquidity pools, FDV, 24h volume, price impact, and rug-pull flags for any token.",
        "tags": [
          "crypto-market-data"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.015000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Token contract address or symbol (e.g. USDC, WETH, DEGEN) on Base/Solana/Ethereum"
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "DEX Token Liquidity, Slippage & Whale Audit API structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/company-enrich": {
      "get": {
        "operationId": "company_enrich_get",
        "summary": "B2B Company, Tech Stack & Contact Lead Enrichment",
        "description": "Extracts verified emails, social links, 40+ tech stack signals, pricing tiers, and company summary.",
        "tags": [
          "b2b-lead-enrichment"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Company domain name or URL (e.g. stripe.com, linear.app) to enrich",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "B2B Company, Tech Stack & Contact Lead Enrichment structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "company_enrich_post",
        "summary": "B2B Company, Tech Stack & Contact Lead Enrichment",
        "description": "Extracts verified emails, social links, 40+ tech stack signals, pricing tiers, and company summary.",
        "tags": [
          "b2b-lead-enrichment"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Company domain name or URL (e.g. stripe.com, linear.app) to enrich"
                  }
                },
                "required": [
                  "domain"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "B2B Company, Tech Stack & Contact Lead Enrichment structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/email-verify": {
      "get": {
        "operationId": "email_verify_get",
        "summary": "B2A Email Deliverability, MX & Disposable Verifier",
        "description": "Validates email syntax, disposable/burner provider status, role accounts, and live DNS records.",
        "tags": [
          "verification"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "required": true,
            "description": "Email address to validate for syntax, MX deliverability, and disposable risk",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "B2A Email Deliverability, MX & Disposable Verifier structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "email_verify_post",
        "summary": "B2A Email Deliverability, MX & Disposable Verifier",
        "description": "Validates email syntax, disposable/burner provider status, role accounts, and live DNS records.",
        "tags": [
          "verification"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Email address to validate for syntax, MX deliverability, and disposable risk"
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "B2A Email Deliverability, MX & Disposable Verifier structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/domain-osint": {
      "get": {
        "operationId": "domain_osint_get",
        "summary": "Domain OSINT, TLS Certificate & Security Headers Recon",
        "description": "Inspects live IPv4/IPv6 DNS resolution, TLS certificate issuer/expiry, and HTTP security grade.",
        "tags": [
          "cybersecurity-osint"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Target domain name (e.g. base.org) for DNS, TLS certificate, and security header OSINT",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Domain OSINT, TLS Certificate & Security Headers Recon structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "domain_osint_post",
        "summary": "Domain OSINT, TLS Certificate & Security Headers Recon",
        "description": "Inspects live IPv4/IPv6 DNS resolution, TLS certificate issuer/expiry, and HTTP security grade.",
        "tags": [
          "cybersecurity-osint"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Target domain name (e.g. base.org) for DNS, TLS certificate, and security header OSINT"
                  }
                },
                "required": [
                  "domain"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Domain OSINT, TLS Certificate & Security Headers Recon structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/x402-audit": {
      "get": {
        "operationId": "x402_audit_get",
        "summary": "x402 V2, MCP & A2A Protocol Compliance Auditor",
        "description": "Audits any URL for HTTP 402 x402 V2 compliance, PAYMENT-REQUIRED headers, Bazaar schema, and MCP.",
        "tags": [
          "agent-infrastructure"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "Target x402 or A2A service URL to audit for protocol compliance",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "x402 V2, MCP & A2A Protocol Compliance Auditor structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "x402_audit_post",
        "summary": "x402 V2, MCP & A2A Protocol Compliance Auditor",
        "description": "Audits any URL for HTTP 402 x402 V2 compliance, PAYMENT-REQUIRED headers, Bazaar schema, and MCP.",
        "tags": [
          "agent-infrastructure"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Target x402 or A2A service URL to audit for protocol compliance"
                  }
                },
                "required": [
                  "url"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "x402 V2, MCP & A2A Protocol Compliance Auditor structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/llms-generator": {
      "get": {
        "operationId": "llms_generator_get",
        "summary": "Automated /llms.txt & GEO Schema Generator",
        "description": "Crawls any website and generates a standards-compliant /llms.txt file and JSON-LD schema bundle.",
        "tags": [
          "geo-seo-tools"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.015000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "Website URL to crawl and generate a ready-to-deploy /llms.txt manifest for",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Automated /llms.txt & GEO Schema Generator structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "llms_generator_post",
        "summary": "Automated /llms.txt & GEO Schema Generator",
        "description": "Crawls any website and generates a standards-compliant /llms.txt file and JSON-LD schema bundle.",
        "tags": [
          "geo-seo-tools"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.015000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Website URL to crawl and generate a ready-to-deploy /llms.txt manifest for"
                  }
                },
                "required": [
                  "url"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Automated /llms.txt & GEO Schema Generator structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/sec-intel": {
      "get": {
        "operationId": "sec_intel_get",
        "summary": "SEC EDGAR Public Company & Ticker Financial Intelligence",
        "description": "Resolves stock tickers to SEC CIK numbers, recent 10-K/10-Q/8-K filings, and entity metadata.",
        "tags": [
          "financial-data"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "Public stock ticker symbol (e.g. COIN, NVDA, AAPL, MSFT)",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "SEC EDGAR Public Company & Ticker Financial Intelligence structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "sec_intel_post",
        "summary": "SEC EDGAR Public Company & Ticker Financial Intelligence",
        "description": "Resolves stock tickers to SEC CIK numbers, recent 10-K/10-Q/8-K filings, and entity metadata.",
        "tags": [
          "financial-data"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ticker": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Public stock ticker symbol (e.g. COIN, NVDA, AAPL, MSFT)"
                  }
                },
                "required": [
                  "ticker"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "SEC EDGAR Public Company & Ticker Financial Intelligence structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/github-audit": {
      "get": {
        "operationId": "github_audit_get",
        "summary": "GitHub Repository Security, License & Maintenance Scorecard",
        "description": "Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and security.",
        "tags": [
          "developer-security"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "repo",
            "in": "query",
            "required": true,
            "description": "GitHub repository in owner/name format (e.g. coinbase/x402 or modelcontextprotocol/registry)",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GitHub Repository Security, License & Maintenance Scorecard structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "github_audit_post",
        "summary": "GitHub Repository Security, License & Maintenance Scorecard",
        "description": "Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and security.",
        "tags": [
          "developer-security"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "repo": {
                    "type": "string",
                    "minLength": 1,
                    "description": "GitHub repository in owner/name format (e.g. coinbase/x402 or modelcontextprotocol/registry)"
                  }
                },
                "required": [
                  "repo"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "GitHub Repository Security, License & Maintenance Scorecard structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/serp-extract": {
      "get": {
        "operationId": "serp_extract_get",
        "summary": "Zero-Bloat Agent Web Search & Tech News Aggregator",
        "description": "Executes live web/news search queries and returns clean, token-pruned results with zero ad bloat.",
        "tags": [
          "web-search"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "Search query for live news, technical articles, and web results",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Zero-Bloat Agent Web Search & Tech News Aggregator structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "serp_extract_post",
        "summary": "Zero-Bloat Agent Web Search & Tech News Aggregator",
        "description": "Executes live web/news search queries and returns clean, token-pruned results with zero ad bloat.",
        "tags": [
          "web-search"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Search query for live news, technical articles, and web results"
                  }
                },
                "required": [
                  "query"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Zero-Bloat Agent Web Search & Tech News Aggregator structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/shopify-spy": {
      "get": {
        "operationId": "shopify_spy_get",
        "summary": "E-Commerce & Shopify Product Catalog / Price Extractor",
        "description": "Extracts normalized product catalogs, live prices, variants, and availability from online stores.",
        "tags": [
          "ecommerce-intelligence"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "store_url",
            "in": "query",
            "required": true,
            "description": "Shopify or e-commerce store URL to extract structured product & pricing data from",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "E-Commerce & Shopify Product Catalog / Price Extractor structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "shopify_spy_post",
        "summary": "E-Commerce & Shopify Product Catalog / Price Extractor",
        "description": "Extracts normalized product catalogs, live prices, variants, and availability from online stores.",
        "tags": [
          "ecommerce-intelligence"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store_url": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Shopify or e-commerce store URL to extract structured product & pricing data from"
                  }
                },
                "required": [
                  "store_url"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "E-Commerce & Shopify Product Catalog / Price Extractor structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/prompt-guard": {
      "get": {
        "operationId": "prompt_guard_get",
        "summary": "B2A Indirect Prompt Injection & Jailbreak Firewall",
        "description": "Scans untrusted web pages, emails, or tool outputs for prompt injections and returns sanitized text.",
        "tags": [
          "ai-safety-firewall"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "text",
            "in": "query",
            "required": true,
            "description": "Untrusted text or HTML snippet to scan for hidden prompt injection or jailbreak payloads",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "B2A Indirect Prompt Injection & Jailbreak Firewall structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "prompt_guard_post",
        "summary": "B2A Indirect Prompt Injection & Jailbreak Firewall",
        "description": "Scans untrusted web pages, emails, or tool outputs for prompt injections and returns sanitized text.",
        "tags": [
          "ai-safety-firewall"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Untrusted text or HTML snippet to scan for hidden prompt injection or jailbreak payloads"
                  }
                },
                "required": [
                  "text"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "B2A Indirect Prompt Injection & Jailbreak Firewall structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/json-repair": {
      "get": {
        "operationId": "json_repair_get",
        "summary": "Deterministic Broken-JSON Repair & Schema Validator",
        "description": "Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, unquoted keys).",
        "tags": [
          "agent-utilities"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.002000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "raw_json",
            "in": "query",
            "required": true,
            "description": "Malformed, truncated, or markdown-wrapped JSON string to deterministically repair",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deterministic Broken-JSON Repair & Schema Validator structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "json_repair_post",
        "summary": "Deterministic Broken-JSON Repair & Schema Validator",
        "description": "Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, unquoted keys).",
        "tags": [
          "agent-utilities"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.002000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "raw_json": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Malformed, truncated, or markdown-wrapped JSON string to deterministically repair"
                  }
                },
                "required": [
                  "raw_json"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Deterministic Broken-JSON Repair & Schema Validator structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/arxiv-digest": {
      "get": {
        "operationId": "arxiv_digest_get",
        "summary": "ArXiv Scientific Paper Search & Structured Digest API",
        "description": "Queries ArXiv for AI/CS/math papers and returns structured abstracts, authors, PDF links, and BibTeX.",
        "tags": [
          "research-intelligence"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "ArXiv paper ID (e.g. 2308.11432) or research topic search query",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "ArXiv Scientific Paper Search & Structured Digest API structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "arxiv_digest_post",
        "summary": "ArXiv Scientific Paper Search & Structured Digest API",
        "description": "Queries ArXiv for AI/CS/math papers and returns structured abstracts, authors, PDF links, and BibTeX.",
        "tags": [
          "research-intelligence"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "minLength": 1,
                    "description": "ArXiv paper ID (e.g. 2308.11432) or research topic search query"
                  }
                },
                "required": [
                  "query"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ArXiv Scientific Paper Search & Structured Digest API structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/v1/x402-broker": {
      "get": {
        "operationId": "x402_broker_get",
        "summary": "Autonomous x402, MCP & A2A Meta-Marketplace & Trust Broker",
        "description": "Federated meta-search & live HTTP 402 pre-flight trust verifier across PayAPI Market, Official MCP Registry, BotMarket, and verified B2A nodes.",
        "tags": [
          "agent-marketplace-broker"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "Capability search query (e.g. 'web scraper', 'smart contract risk', 'sec filings', 'company enrichment') or endpoint URL to verify",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Autonomous x402, MCP & A2A Meta-Marketplace & Trust Broker structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "x402_broker_post",
        "summary": "Autonomous x402, MCP & A2A Meta-Marketplace & Trust Broker",
        "description": "Federated meta-search & live HTTP 402 pre-flight trust verifier across PayAPI Market, Official MCP Registry, BotMarket, and verified B2A nodes.",
        "tags": [
          "agent-marketplace-broker"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Capability search query (e.g. 'web scraper', 'smart contract risk', 'sec filings', 'company enrichment') or endpoint URL to verify"
                  }
                },
                "required": [
                  "query"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Autonomous x402, MCP & A2A Meta-Marketplace & Trust Broker structured response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    }
  }
}