1. Purchase
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 APIProxy302 API
默认模块Proxy302 APIProxy302 API
  1. Purchase

Buy dynamic traffic proxy

POST
/open_api/v3/proxy/api/proxy/dynamic/traffic
Purchase parameters may be sent in the JSON body and/or the query string (body wins on conflicts). Dynamic purchases accept session_mode (sticky default; rotating requires the standard line s=3/4 — s=1/2 with rotating returns 422) and session_duration (sticky minutes, whitelist 10/30/60/120, standard line only; the duration joins the idempotency fingerprint, so changing it needs a new idempotency_key). Subnational targeting: state_id/city_id ride the premium line only — s=1/2 with country_id(+state_id)(+city_id) provisions through the verified gateway bridge; s=3/4 with state_id/city_id is rejected. ISP targeting: the isp catalog key (see GET /proxy/isp/catalog) requires the premium line s=1/2 plus country_id and is rejected elsewhere.

请求参数

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

示例
{
    "s": 3,
    "protocol": "http",
    "country_id": 233,
    "state_id": 0,
    "city_id": 0,
    "is_data_center": false,
    "billing_mode": "prepaid_pool",
    "session_mode": "sticky",
    "session_duration": 30
}

请求示例代码

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/api/proxy/dynamic/traffic' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
    "s": 3,
    "protocol": "http",
    "country_id": 233,
    "state_id": 0,
    "city_id": 0,
    "is_data_center": false,
    "billing_mode": "prepaid_pool",
    "session_mode": "sticky",
    "session_duration": 30
}'

返回响应

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

示例
{
    "code": 0,
    "msg": "success",
    "data": {
        "token_id": 410514,
        "username": "u9wd5t2r",
        "password": "Zm4nB7cX",
        "host": "proxy.proxy302.com",
        "port": 2222,
        "protocol": "http",
        "pool_id": 1190,
        "is_api": 1,
        "is_static": false,
        "direct_mysql": true
    }
}
修改于 2026-10-26 19:27:05
上一页
Buy static IP proxy
下一页
Buy dynamic IP proxy by area
Built with