世界数字教育网面向 AI Agent 的结构化数字教育机会数据接口。每日生产 12 条 7 维评分机会卡、12 信号需求雷达、决策报告与 94 家公司库 —— 全部中英双语、JSON 结构化、带市场证据与来源标注。通过 REST、MCP、A2A 三种协议调用,按次计费。
Machine-readable discovery endpoints. An agent should read these first.
Every payload is bilingual (zh/en fields), structured JSON, with scores + market evidence + source attribution + disclaimer.
三步接入:建 key → 调 REST → 看响应。所有端点统一返回外壳(status / engine / data / pricing / disclaimer)。
# 1) 获取你的 API key —— 推荐: 注册 digitaleducation.world 即送 10 算力 + 自动生成 key(个人中心 user.html 复制) # 临时体验(不绑账户, 每key每月100次): 用下面的 curl 临时建一个 KEY=$(curl -s -X POST https://api.digitaleducation.world/api/v1/keys/create \ -H 'Content-Type: application/json' -d '{"owner":"my-agent"}' | python3 -c 'import json,sys;print(json.load(sys.stdin)["api_key"])') echo $KEY # 2) 拉今日 TOP5 机会卡 (X-API-Key 头) curl -s -H "X-API-Key: $KEY" \ 'https://api.digitaleducation.world/api/v1/opportunities?top=5' | python3 -m json.tool # 3) 自然语言分析 (Insight Engine) curl -s -X POST -H "X-API-Key: $KEY" -H 'Content-Type: application/json' \ https://api.digitaleducation.world/api/v1/insight/query \ -d '{"query":"现在哪个AI副业方向机会最大?"}' # 4) 查我的用量/余额 curl -s -H "X-API-Key: $KEY" https://api.digitaleducation.world/api/v1/usage
import requests BASE = "https://api.digitaleducation.world" KEY = "dmw_live_xxxx" # 你的 key h = {"X-API-Key": KEY} # 今日机会卡 cards = requests.get(f"{BASE}/api/v1/opportunities?top=5", headers=h).json() for o in cards["data"]["opportunities"]: print(o["title_zh"], o["scores"]) # 需求雷达 radar = requests.get(f"{BASE}/api/v1/demand-radar", headers=h).json() # Insight 问答 ans = requests.post(f"{BASE}/api/v1/insight/query", headers=h, json={"query": "跨境电商现在最好的切入点?"}).json() print(ans["answer"], ans["disclaimer"]["zh"])
const BASE = "https://api.digitaleducation.world"; // 生产. 同域部署时可用 "" (本页即随 API 部署, 相对路径即可) const KEY = "dmw_live_xxxx"; async function getCards(top = 5) { const r = await fetch(`${BASE}/api/v1/opportunities?top=${top}`, { headers: { "X-API-Key": KEY } }); return r.json(); } async function insight(query) { const r = await fetch(`${BASE}/api/v1/insight/query`, { method: "POST", headers: { "X-API-Key": KEY, "Content-Type": "application/json" }, body: JSON.stringify({ query }) }); return r.json(); } getCards().then(d => console.log(d.data.opportunities));
除 REST 外,DMW 原生支持 MCP(Model Context Protocol)与 A2A(Agent-to-Agent),你的 agent 可直接挂载为工具/对等 agent。
// 在 mcp 客户端配置里加入 (Streamable HTTP): { "mcpServers": { "dmw-insight": { "url": "https://digitaleducation.world/mcp", "headers": { "X-API-Key": "dmw_live_你的key" } } } } # 端点: https://digitaleducation.world/mcp (JSON-RPC 2.0, POST) # 协议版本: 2025-06-18 / 2025-03-26 / 2024-11-05
# Agent Card (发现能力): GET https://digitaleducation.world/.well-known/agent.json # 发送消息 (JSON-RPC): curl -s -X POST https://digitaleducation.world/a2a \ -H "X-API-Key: 你的key" -H 'Content-Type: application/json' \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "message/send", "params": { "message": { "role": "user", "parts": [{ "text": "列出今天TOP3机会并说明切入路径" }] } } }' # 响应: { "result": { "role": "agent", "parts": [{"text": "..."}], "engine": "DMW Insight Engine" } }
完整 schema 见 openapi.json。所有付费端点需 X-API-Key,返回统一外壳。
算力 = DMW 统一计费单位(1 元 = 10 算力,对外以 USD 标价)。先免费用,够了再充值。
| 层级 | 包含 | 计费 | 获取方式 |
|---|---|---|---|
| 🎁 注册送算力 | 注册即送 10 算力 + 自动生成 API Key;与网站 AI / Muse 同一钱包(统一算力池),全站共用、一起扣 | $0 白拿 | 注册 digitaleducation.world 即得 |
| 免费层 | 每 API key 每月 100 次调用;无 key 时每 IP 每月 10 次(带水印) | $0 | 注册即得,无需信用卡 |
| 单次查询 | 单卡详情等轻量端点 | 10 算力 / $0.02 | 余额扣费 |
| 批量拉取 | 机会卡/雷达/报告/公司库全量 | 100 算力 / $0.10 | 余额扣费 |
| Insight 问答 | 自然语言分析(基于最新数据) | 50 算力 / $0.05 | 余额扣费 |
| 深度分析 | 定制报告:格局/路径/90天计划/风险 | 1000 算力 / $1.00 | 余额扣费 |
POST /api/v1/keys/redeem)或官网支付通道充值算力。10 算力=$0.02 · 100=$0.10 · 1000=$1.00,线性可叠加。免费次数优先消耗,超出后自动扣余额,余额不足返回 402。
你的每份机会报告都会永久保存,并可一键转成 Agent 能直接接手的 8 层工作包(Mission / Context / Knowledge / Decisions / Tasks / Instructions / Sources / Next Action)。报告生成已扣 10 算力;Pack 与永久链接是同一份报告的格式转换,免费。
# Agent 直接拉取你的报告工作包(X-API-Key = 你在个人中心复制的 key) curl -s -H "X-API-Key: *** \ https://digitaleducation.world/api/reports/omv2_xxxxxxxxxxxxxxxx/agent-md # 或 登录态(浏览器 session) curl -s -H "Authorization: Bearer <你的token> \ https://digitaleducation.world/api/reports/omv2_xxxxxxxxxxxxxxxx/agent-md