Wallet, Whitelist, and Query Endpoints
This page summarizes the general query endpoints currently available. They are suitable for account status synchronization, whitelist management, and region data retrieval.
Wallet Endpoints
Wallet Balance
POST /v1/wallet/balancePurpose: Query the current wallet balance for the account.
Key response field:
- balance: current available balance
Response example:
{
"code": 0,
"data": {
"balance": 125.5
},
"msg": "success",
"timestamp": 1747037000
}Wallet Transaction History
POST /v1/wallet/usage_recordPurpose: Query wallet spending records and transaction details.
Request parameters:
- page: page number, default 1
- limit: items per page, default 10, maximum 100
Key response fields:
- count: total record count
- list: transaction list
- list[].money: absolute transaction amount
- list[].type: 0 means incoming funds, 1 means outgoing spending
- list[].pay_status: 1 means completed
Request example:
{
"page": 1,
"limit": 10
}Whitelist Endpoints
The current whitelist endpoints are used to manage whitelist IPs for residential products.
Add to Whitelist
POST /v1/white_list/addCommon parameters:
- product: currently use 1, which represents residential
- ip: the IPv4 address to add
- remark: optional remark
Request example:
{
"product": 1,
"ip": "1.2.3.4",
"remark": "office"
}Whitelist List
POST /v1/white_list/listPurpose: View whitelist entries configured under the current account.
Optional filter parameters:
- product: currently pass 1
- ip: exact match filter for a single IP
- lock: pass 0 or 1
- start_time: start time, format YYYY-MM-DD HH:MM:SS
- end_time: end time, format YYYY-MM-DD HH:MM:SS
Key response fields:
- total: total number of entries
- list[].id: whitelist record ID
- list[].mark_ip: original IP string
- list[].ip: integer representation of the IP
- list[].mark: remark information
- list[].status: 1 means enabled
Response example:
{
"code": 0,
"data": {
"list": [
{
"id": "7c9f2d5d-1111-2222-3333-444444444444",
"uid": "user-id",
"mark_ip": "1.2.3.4",
"ip": 16909060,
"status": 1,
"lock": false,
"mark": "office",
"created_at": 1747037000,
"updated_at": 1747037000
}
],
"total": 1
},
"msg": "success",
"timestamp": 1747037000
}Delete from Whitelist
POST /v1/white_list/delCommon parameters:
- product: currently pass 1
- ips: required; supports batch deletion with comma-separated values, for example 1.1.1.1,2.2.2.2
Request example:
{
"product": 1,
"ips": "1.1.1.1,2.2.2.2"
}Update Remark
POST /v1/white_list/remarkPurpose: Update the remark for a whitelist entry.
Common parameters:
- product: currently pass 1
- id: whitelist record ID
- remark: new remark
Request example:
{
"product": 1,
"id": "7c9f2d5d-1111-2222-3333-444444444444",
"remark": "server-room"
}Dynamic Residential Query Endpoints
Country/Region Query
POST /v1/proxy/domestic_dynamic_areaPurpose: Query available countries and regions for residential proxies.
Optional parameters:
- search_word: search by country name or country code
Key response fields:
- continent: mapping of continent codes to continent names
- country: country list grouped by continent
- country[].list[].code: country code
- country[].list[].ip_num: current number of available regions
Request example:
{
"search_word": "us"
}City Query
POST /v1/proxy/city_by_codePurpose: Query cities by country or region code.
Request parameters:
- code: country code, such as us or hk
State/Province Query
POST /v1/proxy/region_by_cityPurpose: Query state and province information by city.
Request parameters:
- code: country code
- region: city name
Carrier Query
POST /v1/proxy/city_ispPurpose: Query available carriers within a city.
Request parameters:
- code: country code
Residential Traffic Balance
POST /v1/residential_flow/balanceKey response fields:
- balance: remaining traffic, in bytes
- expire_time: earliest expiration timestamp
Response example:
{
"code": 0,
"data": {
"balance": 5368709120,
"expire_time": 1749632000
},
"msg": "success",
"timestamp": 1747037000
}Residential Consumption Log
POST /v1/residential_flow/consume_logRequest parameters:
- start_time: start time, format YYYY-MM-DD HH:MM:SS
- end_time: end time, format YYYY-MM-DD HH:MM:SS
Key response fields:
- list[].use: traffic consumed on that day, in bytes
- list[].day: timestamp aggregated by day
- list[].balance: current remaining traffic snapshot
Request example:
{
"start_time": "2026-04-01 00:00:00",
"end_time": "2026-04-08 23:59:59"
}Dynamic ISP Query Endpoints
ISP Region Query
POST /v1/proxy/isp_data_areaKey response fields:
- country[].code: available region code
- country[].node: display name of the region
ISP Traffic Balance
POST /v1/isp_flow/balanceThe response fields are the same as those for residential traffic balance.
ISP Consumption Log
POST /v1/isp_flow/consume_logThe request parameters are the same as those for the residential consumption log.
Current Limitations
- white_list product=5 is still reserved and is not currently available
- Dynamic Residential and Dynamic ISP currently mainly provide query capabilities; write endpoints will continue to be added later
- The whitelist deletion endpoint currently deletes by ips rather than by id