π§GonzoProxy API Documentation
Client documentation
Status: Production
This documentation combines two API sections:
A. Proxy generation and reference lists: base URL
https://api.gonzoproxy.app/functions/v1/proxy-apiB. Sub-account management: base URL
https://api.gonzoproxy.app/functions/v1
Authentication
All requests to the API (both sections) require an x-api-key header.
x-api-key: <your_api_key>
Content-Type: application/jsonHow to get an API key:
Open your GonzoProxy dashboard.
Go to
Settings β API Keys.Create a new key.
Use it in all API requests.
Do not pass the API key in the URL or as a query parameter. Use the HTTP header only.
Units
All traffic values are sent and returned in bytes.
1 GB
1000000000
5 GB
5000000000
10 GB
10000000000
A. Proxy generation and reference lists
Base URL:
A.1 Generate proxy
Method: POST Path: /generate
Request parameters
Passed in the JSON request body.
Required parameter
country
string
ISO country code (US) or full name (United States)
Optional parameters
state
string
State or region
city
string
City
zip
string
ZIP code
isp
string
Internet service provider name
sd_code
number
Subdivision code
count
number
Number of proxies to generate
rotation
boolean
IP rotation type
ttl
number
Session lifetime
ttl_unit
string
TTL unit of measurement
format
string
Proxy string format in the response
login
string
Custom login
password
string
Custom password
rg_id
string
Additional sticky-session parameter
session_rand
string
Random seed for sticky sessions
Choosing the pool
The pool a proxy is issued from (residential, mobile, datacenter) is set by a request parameter. If that parameter is not sent, /generate still returns a working connection string, but it can belong to a different pool than the one you need: the string connects, and the product behind it is not the one you asked for. Check which pool the returned string belongs to before you move it into production.
About ttl
ttl asks for a session lifetime of up to 7 days (for example ttl=168 with ttl_unit in hours); it does not guarantee one. In our own run on 14 September 2026, 51 of 90 sessions (56.7%, Wilson interval 46.4% to 66.4%) still held the same IP after 84 minutes, and half of the losses happened inside the first 35 minutes. Handle an address change in your code instead of assuming the session survives.
A.2 Reference lists for filters
The API lets you retrieve available countries, regions, cities, ZIP codes, and internet service providers.
A.2.1 List of countries
Method: GET Path: /countries
A.2.2 States / regions
Method: GET Path: /states Required parameter: country
A.2.3 List of cities
Method: GET Path: /cities Required parameter: country Optional parameter: state
A.2.4 ZIP codes
Method: GET Path: /zips Required parameter: country Optional parameters: state, city
Example response:
A.2.5 Internet service providers (ISP)
Method: GET Path: /isps Required parameter: country Optional parameters: state, city
Example requests:
Example response:
B. Sub-account management
Base URL:
B.1 Create a sub-account
Creates a new sub-account linked to your main account.
Once it is created, the system automatically sets up every available product for the sub-account: residential, mobile and server_dynamic.
Parameters
Sent in the JSON request body.
email
string
Yes
Sub-account email
sub_account_name
string
No
Sub-account name
Curl
Response
Response fields
sub_account_name
string | null
Sub-account name
email
string
Sub-account email
status
string
Creation status: provisioning, partial, ready or failed
Statuses
provisioning
The sub-account is being created
partial
Some of the products are already set up
ready
All sub-account products are ready
failed
Creation failed
Important
Sub-account creation is asynchronous. A success: true response means the request was accepted and the sub-account has started to be created.
Once creation is complete, the sub-account becomes available in these methods:
POST /list-sub-accountsPOST /get-sub-account-traffic-statsPOST /sub-account-adjust
Possible errors
400
email_required
Email is missing
400
email_invalid
Email is invalid
400
email_too_long
Email is too long
400
sub_account_name_invalid
Sub-account name is invalid
400
sub_account_name_too_long
Sub-account name is too long
401
missing_x_api_key
API key is missing
403
invalid_or_inactive_api_key
API key is invalid or inactive
409
external_id_exists
A sub-account with this email already exists
409
parent_products_incomplete
The main account does not have all products enabled
429
rate_limited
Sub-account creation limit exceeded
Error example
B.2 List sub-accounts
Returns the sub-accounts linked to your main account.
Request
Curl
Response
Response fields
proxy_login
string | null
Sub-account proxy login
sub_account_name
string | null
Sub-account name
is_active
boolean
Whether the sub-account is active
traffic_remaining
number
Remaining traffic in bytes
traffic_total
number | null
Total traffic limit in bytes
B.3 Sub-account traffic statistics
Returns traffic usage statistics for a specific sub-account.
Parameters
proxy_login
string
Yes
Sub-account proxy login
period
string
No
Statistics period. Defaults to day
date
string
No
Period date, e.g. 2026-05-19, 2026-05, 2026
start_date
string
For custom
Period start date in YYYY-MM-DD format
end_date
string
For custom
Period end date in YYYY-MM-DD format
group_by
string
No
Grouping for custom: day or month
Available period values: day, week, month, year, custom
Curl: daily statistics
Curl: custom period
Response
points[] fields
time
string
Point time in UTC
bytes
number
Traffic used during the interval
traffic_remaining
number | null
Remaining traffic at this point, if available
B.4 Adjust sub-account traffic or status
Changes a sub-account's total traffic balance or active status.
Supported operations: set_traffic, activate, deactivate
B.4.1 Set sub-account traffic
target_traffic_bytes is the sub-account's final traffic balance, not the amount to add.
If a sub-account currently has 1 GB and you want it to have 5 GB, pass 5000000000.
Curl:
B.4.2 Activate sub-account
Curl:
B.4.3 Deactivate sub-account
When deactivated, the sub-account's remaining traffic is returned to the main account.
Curl:
Response (for all sub-account-adjust operations)
Response fields
proxy_login
string | null
Sub-account proxy login
sub_account_name
string | null
Sub-account name
operation
string
Operation performed
target_traffic_bytes
number
Sub-account's final traffic
previous_sub_traffic_bytes
number
Sub-account's traffic before the operation
delta_bytes
number
Difference between the old and new value
parent_traffic_after
number
Main account's remaining traffic after the operation
sub_traffic_after
number
Sub-account's remaining traffic after the operation
is_active
boolean
Final sub-account status
changed
boolean
Whether an actual change occurred
API response codes
General codes (section A)
200
Successful request
400
Request parameter error
401
Missing or empty x-api-key
403
Invalid or disabled API key
404
Invalid request address
429
Rate limit exceeded
500
Internal service error
Error format:
Common errors (section B / sub-accounts)
400
Invalid JSON body
Malformed JSON
400
proxy_login is required
proxy_login not provided
400
operation must be set_traffic, activate, or deactivate
Invalid operation
400
target_traffic_bytes is required
target_traffic_bytes not provided for set_traffic
401
Missing x-api-key header
API key not provided
403
Forbidden
Sub-account does not belong to your account
404
parent_not_found
API key not found
404
sub_account_not_found
Sub-account not found
409
sub_inactive
Cannot change traffic on a disabled sub-account. Run activate first
409
insufficient_parent_traffic
Insufficient traffic on the main account
Last updated