{"openapi":"3.1.0","info":{"title":"BaseGuard402","version":"2.0.0","description":"Autonomous pay-per-call x402 v2 microservices on Base Mainnet (USDC) for AI agents: Web-to-Markdown, Base ERC-20 Risk Auditor, NFT Alpha Spreads, NFT Fair-Value Oracle, and Deep Research.","x-guidance":"BaseGuard402 exposes 5 pay-per-call x402 v2 API endpoints on Base (eip155:8453, USDC). No API keys or signup required. Failed or busy requests return HTTP 503 and are never settled.\n- POST /api/v1/url-clean ($0.01): Fetch any public URL and return clean Markdown. Body: {\"url\": \"https://...\", \"max_chars\": 15000}.\n- POST /api/v1/token-audit ($0.02): Deterministic 0-100 smart-contract risk and honeypot audit for Base ERC-20 tokens. Body: {\"token_address\": \"0x...\"}.\n- GET /api/v1/nft-alpha ($0.03): Live Base NFT cross-marketplace arbitrage spreads and undervalued traits. Query: min_spread_pct, limit, strategy.\n- POST /api/v1/nft-valuation ($0.02): Base NFT fair minimum value and WETH bid-liquidity oracle. Body: {\"contract_address\": \"0x...\", \"token_id\": \"42\"}.\n- POST /api/v1/deep-research ($0.05): Real-time cited deep research synthesis in Markdown. Body: {\"query\": \"...\", \"max_sources\": 5}.","contact":{"name":"BaseGuard402","url":"https://github.com/mirkoleesch-ai/baseguard402-mcp","email":"chefmaschine@live.de"}},"servers":[{"url":"https://x402.baseguard402.xyz","description":"BaseGuard402 x402 v2 (base)"}],"tags":[{"name":"Web Scraping","description":"Clean HTML-to-Markdown extraction for AI agents"},{"name":"Crypto Security","description":"Base ERC-20 bytecode, honeypot, and DEX liquidity auditing"},{"name":"AI Research","description":"Real-time cited deep research reports in Markdown"},{"name":"NFT Analytics","description":"Live Base NFT arbitrage spreads and undervalued trait alpha"},{"name":"NFT Oracle","description":"Deterministic Base NFT fair-value and bid-depth valuation"}],"x-agentcash-guidance":{"llmsTxtUrl":"https://x402.baseguard402.xyz/llms.txt"},"paths":{"/api/v1/url-clean":{"post":{"operationId":"urlClean","summary":"Clean Web-to-Markdown Extractor","description":"Use this tool when an AI agent needs to read a public webpage, documentation article, or blog post without wasting context tokens on HTML tags, ads, cookie banners, or scripts. Returns clean, structured Markdown and token-savings statistics.","tags":["Web Scraping"],"security":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"additionalProperties":false,"properties":{"url":{"type":"string","format":"uri","minLength":8,"maxLength":2048,"description":"Public http:// or https:// URL to fetch and convert into clean Markdown."},"max_chars":{"type":"integer","default":15000,"minimum":500,"maximum":50000,"description":"Maximum number of Markdown characters to return."}}},"example":{"url":"https://docs.base.org/overview","max_chars":15000}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["url","title","markdown","stats"],"properties":{"url":{"type":"string"},"title":{"type":"string"},"markdown":{"type":"string"},"stats":{"type":"object","properties":{"raw_chars":{"type":"integer"},"markdown_chars":{"type":"integer"},"estimated_tokens_saved":{"type":"integer"}}},"cached":{"type":"boolean"}}},"example":{"url":"https://docs.base.org/overview","title":"Base Overview","markdown":"# Base Overview\n\nBase is a secure, low-cost, builder-friendly Ethereum L2...","stats":{"raw_chars":48210,"markdown_chars":3420,"estimated_tokens_saved":11197},"cached":false}}}},"402":{"description":"Payment Required — includes x402 v2 PAYMENT-REQUIRED header and Bazaar metadata."},"503":{"description":"Service Temporarily Unavailable — payment is never settled on 503."}}}},"/api/v1/token-audit":{"post":{"operationId":"tokenAudit","summary":"Base Smart-Contract Risk & Honeypot Auditor","description":"Use this tool before trading, swapping, or recommending any ERC-20 token on Base. It inspects live on-chain EVM bytecode and Uniswap V3 pools for missing DEX liquidity, hidden mint functions, blacklist/bot-trap selectors, modifiable taxes, and proxy risks, returning a deterministic 0-100 risk score.","tags":["Crypto Security"],"security":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.020000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token_address"],"additionalProperties":false,"properties":{"token_address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","minLength":42,"maxLength":42,"description":"42-character hexadecimal Base ERC-20 contract address starting with 0x."}}},"example":{"token_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["network","token_address","is_contract","risk_score","risk_level","flags"],"properties":{"network":{"type":"string"},"chain_id":{"type":"integer"},"token_address":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer"},"is_contract":{"type":"boolean"},"risk_score":{"type":"integer","minimum":0,"maximum":100},"risk_level":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]},"flags":{"type":"array","items":{"type":"string"}}}},"example":{"network":"base","chain_id":8453,"token_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","decimals":6,"bytecode_bytes":1684,"is_contract":true,"is_proxy_or_minimal":true,"dex_liquidity":{"uniswap_v3_pools_found":3,"estimated_quote_reserve_usd":10000000.0},"risk_score":10,"risk_level":"LOW","flags":["UPGRADEABLE_OR_MINIMAL_PROXY"],"cached":false}}}},"402":{"description":"Payment Required — includes x402 v2 PAYMENT-REQUIRED header and Bazaar metadata."},"503":{"description":"Service Temporarily Unavailable — payment is never settled on 503."}}}},"/api/v1/deep-research":{"post":{"operationId":"deepResearch","summary":"Verified Real-Time Deep Research with Citations","description":"Use this tool when an AI agent requires up-to-date, fact-checked synthesis on technical, financial, or on-chain topics backed by concrete primary source URLs in structured Markdown.","tags":["AI Research"],"security":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"additionalProperties":false,"properties":{"query":{"type":"string","minLength":5,"maxLength":1500,"description":"Specific research question or topic to investigate with real-time sources."},"max_sources":{"type":"integer","default":5,"minimum":1,"maximum":10,"description":"Maximum number of verified source URLs to cite."}}},"example":{"query":"Current Aave V3 USDC supply yield mechanisms and risk parameters on Base L2","max_sources":5}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["query","report_markdown","sources"],"properties":{"query":{"type":"string"},"report_markdown":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"engine":{"type":"string"},"cached":{"type":"boolean"}}},"example":{"query":"Current Aave V3 USDC supply yield mechanisms and risk parameters on Base L2","report_markdown":"## Executive Summary\n- Aave V3 on Base dynamically adjusts USDC supply rates...","sources":["https://docs.aave.com/developers/","https://basescan.org/"],"engine":"antigravity-agy","cached":false}}}},"402":{"description":"Payment Required — includes x402 v2 PAYMENT-REQUIRED header and Bazaar metadata."},"503":{"description":"Service Temporarily Unavailable — payment is never settled on 503."}}}},"/api/v1/nft-alpha":{"get":{"operationId":"nftAlpha","summary":"Base NFT Arbitrage Spreads & Undervalued Trait Feed","description":"Use this tool when an AI trading or collector agent wants the most profitable live Base NFT arbitrage spreads (including 5-15%+ cross-marketplace spreads across OpenSea, Blur, and Magic Eden) and undervalued rare-trait listings curated from verified liquid collections.","tags":["NFT Analytics"],"security":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"parameters":[{"name":"min_spread_pct","in":"query","required":false,"description":"Minimum net spread percentage filter (default 5.0%).","schema":{"type":"number","default":5.0,"minimum":0.0,"maximum":50.0},"example":5.0},{"name":"limit","in":"query","required":false,"description":"Maximum number of ranked NFT alpha opportunities to return.","schema":{"type":"integer","default":15,"minimum":1,"maximum":50},"example":10},{"name":"strategy","in":"query","required":false,"description":"Optional strategy filter.","schema":{"type":"string","default":"ALL","enum":["ALL","FLOOR_FLIP","CROSS_MARKET","TRAIT_ARBITRAGE"]},"example":"ALL"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["network","chain_id","count","spreads","undervalued_traits"],"properties":{"network":{"type":"string"},"chain_id":{"type":"integer"},"feed_updated_at":{"type":"string"},"count":{"type":"integer"},"spreads":{"type":"array","items":{"type":"object"}},"undervalued_traits":{"type":"array","items":{"type":"object"}},"cached":{"type":"boolean"}}},"example":{"network":"base","chain_id":8453,"feed_updated_at":"2026-11-21T17:30:00Z","count":2,"spreads":[{"collection":"DX Terminal","contract_address":"0x41DC69132cce31FCbf6755c84538CA268520246f","token_id":"412","strategy":"CROSS_MARKET","route":"OpenSea -> Blur","buy_price_eth":0.0185,"best_bid_eth":0.0209,"net_spread_pct":8.4,"tier":"SUB_THRESHOLD_5_TO_9_9_PCT"}],"undervalued_traits":[],"cached":false}}}},"402":{"description":"Payment Required — includes x402 v2 PAYMENT-REQUIRED header and Bazaar metadata."},"503":{"description":"Service Temporarily Unavailable — payment is never settled on 503."}}}},"/api/v1/nft-valuation":{"post":{"operationId":"nftValuation","summary":"Base NFT Fair-Value & Liquidity Pricing Oracle","description":"Use this tool before buying, bidding on, lending against, or pricing any Base NFT. Computes a deterministic fair minimum valuation combining verified floor price, rarity/trait premium, and real WETH bid liquidity depth on Base.","tags":["NFT Oracle"],"security":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.020000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["contract_address","token_id"],"additionalProperties":false,"properties":{"contract_address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","minLength":42,"maxLength":42,"description":"42-character hexadecimal Base NFT contract address (ERC-721 / ERC-1155)."},"token_id":{"type":"string","minLength":1,"maxLength":78,"description":"Token ID of the NFT to value."},"traits":{"type":"array","description":"Optional array of token traits [{'trait_type': '...', 'value': '...'}] for rarity uplift.","items":{"type":"object","properties":{"trait_type":{"type":"string"},"value":{"type":"string"}}}}}},"example":{"contract_address":"0xBa5e05cb26b78eDa3A2f8e3b3814726305dcAc83","token_id":"42"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["network","contract_address","token_id","floor_price_eth","trait_premium_eth","fair_min_value_eth","bid_liquidity_depth","confidence"],"properties":{"network":{"type":"string"},"chain_id":{"type":"integer"},"contract_address":{"type":"string"},"token_id":{"type":"string"},"collection_name":{"type":"string"},"floor_price_eth":{"type":"number"},"trait_premium_eth":{"type":"number"},"fair_min_value_eth":{"type":"number"},"fair_min_value_usdc":{"type":"number"},"bid_liquidity_depth":{"type":"object"},"confidence":{"type":"string","enum":["HIGH","MEDIUM","LOW"]},"cached":{"type":"boolean"}}},"example":{"network":"base","chain_id":8453,"contract_address":"0xBa5e05cb26b78eDa3A2f8e3b3814726305dcAc83","token_id":"42","collection_name":"BasePaint","floor_price_eth":0.024,"trait_premium_eth":0.0012,"fair_min_value_eth":0.0245,"fair_min_value_usdc":71.05,"bid_liquidity_depth":{"top_bid_eth":0.0212,"bid_coverage_pct":88.3,"sales_24h":28,"liquidity_score":89},"confidence":"HIGH","cached":false}}}},"402":{"description":"Payment Required — includes x402 v2 PAYMENT-REQUIRED header and Bazaar metadata."},"503":{"description":"Service Temporarily Unavailable — payment is never settled on 503."}}}}}}