Skip to main content
Web3Fire
開發者入口

使用 Web3Fire 建構

結構化、已驗證的 Web3 知識——23 個權威節點,包含實體、關聯、比較、時間軸和 AI 就緒的 FAQ。

Entity API

GET /api/entity/:slug — identity, summary, score, relations, compare, sources, timeline, faq

Search API

GET /api/search?q= — FTS5 with alias + intent routing

Compare Data

GET /api/compare/:slug — dimension-by-dimension comparison values

範例回應
{
  "identity": { "id": "ent-ethereum", "type": "concept", "slug": "ethereum", "title": "Ethereum" },
  "summary": "Ethereum is a programmable blockchain platform for smart contracts and decentralized applications.",
  "score": { "authority_score": 90, "content_level": "A" },
  "relations": { "outgoing": [{ "relation_type": "uses", "target_slug": "consensus" }], "incoming": [] },
  "compare": [{ "slug": "ethereum-vs-solana", "title": "Ethereum vs Solana" }],
  "sources": [{ "name": "ethereum.org", "url": "https://ethereum.org" }],
  "timeline": [{ "event_date": "2015-07-30", "event_title": "Ethereum mainnet launch" }],
  "faq": [{ "question": "What is Ethereum?", "answer": "Ethereum is a programmable blockchain..." }]
}
使用案例
AI 知識基礎——用於引用的已驗證實體資料
教育內容——結構化定義和時間軸
決策工具——用於選擇的比較維度
圖譜應用——關聯和權威分數
API 參考
欄位選擇

GET /api/entity/:slug?fields=summary,relations,faq

僅投影所需欄位——減少約 30% 負載。

錯誤處理

400 missing slug · 404 not found · 500 server error

版本控制

V1 endpoints at /api/v1/* remain stable. V2 Intelligence API at /api/v2/* adds entity, news, signals, token, wallet, contract endpoints.

認證路線圖

目前:開放、唯讀、限速。路線圖:開發者 API Key 和付費資料存取。尚未上線。

範例
curl
curl "https://web3fire.com/api/entity/ethereum?lang=en&fields=evidence,trust,freshness"
JavaScript
const r = await fetch('/api/entity/ethereum?fields=evidence');
const d = await r.json();
d.evidence.forEach(c => console.log(c.claim, c.sources[0].url));
Python
import requests
d = requests.get("https://web3fire.com/api/entity/stablecoin?fields=trust").json()
print(d["trust"])  # {evidenceCoverage, sourceCount, confidenceSummary}
速率限制

Anonymous: 100 req/min/IP · Cache: s-maxage=300 · errors: 400/404/500

回報 API 回饋 →