{
  "openapi": "3.1.0",
  "info": {
    "title": "AntigravityCommander x402 Intelligence & Security API",
    "version": "10.3.1",
    "description": "24/7 Edge pay-per-call biomedical, multi-chain token/escrow/wallet forensics, clean web extraction, and x402 verification APIs settled via USDC on Base and Solana.",
    "x-guidance": "All /api/v1/* endpoints accept GET query parameters and require an x402 micropayment ($0.01-$0.03 USDC on Base eip155:8453 or Solana). Probe any route without auth to receive the canonical HTTP 402 PAYMENT-REQUIRED challenge header, or connect an MCP client to POST https://agy-x402-gateway.omega-x402-edge.workers.dev/mcp.",
    "contact": {
      "name": "AntigravityCommander",
      "email": "chus.mias.258@gmail.com",
      "url": "https://agy-x402-gateway.omega-x402-edge.workers.dev"
    }
  },
  "servers": [
    {
      "url": "https://agy-x402-gateway.omega-x402-edge.workers.dev"
    }
  ],
  "paths": {
    "/api/v1/biomed-intel": {
      "get": {
        "operationId": "biomed_intel",
        "summary": "Unified FDA Safety, ClinicalTrials.gov v2 & ChEMBL Drug Intelligence",
        "description": "Live biomedical compound intelligence combining openFDA FAERS adverse-event counts & label warnings, ClinicalTrials.gov API v2 trial pipelines, and ChEMBL molecule properties in one structured JSON call.",
        "tags": [
          "Intelligence"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "drug",
            "in": "query",
            "required": false,
            "description": "Drug or compound generic/brand name (e.g. semaglutide)",
            "schema": {
              "type": "string",
              "default": "semaglutide"
            }
          },
          {
            "name": "condition",
            "in": "query",
            "required": false,
            "description": "Optional condition filter (e.g. obesity)",
            "schema": {
              "type": "string",
              "default": "obesity"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Max results (1-10, default 5)",
            "schema": {
              "type": "string",
              "default": "5"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid intelligence payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "query",
                    "fda_safety",
                    "clinical_trials",
                    "chembl_compounds",
                    "retrieved_at"
                  ],
                  "properties": {
                    "query": {
                      "type": "object"
                    },
                    "fda_safety": {
                      "type": "object"
                    },
                    "clinical_trials": {
                      "type": "object"
                    },
                    "chembl_compounds": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "_license_notices": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "retrieved_at": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 USDC on Base or Solana)"
          }
        }
      }
    },
    "/api/v1/token-rug-scan": {
      "get": {
        "operationId": "token_rug_scan",
        "summary": "Multi-Chain Base & Solana Token Rug-Pull & Authority Risk Scanner",
        "description": "Live on-chain token rug-pull scanner for Base (EVM mint/pause/blacklist/fee-trap & proxy inspection) and Solana SPL/Token-2022 (mintAuthority, freezeAuthority, top-5 whale concentration) fused with DexScreener LP & FDV metrics.",
        "tags": [
          "Security"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "description": "Base 0x... or Solana Base58 mint address",
            "schema": {
              "type": "string",
              "default": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"
            }
          },
          {
            "name": "chain",
            "in": "query",
            "required": false,
            "description": "Optional chain override: base or solana",
            "schema": {
              "type": "string",
              "default": "solana"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid intelligence payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "chain",
                    "address",
                    "onchain",
                    "market",
                    "rug_risk_score",
                    "verdict",
                    "risk_flags",
                    "scanned_at"
                  ],
                  "properties": {
                    "chain": {
                      "type": "string",
                      "enum": [
                        "base",
                        "solana"
                      ]
                    },
                    "address": {
                      "type": "string"
                    },
                    "onchain": {
                      "type": "object"
                    },
                    "market": {
                      "type": "object"
                    },
                    "rug_risk_score": {
                      "type": "number"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "low_risk",
                        "medium_risk",
                        "high_rug_risk"
                      ]
                    },
                    "risk_flags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "scanned_at": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 USDC on Base or Solana)"
          }
        }
      }
    },
    "/api/v1/base-escrow-audit": {
      "get": {
        "operationId": "base_escrow_audit",
        "summary": "Base Mainnet Contract & USDC Escrow Solvency Auditor",
        "description": "Live Base Mainnet RPC contract & escrow solvency check: bytecode size, Circle USDC balance, EIP-1967/1167 proxy detection, pause/blacklist selector scan, numeric risk score (0-100), and safe/caution/avoid verdict.",
        "tags": [
          "Verification"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "description": "Base Mainnet 0x contract or wallet address",
            "schema": {
              "type": "string",
              "default": "0xcd772506d62e296ed73f9f6f8a88dcbf1bf959e1"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid intelligence payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "chain",
                    "address",
                    "is_contract",
                    "usdc_balance",
                    "risk_score",
                    "verdict"
                  ],
                  "properties": {
                    "chain": {
                      "type": "string"
                    },
                    "chain_id": {
                      "type": "number"
                    },
                    "address": {
                      "type": "string"
                    },
                    "is_contract": {
                      "type": "boolean"
                    },
                    "bytecode_bytes": {
                      "type": "number"
                    },
                    "eth_balance": {
                      "type": "number"
                    },
                    "usdc_balance": {
                      "type": "number"
                    },
                    "proxy_type": {
                      "type": "string"
                    },
                    "implementation_address": {
                      "type": "string"
                    },
                    "flags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "risk_score": {
                      "type": "number"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "safe",
                        "caution",
                        "avoid"
                      ]
                    },
                    "checked_at": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 USDC on Base or Solana)"
          }
        }
      }
    },
    "/api/v1/bounty-feed": {
      "get": {
        "operationId": "bounty_feed",
        "summary": "Verified Zero-Spend Crypto Agent Bounty & Escrow Solvency Feed",
        "description": "Live on-chain Base escrow vault solvency telemetry (TaskMarket Diamond, Synmerco Escrow) fused with live open GitHub USDC/crypto bounty discovery.",
        "tags": [
          "Data"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Max items to return (1-25, default 10)",
            "schema": {
              "type": "string",
              "default": "10"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid intelligence payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "scanned_at",
                    "escrow_telemetry",
                    "opportunities"
                  ],
                  "properties": {
                    "scanned_at": {
                      "type": "string"
                    },
                    "escrow_telemetry": {
                      "type": "object"
                    },
                    "opportunities_count": {
                      "type": "number"
                    },
                    "opportunities": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 USDC on Base or Solana)"
          }
        }
      }
    },
    "/api/v1/x402-lint": {
      "get": {
        "operationId": "x402_lint",
        "summary": "Live x402 v1/v2 Dual-Stack & Facilitator Readiness Inspector",
        "description": "Probes any x402 HTTP 402 endpoint to verify PAYMENT-REQUIRED header size, v1/v2 accepts[] schema, Base/Solana asset & payTo validity, facilitator reachability, and Bazaar outputSchema readiness.",
        "tags": [
          "Verification"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": false,
            "description": "Target HTTPS x402 endpoint URL to inspect",
            "schema": {
              "type": "string",
              "default": "https://aero.lonestaroracle.xyz/pool"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid intelligence payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "target_url",
                    "http_status",
                    "score",
                    "bazaar_ready",
                    "checks",
                    "defects"
                  ],
                  "properties": {
                    "target_url": {
                      "type": "string"
                    },
                    "http_status": {
                      "type": "number"
                    },
                    "score": {
                      "type": "number"
                    },
                    "verdict": {
                      "type": "string"
                    },
                    "bazaar_ready": {
                      "type": "boolean"
                    },
                    "header_bytes": {
                      "type": "number"
                    },
                    "networks_detected": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "checks": {
                      "type": "object"
                    },
                    "defects": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "inspected_at": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 USDC on Base or Solana)"
          }
        }
      }
    },
    "/api/v1/wallet-forensics": {
      "get": {
        "operationId": "wallet_forensics",
        "summary": "Multi-Chain Wallet, USDC Portfolio & Counterparty Sybil Forensics",
        "description": "One-call multi-chain wallet & counterparty forensics across Base, Ethereum, Arbitrum, Polygon, and Solana: native + USDC balances, transaction nonce activity, contract vs EOA detection, and burner/Sybil risk scoring.",
        "tags": [
          "Finance"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "description": "EVM 0x... address or Solana Base58 wallet address",
            "schema": {
              "type": "string",
              "default": "0xcd772506d62e296ed73f9f6f8a88dcbf1bf959e1"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid intelligence payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "address",
                    "family",
                    "total_usdc",
                    "chains",
                    "sybil_risk_score",
                    "verdict",
                    "checked_at"
                  ],
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "family": {
                      "type": "string",
                      "enum": [
                        "evm",
                        "solana"
                      ]
                    },
                    "total_usdc": {
                      "type": "number"
                    },
                    "total_tx_count": {
                      "type": "number"
                    },
                    "chains": {
                      "type": "object"
                    },
                    "flags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "sybil_risk_score": {
                      "type": "number"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "established",
                        "moderate",
                        "high_burner_risk"
                      ]
                    },
                    "checked_at": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 USDC on Base or Solana)"
          }
        }
      }
    },
    "/api/v1/web-extract-intel": {
      "get": {
        "operationId": "web_extract_intel",
        "summary": "Clean URL-to-Markdown Reader & DNS/Email Domain Credibility Inspector",
        "description": "Fetches any public HTTPS webpage into clean LLM-ready Markdown + OpenGraph metadata while simultaneously auditing live Cloudflare DoH DNS (A, MX, SPF, DMARC) records to score domain authenticity and phishing risk.",
        "tags": [
          "Data"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": false,
            "description": "Public HTTPS URL to extract and inspect (e.g. https://x402.org)",
            "schema": {
              "type": "string",
              "default": "https://x402.org"
            }
          },
          {
            "name": "max_chars",
            "in": "query",
            "required": false,
            "description": "Max Markdown characters to return (500-15000, default 6000)",
            "schema": {
              "type": "string",
              "default": "4000"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid intelligence payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "url",
                    "domain",
                    "http_status",
                    "title",
                    "markdown",
                    "dns_security",
                    "credibility_score",
                    "verdict"
                  ],
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "http_status": {
                      "type": "number"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "markdown": {
                      "type": "string"
                    },
                    "dns_security": {
                      "type": "object"
                    },
                    "credibility_score": {
                      "type": "number"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "trusted_domain",
                        "unverified_domain",
                        "suspicious_or_unreachable"
                      ]
                    },
                    "extracted_at": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 USDC on Base or Solana)"
          }
        }
      }
    }
  }
}