返回本月的译文页面数和套餐的每月上限。Starter、Pro 和 Premium 套餐上任何有效密钥都可使用,账户被暂停时也可以。
概览
- 方法
GET- URL
https://wallgone.com/v1/usage- 套餐
- Starter、Pro 和 Premium
- 返回内容
200,附带{"month","pages","quota"}
响应
响应
{"month":"2026-11","pages":312,"quota":1000}
| 字段 | 值 |
|---|---|
month | 当前的日历月(UTC),格式为 YYYY-MM。 |
pages | 本月到目前为止计入的译文页面数。哪些会计入。 |
quota | 套餐每月包含的译文页面数;没有上限时为 null。 |
错误
| 状态 | 代码 | 何时出现 |
|---|---|---|
| 401 | unauthorized | API 密钥缺失、拼写错误或已被撤销。 |
| 403 | not_in_plan | 该账户使用 Free 套餐,Free 不含 API。Starter、Pro 和 Premium 套餐含 API。 |
示例
curl
curl https://wallgone.com/v1/usage \
-H "Authorization: Bearer wg_your_key"