Dynamic Proxy API: Generate Connection Details

Generate dynamic proxy connections with form authentication, location targeting, session settings, and output formats.

Generate connection strings for dynamic residential, datacenter, or mobile proxies. A returned host may be an entry gateway rather than the final exit IP. Generating multiple strings does not guarantee the same number of distinct exit addresses.

Request and authentication

GET /api/user_get_ip_list or POST /api/user_get_ip_list

Send your API Key in the token parameter. POST requests use application/x-www-form-urlencoded form data. This endpoint currently does not read a JSON body or the Api-Token header for authentication. Prefer POST form requests.

Parameters

ParameterDefaultDescription
tokenNoneRequired API Key from your account page
typewifiResidential: wifi; datacenter: dat/dc; mobile: 5g
qty1Number of strings, 1–500; do not rely on correction of values below 1
protocolhttphttp, https, or socks5; availability depends on the configured proxy type
countryEmptyTarget exit country from the location API's value; omit for no country preference
stateEmptyState, wifi only; supply its country too
cityEmptyCity, wifi only; use its value with the corresponding country and state
areaAutomaticEntry region: sg, us, or cn; automatic selection or fallback may use another available entry
is_rand00 generates a session identifier; 1 selects random mode
ip_duration0Duration in minutes; 0 leaves it unspecified; positive values must match an option currently offered in the console
formatjsonjson or txt (text is also accepted); use json for programmatic error handling
output0Connection string layout shown below

area selects an entry region; country/state/city select the target exit location. A positive ip_duration cannot be combined with is_rand=1. Session mode and a requested duration do not imply a permanently fixed IP.

outputString layout
0username:password@host:port
1host:port:username:password
2username:password:host:port
3host:port@username:password

The strings have no protocol prefix. Select the requested protocol in the application using the proxy.

POST example

Set DFIP_API_BASE to the actual API origin and supply DFIP_API_KEY securely. This generates one residential connection without a country preference. Add location parameters from the location API when needed.

curl --silent --show-error --max-time 30 \
  "$DFIP_API_BASE/api/user_get_ip_list" \
  -H 'Accept-Language: en' \
  --data-urlencode "token=$DFIP_API_KEY" \
  --data-urlencode 'type=wifi' \
  --data-urlencode 'protocol=http' \
  --data-urlencode 'qty=1' \
  --data-urlencode 'is_rand=0' \
  --data-urlencode 'ip_duration=0' \
  --data-urlencode 'format=json' \
  --data-urlencode 'output=0'

Illustrative response with placeholder credentials:

{
  "code": 0,
  "msg": "ok",
  "data": ["EXAMPLE_USER:[email protected]:12345"]
}

data is an array of strings, not objects. A successful txt response contains one string per line; a failed txt response may contain only a message. Use JSON and check code when reliable error handling is required.

Sessions and usage

Each session-mode generation request creates new session identifiers. Repeating the request is not an idempotent read of the earlier result. Store the connection details you intend to reuse instead of continually requesting replacements.

The effective account balance must be positive. Shared-balance subaccounts use the shared balance check, and new-user accounts may be restricted to certain proxy types. Generating connection details does not make subsequent traffic free; proxy usage follows the account's product billing rules.

Common errors

CodeMeaning or action
1001qty exceeds 500
1002Invalid type
1003Invalid protocol
1004Protocol unavailable for this proxy type
1005 / 1006Entry region or availability issue; review the selection or contact support
1007 / 1008Invalid, expired, or disabled key, or unavailable account
1010Duration is not currently supported
1011Random mode conflicts with a positive duration
4002This new-user account cannot use the selected proxy type
4003Insufficient effective balance; top up the account

Business errors may use HTTP 200. A new-user restriction may return JSON even when txt was requested, so handle unexpected response formats as well.

Location values · Getting started · 中文版

Last modified: 2026-09-13