1. Traffic & Usage
Proxy302 API
  • Auth
    • Issue the Basic authorization value
      GET
    • Current API key identity
      GET
  • Directory
    • List areas by granularity
      GET
    • List payways (price plans) for a static product
      GET
    • List live-verified ISPs for dynamic ASN targeting
      GET
  • Purchase
    • Buy static traffic proxy
      POST
    • Buy static IP proxy
      POST
    • Buy dynamic traffic proxy
      POST
    • Buy dynamic IP proxy by area
      POST
  • Proxy List
    • List owned proxy tokens
      GET
  • Traffic & Usage
    • Traffic consumption by day and pool category
      GET
    • Usage chart series
      GET
    • Spend chart by legacy category (PTC)
      GET
    • Remaining traffic pool balance
      GET
  • Renewal
    • Renew a static IP (paid)
      POST
    • Toggle auto renewal
      PUT
  • IP Whitelist
    • List the token's whitelisted source IPs
      GET
    • Bind a source IP to the token
      POST
    • Unbind a source IP from the token
      DELETE
  • Session
    • Reset sticky sessions (new exit IP, same credential)
      DELETE
    • Reset sticky sessions via X-HTTP-Method-Override: DELETE
      POST
  • 数据模型
    • LegacyEnvelope
    • MeResult
    • AreaRow
    • PaywayRow
    • IspCatalogRow
    • PurchaseRequest
    • DynamicPurchaseRequest
    • PurchaseResult
    • TokenPage
    • TokenRow
    • ConsumeLogSummary
    • UsageSummary
    • CostSummary
    • TrafficPoolRemaining
    • TrafficPoolRow
    • RenewRequest
    • RenewResult
    • AutoRenewToggleResult
    • WhitelistAddRequest
    • IpWhitelistView
    • SessionResetRequest
    • SessionResetView
默认模块Proxy302 API
Proxy302 API
默认模块Proxy302 API
Proxy302 API
  1. Traffic & Usage

Spend chart by legacy category (PTC)

GET
/open_api/v3/proxy/summary/cost/{statistics_type}
PTC spend (t_ip_orders.value/1000) over successful deduction orders, pivoted into the fixed legacy categories plus 'total'. 'day' = last 24h hourly, 'month' = last 30 days daily. values/summary are PTC numbers with at most 3 decimals (wire truth, NOT integer milli).

请求参数

Authorization
Basic Auth
在 Header 添加参数
Authorization
,其值为在 Basic 之后拼接空格,以及经过 Base64 编码的 username:password
示例:
Authorization: Basic *****************
or
Path 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/open_api/v3/proxy/summary/cost/month' \
--header 'Authorization: Basic <encoded-value>'

返回响应

🟢200
application/json
HTTP 200 always; judge by envelope code
Bodyapplication/json

示例
{
    "code": 0,
    "msg": "success",
    "data": {
        "keys": [
            "2026-10-19",
            "2026-10-20"
        ],
        "values": {
            "buy_1g_dynamic_traffic": [
                1.234,
                0.5
            ],
            "buy_1g_static_traffic": [
                0,
                0
            ],
            "buy_1g_static_data_center_traffic": [
                0,
                2
            ],
            "create_vm": [
                0,
                0
            ],
            "buy_residential_private_static_ip": [
                0,
                0
            ],
            "buy_data_center_private_static_ip": [
                0,
                0
            ],
            "buy_a_dynamic": [
                0,
                0
            ],
            "total": [
                1.234,
                2.5
            ]
        },
        "summary": {
            "buy_1g_dynamic_traffic": 1.734,
            "buy_1g_static_traffic": 0,
            "buy_1g_static_data_center_traffic": 2,
            "create_vm": 0,
            "buy_residential_private_static_ip": 0,
            "buy_data_center_private_static_ip": 0,
            "buy_a_dynamic": 0,
            "total": 3.734
        }
    }
}
修改于 2026-10-26 19:25:15
上一页
Usage chart series
下一页
Remaining traffic pool balance
Built with