MasterInvest投资与收益
开发者 · REST · JSON

MasterInvest公共API

一个用于加密货币价格、市场数据、汇率、HYIP监控状态、交易信号和代理列表的JSON API — 与网站提供相同的数据。免费层无需密钥。

免费
100
requests/day with Free key
REST
16
端点
CORS
*
CORS开放
JSON
gzip
gzip压缩

快速开始

调用一个端点为 https://zh.masterinvest.info/api.php?method=<method>&action=<action>(始终可用) — 当启用 URL 重写时,干净的 /api/v1/<method>/<action> 表单是等效的。

curl
curl -s "https://zh.masterinvest.info/api.php?method=coin&action=price&market=bitcoin&base=usd&type=fiat"
JavaScript
const r = await fetch("https://zh.masterinvest.info/api.php?method=coin&action=price&market=bitcoin&base=usd&type=fiat");
const j = await r.json();
if (j.status === 1) console.log(j.return);

响应格式

每个响应是 { "status": 0|1, "message"?: "...", "return"?: ... }; status:1 = 成功。请缓存响应并保持合理的请求速率。

只想在您的页面上显示一个价格?费率小部件是一行 HTML — 无需密钥,无需代码。

速率限制和API密钥

Keyless demo access is limited to 15 requests per day per IP (10/min burst) to prevent automated scraping. Sign in with your MasterInvest account or Astrina ID to get a free personal API key (100 requests/day), or upgrade to Basic ($9.99/mo) and Pro ($29.99/mo) via Payora.

Demo (IP)$0
15每天 · 10 每分钟突发 · 每个IP,无需密钥
Free Key$0 · Auth
100每天 · 60 每分钟突发 · 1 key per account
Basic$9.99 / 月
25,000每天 · 120 每分钟突发 · REST + HYIP
Pro + Signals$29.99 / 月
250,000每天 · 600 每分钟突发 · VIP Signals

Get your API Key (Unified MasterInvest + Astrina ID)

Sign in with your site account or 1-click Astrina ID to immediately unlock your personal Free key (100 req/day) and instant Basic / Pro upgrades via Payora.

Forgot password? · All Payora plans

带密钥的响应包含X-RateLimit-Tier、X-RateLimit-Limit和X-RateLimit-Remaining头部。大规模的自动化和AI/LLM数据收集需要密钥 — 请参阅AI数据条款。

错误代码

429达到限制
401未知密钥
403密钥已暂停

市场与价格

GET/api/v1/market/data

全球市场快照:总市值、24小时交易量、比特币主导率、恐惧&贪婪指数和顶级币种。缓存 5 分钟。

没有参数。

响应

            

GET/api/v1/coin/price

一种资产以另一种资产报价的交叉价格(币→币或币→法币)。

参数类型必需描述
marketstring必填基础资产名称,例如 bitcoin
basestring必填报价资产名称(币种名称或法币代码),例如 usd
typeenum必填coin 或 fiat — base 的类型
响应

            

GET/api/v1/exchange-market/price

特定交易所交易对的最新价格。

参数类型必需描述
exchangestring必填交易所名称/别名,例如 binance
marketstring必填交易对,例如 BTC/USDT
响应

            

GET/api/v1/coin-exchange-market/price

在特定交易市场上的币种价格。

参数类型必需描述
exchangestring必填交易所名称/别名
marketstring必填市场/交易对标识符
响应

            

自动完成

GET/api/v1/autocomplete/coin

币种名称/符号建议。

参数类型必需描述
querystring必填搜索前缀,例如 bit
响应

            

GET/api/v1/autocomplete/fiat

法定货币建议。

参数类型必需描述
querystring必填搜索前缀,例如 eu
响应

            

GET/api/v1/autocomplete/market

交易所的市场建议。

参数类型必需描述
estring必填交易所名称
qstring必填搜索前缀
响应

            

GET/api/v1/autocomplete/exchange-market

交易所市场建议。

参数类型必需描述
qstring必填搜索前缀
响应

            

GET/api/v1/autocomplete/coin-exchange-market

交易所的币种市场。

参数类型必需描述
exchangestring必填交易所名称
querystring必填搜索前缀
响应

            

GET/api/v1/autocomplete/hyip-monitor

HYIP 监控建议。

参数类型必需描述
querystring必填搜索前缀
响应

            

© 2026 masterinvest.info — llms.txt · 数据按原样提供,不保证正常运行。感谢注明来源。