{"openapi":"3.1.0","info":{"title":"x402 Agent Toolkit","version":"3.3.0","description":"High-value pay-per-request edge intelligence & security suite for autonomous AI agents: Taiwan TWSE financials & institutional flows, AI hardware supply chain, Polymarket+CLOB & Multi-DEX signals, MCP tool-poisoning scanner & Safe-Fetch firewall (Base Mainnet USDC)."},"servers":[{"url":"https://x402-agent-toolkit.x402-edge-tools.workers.dev"}],"paths":{"/api/safe-fetch":{"get":{"summary":"Agent Immune System — Prompt Injection Firewall & Safe Fetch","description":"Security shield for wallet-enabled AI agents: fetches any public URL, strips hidden prompt injections (zero-width unicode, invisible CSS/HTML comments, system-override directives, data-exfiltration links), and returns sanitized Markdown + SHA-256 digest + GO/WARN/BLOCK verdict. (x402 price: $0.015 USDC on eip155:8453)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Public http(s) URL to fetch and sanitize against prompt injections."},"description":"Public http(s) URL to fetch and sanitize against prompt injections."},{"name":"max_chars","in":"query","required":false,"schema":{"type":"integer","default":20000},"description":""}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.015","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"final_url":"https://example.com","verdict":"SAFE","threat_score":0,"stripped_threats":[],"sha256":"abc...","clean_markdown":"# Example"}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"Agent Immune System — Prompt Injection Firewall & Safe Fetch","description":"Security shield for wallet-enabled AI agents: fetches any public URL, strips hidden prompt injections (zero-width unicode, invisible CSS/HTML comments, system-override directives, data-exfiltration links), and returns sanitized Markdown + SHA-256 digest + GO/WARN/BLOCK verdict. (x402 price: $0.015 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public http(s) URL to fetch and sanitize against prompt injections."},"max_chars":{"type":"integer","default":20000}},"required":["url"]},"example":{"url":"https://example.com"}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.015","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"final_url":"https://example.com","verdict":"SAFE","threat_score":0,"stripped_threats":[],"sha256":"abc...","clean_markdown":"# Example"}}}},"402":{"description":"Payment Required"}}}},"/api/ai-supply-chain":{"get":{"summary":"Taiwan AI Hardware Supply Chain Wire (Mapped to US Tickers)","description":"Real-time leading indicator for $NVDA/$TSM/$AVGO/$AMD/$SMCI: aggregates 24 curated Tier 1-3 Taiwan TWSE AI suppliers (Foundry/CoWoS, AI Server ODMs, Liquid Cooling, ABF Substrates, CCL/PCB, 800G Networking, ASICs) with live monthly revenue YoY/MoM, US ticker read-through & composite AI Hardware Demand Index. (x402 price: $0.03 USDC on eip155:8453)","parameters":[{"name":"us_ticker","in":"query","required":false,"schema":{"type":"string","description":"Optional US ticker filter (NVDA, TSM, AVGO, AMD, SMCI, AAPL)."},"description":"Optional US ticker filter (NVDA, TSM, AVGO, AMD, SMCI, AAPL)."},{"name":"layer","in":"query","required":false,"schema":{"type":"string","description":"Optional supply-chain layer filter (foundry, odm, cooling, pcb, networking, asic, power)."},"description":"Optional supply-chain layer filter (foundry, odm, cooling, pcb, networking, asic, power)."}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.03","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"index_yoy_pct":42.8,"suppliers_count":24,"us_ticker_filter":"NVDA","suppliers":[{"code":"2330","name":"台積電","layer":"foundry","us_tickers":["NVDA","TSM","AAPL","AMD"],"yoy_pct":59.7}]}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"Taiwan AI Hardware Supply Chain Wire (Mapped to US Tickers)","description":"Real-time leading indicator for $NVDA/$TSM/$AVGO/$AMD/$SMCI: aggregates 24 curated Tier 1-3 Taiwan TWSE AI suppliers (Foundry/CoWoS, AI Server ODMs, Liquid Cooling, ABF Substrates, CCL/PCB, 800G Networking, ASICs) with live monthly revenue YoY/MoM, US ticker read-through & composite AI Hardware Demand Index. (x402 price: $0.03 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"us_ticker":{"type":"string","description":"Optional US ticker filter (NVDA, TSM, AVGO, AMD, SMCI, AAPL)."},"layer":{"type":"string","description":"Optional supply-chain layer filter (foundry, odm, cooling, pcb, networking, asic, power)."}}},"example":{"us_ticker":"NVDA"}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.03","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"index_yoy_pct":42.8,"suppliers_count":24,"us_ticker_filter":"NVDA","suppliers":[{"code":"2330","name":"台積電","layer":"foundry","us_tickers":["NVDA","TSM","AAPL","AMD"],"yoy_pct":59.7}]}}}},"402":{"description":"Payment Required"}}}},"/api/x402-preflight":{"get":{"summary":"x402 Endpoint Safety & Spec Preflight Auditor","description":"Before your AI agent pays an unknown x402 URL, audit it: checks latency, HTTP 402 compliance, decodes PAYMENT-REQUIRED, verifies official USDC contract & valid payTo address, checks Bazaar schema, and returns a 0-100 trust score. (x402 price: $0.005 USDC on eip155:8453)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Target x402 endpoint URL to preflight-audit."},"description":"Target x402 endpoint URL to preflight-audit."},{"name":"method","in":"query","required":false,"schema":{"type":"string","enum":["GET","POST"],"default":"GET"},"description":""}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"target_url":"https://...","http_status":402,"valid_x402":true,"safe_to_pay":true,"trust_score":95,"price_usdc":0.003,"flags":[]}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"x402 Endpoint Safety & Spec Preflight Auditor","description":"Before your AI agent pays an unknown x402 URL, audit it: checks latency, HTTP 402 compliance, decodes PAYMENT-REQUIRED, verifies official USDC contract & valid payTo address, checks Bazaar schema, and returns a 0-100 trust score. (x402 price: $0.005 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Target x402 endpoint URL to preflight-audit."},"method":{"type":"string","enum":["GET","POST"],"default":"GET"}},"required":["url"]},"example":{"url":"https://x402-agent-toolkit.x402-edge-tools.workers.dev/api/site-intel?url=https://example.com"}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"target_url":"https://...","http_status":402,"valid_x402":true,"safe_to_pay":true,"trust_score":95,"price_usdc":0.003,"flags":[]}}}},"402":{"description":"Payment Required"}}}},"/api/repo-intel":{"get":{"summary":"GitHub Repository & Package Traction Intelligence","description":"Single-call structured GitHub intelligence for coding & research agents: stars, forks, open issues, latest release, language mix, maintenance health score, and npm/PyPI registry metadata. (x402 price: $0.005 USDC on eip155:8453)","parameters":[{"name":"repo","in":"query","required":true,"schema":{"type":"string","description":"GitHub repository in owner/name format (e.g. coinbase/x402)."},"description":"GitHub repository in owner/name format (e.g. coinbase/x402)."},{"name":"npm_package","in":"query","required":false,"schema":{"type":"string","description":"Optional npm package name."},"description":"Optional npm package name."},{"name":"pypi_package","in":"query","required":false,"schema":{"type":"string","description":"Optional PyPI package name."},"description":"Optional PyPI package name."}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"repo":"coinbase/x402","stars":5000,"forks":600,"latest_release":"v2.0.0","health_score":92}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"GitHub Repository & Package Traction Intelligence","description":"Single-call structured GitHub intelligence for coding & research agents: stars, forks, open issues, latest release, language mix, maintenance health score, and npm/PyPI registry metadata. (x402 price: $0.005 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repo":{"type":"string","description":"GitHub repository in owner/name format (e.g. coinbase/x402)."},"npm_package":{"type":"string","description":"Optional npm package name."},"pypi_package":{"type":"string","description":"Optional PyPI package name."}},"required":["repo"]},"example":{"repo":"coinbase/x402"}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"repo":"coinbase/x402","stars":5000,"forks":600,"latest_release":"v2.0.0","health_score":92}}}},"402":{"description":"Payment Required"}}}},"/api/tw-stock-intel":{"get":{"summary":"Taiwan Stock Exchange (TWSE) Financial & Disclosure Intelligence","description":"Structured English-keyed Taiwan listed company intelligence from official TWSE OpenAPI: daily OHLCV, P/E, dividend yield, P/B, monthly revenue YoY/MoM growth, and material disclosures (or quantitative market screeners). (x402 price: $0.02 USDC on eip155:8453)","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","description":"Taiwan stock ticker code (e.g. 2330 for TSMC). Omit to run a screener."},"description":"Taiwan stock ticker code (e.g. 2330 for TSMC). Omit to run a screener."},{"name":"screener","in":"query","required":false,"schema":{"type":"string","enum":["top_revenue_yoy","top_dividend","top_volume","latest_disclosures"],"description":"Market-wide screener mode."},"description":"Market-wide screener mode."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10},"description":""}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.02","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"mode":"ticker","code":"2330","name":"台積電","industry":"半導體業","quote":{"date":"2026-12-03","close":2315},"valuation":{"pe_ratio":23.56,"dividend_yield_pct":0.95},"monthly_revenue":{"period":"2026-10","yoy_pct":59.71}}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"Taiwan Stock Exchange (TWSE) Financial & Disclosure Intelligence","description":"Structured English-keyed Taiwan listed company intelligence from official TWSE OpenAPI: daily OHLCV, P/E, dividend yield, P/B, monthly revenue YoY/MoM growth, and material disclosures (or quantitative market screeners). (x402 price: $0.02 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Taiwan stock ticker code (e.g. 2330 for TSMC). Omit to run a screener."},"screener":{"type":"string","enum":["top_revenue_yoy","top_dividend","top_volume","latest_disclosures"],"description":"Market-wide screener mode."},"limit":{"type":"integer","default":10}}},"example":{"code":"2330"}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.02","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"mode":"ticker","code":"2330","name":"台積電","industry":"半導體業","quote":{"date":"2026-12-03","close":2315},"valuation":{"pe_ratio":23.56,"dividend_yield_pct":0.95},"monthly_revenue":{"period":"2026-10","yoy_pct":59.71}}}}},"402":{"description":"Payment Required"}}}},"/api/market-signals":{"get":{"summary":"Prediction Market & Multi-DEX Cross-Source Signal Scanner","description":"Cross-source quantitative signals for trading agents: (1) Polymarket Gamma + live CLOB orderbook spread, depth imbalance, YES+NO mispricing & breakout turnover; (2) Multi-DEX cross-pool price spread & arbitrage feasibility. (x402 price: $0.025 USDC on eip155:8453)","parameters":[{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["polymarket","dex_arb"],"default":"polymarket"},"description":""},{"name":"query","in":"query","required":false,"schema":{"type":"string","description":"Keyword filter for Polymarket markets."},"description":"Keyword filter for Polymarket markets."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":8},"description":""},{"name":"address","in":"query","required":false,"schema":{"type":"string","description":"Token address for mode=dex_arb."},"description":"Token address for mode=dex_arb."},{"name":"chain","in":"query","required":false,"schema":{"type":"string","default":"base"},"description":""}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.025","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"mode":"polymarket","analyzed_count":8,"signals":[{"question":"Will BTC reach ...","yes_price":0.62,"spread_bps":120,"orderbook_imbalance":0.34,"signal_tags":["high_turnover_breakout"]}]}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"Prediction Market & Multi-DEX Cross-Source Signal Scanner","description":"Cross-source quantitative signals for trading agents: (1) Polymarket Gamma + live CLOB orderbook spread, depth imbalance, YES+NO mispricing & breakout turnover; (2) Multi-DEX cross-pool price spread & arbitrage feasibility. (x402 price: $0.025 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["polymarket","dex_arb"],"default":"polymarket"},"query":{"type":"string","description":"Keyword filter for Polymarket markets."},"limit":{"type":"integer","default":8},"address":{"type":"string","description":"Token address for mode=dex_arb."},"chain":{"type":"string","default":"base"}}},"example":{"mode":"polymarket","limit":8}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.025","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"mode":"polymarket","analyzed_count":8,"signals":[{"question":"Will BTC reach ...","yes_price":0.62,"spread_bps":120,"orderbook_imbalance":0.34,"signal_tags":["high_turnover_breakout"]}]}}}},"402":{"description":"Payment Required"}}}},"/api/deep-extract":{"get":{"summary":"Deep Structured Web, HTML Table & SPA State Extractor","description":"Heavy-duty extraction for AI agents: parses all HTML tables into typed JSON objects/rows, extracts hidden SPA hydration JSON (__NEXT_DATA__, JSON-LD, embedded data islands), heading outline, OpenGraph metadata, and clean Markdown. (x402 price: $0.015 USDC on eip155:8453)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Public http(s) URL to extract structured tables, SPA JSON & Markdown from."},"description":"Public http(s) URL to extract structured tables, SPA JSON & Markdown from."},{"name":"max_tables","in":"query","required":false,"schema":{"type":"integer","default":10},"description":""},{"name":"include_markdown","in":"query","required":false,"schema":{"type":"boolean","default":true},"description":""}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.015","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"final_url":"https://example.com","title":"Example","tables_count":1,"tables":[{"headers":["Col1","Col2"],"rows":[{"Col1":"A","Col2":"B"}]}],"embedded_data":{"json_ld":[],"next_data_present":false}}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"Deep Structured Web, HTML Table & SPA State Extractor","description":"Heavy-duty extraction for AI agents: parses all HTML tables into typed JSON objects/rows, extracts hidden SPA hydration JSON (__NEXT_DATA__, JSON-LD, embedded data islands), heading outline, OpenGraph metadata, and clean Markdown. (x402 price: $0.015 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public http(s) URL to extract structured tables, SPA JSON & Markdown from."},"max_tables":{"type":"integer","default":10},"include_markdown":{"type":"boolean","default":true}},"required":["url"]},"example":{"url":"https://example.com"}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.015","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"final_url":"https://example.com","title":"Example","tables_count":1,"tables":[{"headers":["Col1","Col2"],"rows":[{"Col1":"A","Col2":"B"}]}],"embedded_data":{"json_ld":[],"next_data_present":false}}}}},"402":{"description":"Payment Required"}}}},"/api/web-to-markdown":{"get":{"summary":"Web-to-Markdown Converter","description":"Convert any public web page into clean, LLM-ready Markdown + metadata & links. (x402 price: $0.002 USDC on eip155:8453)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Public http(s) URL to convert to Markdown"},"description":"Public http(s) URL to convert to Markdown"},{"name":"max_chars","in":"query","required":false,"schema":{"type":"integer","default":25000},"description":""},{"name":"include_links","in":"query","required":false,"schema":{"type":"boolean","default":true},"description":""}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.002","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"url":"https://example.com","title":"Example Domain","word_count":25,"markdown":"# Example Domain","links":[]}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"Web-to-Markdown Converter","description":"Convert any public web page into clean, LLM-ready Markdown + metadata & links. (x402 price: $0.002 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public http(s) URL to convert to Markdown"},"max_chars":{"type":"integer","default":25000},"include_links":{"type":"boolean","default":true}},"required":["url"]},"example":{"url":"https://example.com"}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.002","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"url":"https://example.com","title":"Example Domain","word_count":25,"markdown":"# Example Domain","links":[]}}}},"402":{"description":"Payment Required"}}}},"/api/token-check":{"get":{"summary":"On-Chain Token Risk & Market Check","description":"Aggregate DexScreener liquidity/volume and GoPlus contract security into a 0-100 risk report. (x402 price: $0.005 USDC on eip155:8453)","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","description":"Token contract address (0x... or Solana Base58)"},"description":"Token contract address (0x... or Solana Base58)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","default":"base"},"description":""}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"address":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","chain":"base","risk_score":0,"risk_level":"low","risk_flags":[]}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"On-Chain Token Risk & Market Check","description":"Aggregate DexScreener liquidity/volume and GoPlus contract security into a 0-100 risk report. (x402 price: $0.005 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"Token contract address (0x... or Solana Base58)"},"chain":{"type":"string","default":"base"}},"required":["address"]},"example":{"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain":"base"}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"address":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","chain":"base","risk_score":0,"risk_level":"low","risk_flags":[]}}}},"402":{"description":"Payment Required"}}}},"/api/tw-institutional-flows":{"get":{"summary":"Taiwan TWSE Institutional Flows & Margin Positioning (Foreign / Trust / Dealer)","description":"Official TWSE daily institutional money-flow intelligence in clean English JSON: market-wide Foreign, Investment Trust & Dealer net buy/sell (TWD), per-stock institutional net shares (T86), margin financing & short-selling balances (MI_MARGN), top foreign net-bought/sold leaders, and 24-company AI hardware supply chain institutional positioning. (x402 price: $0.02 USDC on eip155:8453)","parameters":[{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["overview","ai_chain","ticker"],"default":"overview","description":"overview (market totals + top foreign buys/sells + AI chain summary), ai_chain (24 AI hardware stocks), or ticker (single stock)."},"description":"overview (market totals + top foreign buys/sells + AI chain summary), ai_chain (24 AI hardware stocks), or ticker (single stock)."},{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"Optional Taiwan stock code (e.g. 2330). Forces single-stock mode when provided."},"description":"Optional Taiwan stock code (e.g. 2330). Forces single-stock mode when provided."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"description":"Number of top net-bought / net-sold stocks to return (1-30)."},"description":"Number of top net-bought / net-sold stocks to return (1-30)."}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.02","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"date":"2026-12-04","mode":"overview","market_summary_twd":{"foreign_net":-41218359239,"trust_net":4992624084,"dealer_net":-4921278086,"total_net":-41147013241},"top_foreign_net_buy":[{"code":"2317","name":"鴻海","foreign_net_shares":12000000}]}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"Taiwan TWSE Institutional Flows & Margin Positioning (Foreign / Trust / Dealer)","description":"Official TWSE daily institutional money-flow intelligence in clean English JSON: market-wide Foreign, Investment Trust & Dealer net buy/sell (TWD), per-stock institutional net shares (T86), margin financing & short-selling balances (MI_MARGN), top foreign net-bought/sold leaders, and 24-company AI hardware supply chain institutional positioning. (x402 price: $0.02 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["overview","ai_chain","ticker"],"default":"overview","description":"overview (market totals + top foreign buys/sells + AI chain summary), ai_chain (24 AI hardware stocks), or ticker (single stock)."},"symbol":{"type":"string","description":"Optional Taiwan stock code (e.g. 2330). Forces single-stock mode when provided."},"limit":{"type":"integer","default":10,"description":"Number of top net-bought / net-sold stocks to return (1-30)."}}},"example":{"mode":"overview","limit":10}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.02","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"date":"2026-12-04","mode":"overview","market_summary_twd":{"foreign_net":-41218359239,"trust_net":4992624084,"dealer_net":-4921278086,"total_net":-41147013241},"top_foreign_net_buy":[{"code":"2317","name":"鴻海","foreign_net_shares":12000000}]}}}},"402":{"description":"Payment Required"}}}},"/api/mcp-security-scan":{"get":{"summary":"MCP Server Tool-Poisoning & Prompt-Injection Security Scanner","description":"Before your AI agent connects to an unknown remote Streamable HTTP MCP server, scan it: executes initialize + tools/list, inspects every tool description & JSON schema for hidden prompt injections, zero-width/bidi unicode stealth chars, credential/wallet exfiltration instructions, and dangerous shell/execution surfaces, returning a 0-100 risk score, verdict & SHA-256 manifest digest. (x402 price: $0.01 USDC on eip155:8453)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Public Streamable HTTP MCP endpoint URL to audit (e.g. https://example.com/mcp)."},"description":"Public Streamable HTTP MCP endpoint URL to audit (e.g. https://example.com/mcp)."}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.01","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"target_url":"https://example.com/mcp","server_name":"example-mcp","tools_count":10,"risk_score":0,"verdict":"SAFE","findings":[],"manifest_sha256":"abc..."}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"MCP Server Tool-Poisoning & Prompt-Injection Security Scanner","description":"Before your AI agent connects to an unknown remote Streamable HTTP MCP server, scan it: executes initialize + tools/list, inspects every tool description & JSON schema for hidden prompt injections, zero-width/bidi unicode stealth chars, credential/wallet exfiltration instructions, and dangerous shell/execution surfaces, returning a 0-100 risk score, verdict & SHA-256 manifest digest. (x402 price: $0.01 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public Streamable HTTP MCP endpoint URL to audit (e.g. https://example.com/mcp)."}},"required":["url"]},"example":{"url":"https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.01","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"target_url":"https://example.com/mcp","server_name":"example-mcp","tools_count":10,"risk_score":0,"verdict":"SAFE","findings":[],"manifest_sha256":"abc..."}}}},"402":{"description":"Payment Required"}}}},"/api/site-intel":{"get":{"summary":"Website Security & AI-Readiness Inspector","description":"Audit HTTP security headers, metadata, OpenGraph, tech stack hints, robots.txt, and llms.txt. (x402 price: $0.003 USDC on eip155:8453)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Public domain or URL to inspect"},"description":"Public domain or URL to inspect"}],"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.003","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"final_url":"https://example.com","https":true,"security_headers":{"score":75,"missing":["permissions-policy"]}}}}},"402":{"description":"Payment Required"}}},"post":{"summary":"Website Security & AI-Readiness Inspector","description":"Audit HTTP security headers, metadata, OpenGraph, tech stack hints, robots.txt, and llms.txt. (x402 price: $0.003 USDC on eip155:8453)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public domain or URL to inspect"}},"required":["url"]},"example":{"url":"https://example.com"}}}},"x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"$0.003","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe7702c3d5918eeab4c4b96ad5c821256ee1cb417"},"responses":{"200":{"description":"Paid response","content":{"application/json":{"example":{"final_url":"https://example.com","https":true,"security_headers":{"score":75,"missing":["permissions-policy"]}}}}},"402":{"description":"Payment Required"}}}}}}