Command Palette

Search for a command to run...

API v1.0

API 文档

Forge Space API 提供结构化的 Web3 链上数据和 AI 模型指标。通过 REST API 接入,支持按量计费,灵活扩展。

快速开始

1. 获取 API Key

注册后在 Dashboard → API 密钥 中生成你的 API Key。

2. 发送请求

curl -H "Authorization: Bearer fs_api_xxxxxx" \
  "https://api.forgespace.com/v1/chain/metrics?chain=ethereum&period=24h"

3. 处理响应

{ "data": { "tvl": 58420000000, "volume_24h": 2100000000 }, "chain": "ethereum", "period": "24h" }

API 端点

GET/v1/chain/metrics

获取链上核心指标(TVL、交易量、活跃地址)

参数

chainstring链名称: ethereum, solana, arbitrum, base
periodstring时间范围: 24h, 7d, 30d
GET/v1/defi/protocols

查询 DeFi 协议列表及关键数据

参数

chainstring链名称
categorystring类别: dex, lending, yield, derivatives
sortstring排序: tvl, volume, apr
GET/v1/ai/models

获取 AI 模型基准测试和追踪数据

参数

modelstring模型名称过滤
benchmarkstring基准测试: mmlu, humaneval, gsm8k
GET/v1/nft/collections

查询 NFT 合集数据及地板价趋势

参数

chainstring链名称
periodstring时间范围: 24h, 7d, 30d
GET/v1/web3/projects

搜索 Web3 项目信息和融资数据

参数

qstring搜索关键词
categorystring类别: infra, defi, nft, gaming, social
GET/v1/market/overview

获取加密市场总览(市值、恐惧贪婪指数、主导地位)

速率限制

免费版

100 次/天

入门版

1,000 次/天

专业版

10,000 次/天

企业版

无限制

超出限额后返回 HTTP 429。速率限制按 UTC+8 日历日重置。升级方案即时生效。