◈88Pool 矿池分成台 中文·English
管理登录 矿工登录
DEVELOPER API · 公开只读

开放接口

一套覆盖池总览、算力走势、币种行情、减产倒计时、矿机收益与矿池统计的只读 JSON 接口。数据口径与本站全部公开页面完全一致,可用于自建看板、行情聚合或二次开发。

基础地址 https://www.88pool.com 请求方法 GET 鉴权 无需登录 跨域 Access-Control-Allow-Origin: * 缓存 边缘 5s,服务端数秒 返回 { ok, ts, data }
矿池 池总览 GET /api/pool

本站已接入币种的实时总览:算力、在线 worker、矿机算力榜(最多 15 条),以及挖矿地址 / 费率 / 起付额 / 难度等公开配置。(池内余额与当日产出属经营数据,不对外公开)

{
  "ok": true,
  "ts": 1792560000,
  "data": {
    "fx_usd_cny": 7.2,
    "coins": [
      {
        "coin": "PRL",
        "hashrate": 482000000000000,
        "hashrate_disp": "482.00 TH/s",
        "worker_count": 3,
        "online_count": 1,
        "price": 0.0843,
        "stratum": "www.88pool.com:9444",
        "yield_per_h": 2.6e-14,
        "pool_fee": "1%",
        "min_payout": "1 PRL",
        "top_workers": [ { "worker": "…", "hashrate": 0, "online": true, "share_pct": 100 } ]
      }
    ]
  }
}
矿池 算力 / 币价走势 GET /api/pool/history?coin=PRL&win=7d

矿池算力(H/s)与币价(USD)的等距时间桶序列,已对齐、缺数据点为 null,可直接画折线。

参数必填说明
coin是本站已接入币种代号,如 PRL / BTC
win否时间窗:24h(15 分钟桶) / 7d / 30d,默认 7d
{
  "ok": true,
  "data": {
    "coin": "PRL", "win": "7d", "label": "近 7 天", "bucket": 86400,
    "buckets": [ 1792003200, 1792089600, "…" ],
    "hash": [ 4.8e14, 4.9e14, "…" ],
    "price": [ 0.0843, 0.085, "…" ],
    "hash_max": 5.1e14, "price_max": 0.086,
    "hash_unit": "TH/s", "has_data": true
  }
}
行情 币种行情排行 GET /api/coins

PoW 币种行情列表。排名 = PoW 24 小时产出降序(与 /coins 页面一致);已接入币种用本池实时币价重算市值(price_src=pool)。

{
  "ok": true,
  "data": {
    "fx_usd_cny": 7.2,
    "count": 100,
    "coins": [
      {
        "coin": "PRL", "rank": 2, "name": "Pearl", "algo": "PearlHash",
        "price": 0.0843, "price_src": "pool",
        "marketcap": 420000000, "volume24h": 1800000,
        "output24h": 1860000, "supply_issued": 5000000000,
        "remain_pct": 62.5, "change_pct": 1.24,
        "in_pool": true, "active": 1, "sort": 100
      }
    ]
  }
}
行情 减产倒计时 GET /api/halving

减产倒计时列表:剩余块数(权威录入值)与据此重算的减半点时间戳 halving_at(UTC 秒)。

{
  "ok": true,
  "data": {
    "fx_usd_cny": 7.2,
    "rows": [
      {
        "coin": "BTC", "block_sec": 600, "blocks": 12345,
        "halving_at": 1795000000, "reward": 3.125, "reward_next": 1.5625,
        "coin_per_unit": 0.000012, "price": 84000, "in_pool": false
      }
    ]
  }
}
矿机 矿机收益 GET /api/miners?coin=PRL

矿机型号库 + 按本池收益参数推算的每日收益(币 / USD / 电费 / 净利)。

参数必填说明
coin否币种代号,默认第一个已接入币种
{
  "ok": true,
  "data": {
    "coin": "PRL",
    "params": { "yield_th_day": 0.0113, "yield_basis": "pool", "price_usd": 0.0843, "power_price": 0.06 },
    "miners": [
      {
        "name": "RTX 3060", "hash_disp": "65.00 MH/s", "power_w": 120,
        "coin_per_day": 0.000735, "usd_per_day": 0.062, "profit_usd_day": -0.018
      }
    ]
  }
}
统计 矿池统计 GET /api/statistics?coin=BTC&page=1

幸运值卡(3/7/30/90 日)与区块记录(服务端分页,每页 20 条)。

参数必填说明
coin否币种代号,默认第一个统计币种
page否区块记录页码,默认 1
{
  "ok": true,
  "data": {
    "meta": { "coins": 2, "blocks": 60, "updated_at": 1792560000 },
    "coin": "BTC",
    "lucky": { "coin": "BTC", "name": "Bitcoin", "luck3": 105.3, "luck7": 98.1, "blocks": 30 },
    "blocks": {
      "rows": [ { "height": 972120, "reward": 3.125, "fee": 0.02, "hash": "a1b2…", "explorer": "https://mempool.space/block/a1b2…", "mined_at": 1792560000 } ],
      "total": 60, "page": 1, "pages": 3, "per": 20
    }
  }
}