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 static IP proxy

POST
/open_api/v3/proxy/api/proxy/static/ip
Data center static IP supports http/socks5 only. Purchase parameters may be sent in the JSON body and/or the query string (body wins on conflicts).

请求参数

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

示例
{
    "protocol": "socks5",
    "country_id": 233,
    "state_id": 9,
    "city_id": 0,
    "payway_id": 83,
    "is_data_center": false,
    "idempotency_key": "reseller-20261021-0002"
}

请求示例代码

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/static/ip' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
    "protocol": "socks5",
    "country_id": 233,
    "state_id": 9,
    "city_id": 0,
    "payway_id": 83,
    "is_data_center": false,
    "idempotency_key": "reseller-20261021-0002"
}'

返回响应

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

示例
{
    "code": 0,
    "msg": "success",
    "data": {
        "token_id": 410513,
        "username": "u3mn8z4q",
        "password": "Kd6rT9wP",
        "host": "proxy.proxy302.com",
        "port": 3333,
        "protocol": "socks5",
        "pool_id": 0,
        "is_api": 1,
        "is_static": true,
        "direct_mysql": true
    }
}
修改于 2026-10-26 19:27:05
上一页
Buy static traffic proxy
下一页
Buy dynamic traffic proxy
Built with