使用说明
API for Chads
MCP server for AI agents — crypto prices, prediction markets, web research & rendering
Website • Quick Start • Tools • Examples • Payment
9工具 用于市场情报、网络渲染和深入研究。没有账户,没有订阅-使用Solana微支付或API密钥按请求付费。
为什么?
AI代理需要数据。获取它通常意味着API密钥、月度计划、费率限制仪表盘和账单页面。这是为人类而不是代理人建立的摩擦。
Chads的API是为代理web构建的:
- MCP本地 --代理自动发现和使用工具
- x402本地 --代理人通过Solana按请求付费,不需要人工
- 一台服务器,四种功能 --价格、市场、研究、渲染
- 亚便士定价 --大多数请求的成本<0.02美元
工具
| 工具 | 功能 | 价格 |
|---|---|---|
get_crypto_price |
通过链式预言机+币安实时BTC/ETH | 0.0001 SOL |
get_prediction_market |
Polymarket CLOB最佳买卖/价差 | 0.0001 SOL |
quick_research |
基于网络的研究报告(~20s) | 0.005 SOL |
deep_research |
有引文的自主深度研究(~5min) | 0.02 SOL |
render_webpage |
JS渲染页面→ markdown/text/html | 0.0003信噪比 |
screenshot_webpage |
全页PNG截图 | 0.0005 SOL |
extract_from_webpage |
从任何页面提取CSS选择器 | 0.0003 SOL |
webpage_to_pdf |
第页→ PDF文档 | 0.0005 SOL |
list_services |
带定价的服务目录 | 免费 |
快速开始
克劳德桌面版
添加 claude_desktop_config.json:
{
"mcpServers": {
"apiforchads": {
"url": "https://mcp.apiforchads.com/mcp"
}
}
}
重启克劳德。您现在有9个新工具。
光标/风帆
添加到MCP设置中:
{
"apiforchads": {
"url": "https://mcp.apiforchads.com/mcp"
}
}
任何MCP客户端(Python)
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async with streamablehttp_client("https://mcp.apiforchads.com/mcp") as (r, w, _):
async with ClientSession(r, w) as session:
await session.initialize()
# Get BTC price
result = await session.call_tool("get_crypto_price", {"asset": "BTC"})
print(result) # {"chainlink_price": 65920.45, "binance_price": 65935.12, ...}
例子
获取加密货币价格
# With API key
curl -H "Authorization: Bearer YOUR_KEY" \
https://price.apiforchads.com/v1/prices/BTC
# Response
{
"asset": "BTC",
"chainlink_price": 65920.45,
"binance_price": 65935.12,
"chainlink_age_seconds": 13,
"timestamp": 1771833021
}
获取Polymarket订单簿
curl -H "Authorization: Bearer YOUR_KEY" \
https://price.apiforchads.com/v1/clob/will-trump-deport-less-than-250000
# Response
{
"market_slug": "will-trump-deport-less-than-250000",
"best_bid": 0.42,
"best_ask": 0.44,
"spread": 0.02,
"mid_price": 0.43
}
快速研究
curl -X POST -H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
https://research.apiforchads.com/v1/research \
-d '{"query": "What are the latest Bitcoin ETF inflows?", "tier": "quick"}'
# Returns job_id — poll /v1/research/status/{job_id} for results
渲染JS繁重的页面
curl -X POST -H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
https://render.apiforchads.com/v1/render \
-d '{"url": "https://polymarket.com", "format": "markdown", "max_chars": 5000}'
截图
curl -X POST -H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
https://render.apiforchads.com/v1/render/screenshot \
-d '{"url": "https://example.com", "full_page": true}' \
--output screenshot.png
Python SDK(即将推出)
from apiforchads import Client
client = Client(api_key="YOUR_KEY")
btc = client.price("BTC")
print(f"BTC: ${btc.chainlink_price:,.2f}")
market = client.clob("will-trump-deport-less-than-250000")
print(f"Bid: {market.best_bid} Ask: {market.best_ask}")
report = client.research("Latest crypto regulations", tier="quick")
print(report.text)
支付
两种支付方式:
1.API密钥(推荐用于人类)
获得1000个请求的免费API密钥:电子邮件 chadbot0x@proton.me
curl -H "Authorization: Bearer YOUR_KEY" https://price.apiforchads.com/v1/prices/BTC
2.x402小额支付(代理人)
这 x402协议 让代理通过Solana按请求付款:
- 调用任何端点——获取
402付款详细信息 - 发送小额支付至
EDQQe7Nufgvo2A6uXTmCpTr2FumZRB3fNzTH4Wuvpvpd - 请重试
X-Payment-Signature包含tx签名的标头 - 获取您的数据
没有注册。无月费。纯按使用付费。
REST API端点
在没有MCP的情况下直接使用这些:
| 基本URL | 服务 |
|---|---|
https://price.apiforchads.com |
加密货币价格+Polymarket CLOB |
https://research.apiforchads.com |
人工智能驱动的研究 |
https://render.apiforchads.com |
网络渲染、截图、PDF |
https://mcp.apiforchads.com |
MCP协议端点 |
速率限制
| 端点 | 限制 |
|---|---|
| 价格/CLOB | 60/分钟 |
| 研究 | 10/min |
| 渲染 | 30/min |
建筑
┌─────────────────────┐
│ Cloudflare Edge │
│ (SSL + routing) │
└──────────┬──────────┘
│
┌────────────────┼────────────────┐
│ │ │
┌─────────┴──┐ ┌────────┴───┐ ┌────────┴───┐
│ Price API │ │ Research │ │ Render API │
│ :8100 │ │ API :8101 │ │ :8102 │
│ │ │ │ │ │
│ • Chainlink│ │ • Gemini │ │ • Playwright│
│ • Binance │ │ • Google │ │ • Chromium │
│ • CLOB │ │ • Search │ │ • SSRF prot │
└────────────┘ └────────────┘ └────────────┘
│ │ │
└────────────────┼────────────────┘
│
┌──────────┴──────────┐
│ MCP Server :8103 │
│ (tool discovery) │
└─────────────────────┘
构建于
- MCP Python SDK --FastMCP流式HTTP传输
- 链环 --分散的oracle价格馈送
- 剧作家 --用于JS渲染的headless Chromium
- 双子座 --基于谷歌搜索的人工智能研究
- x402 --Solana上的HTTP 402微支付协议
- Cloudflare隧道 --零信任网络
自我寄宿
git clone https://github.com/chadbot0x/apiforchads-mcp.git
cd apiforchads-mcp
# Install dependencies
pip install mcp httpx
# Run the MCP server (connects to public APIs by default)
python server.py
要运行完整堆栈(价格+研究+渲染API),请参阅 自助托管指南 (即将推出)。
贡献
欢迎发布问题和PR。如果你用这些工具构建了一些很酷的东西,请告诉我们。
许可证
Built by @chadbot0x · Powered by agents, for agents