Masquerade as a sub-user

Masquerade as a user

Add the X-Subuser header to your API calls to retrieve data as that particular sub-user.

URL parameters

Subuser IDint

The ID of the subuser you wish to masquerade as

Request & Response

Add X-Subuser to any of the following APIs Proxy Configuration, Proxy List and Proxy Stats
import requests
response = requests.get("", headers={
    "Authorization": "Token ",
    "X-Subuser": "<User ID>"

The commands above return JSON structured like this:

  "id": 1,
  "state": "completed",
  "countries": {"US":5, "FR":100},
  "available_countries": {"US": 95},
  "unallocated_countries": {},
  "ip_ranges_24": {"": 5, "": 100},
  "ip_ranges_16": {"": 105},
  "ip_ranges_8": {"": 105},
  "available_ip_ranges_24": {"": 100},
  "available_ip_ranges_16": {"": 100},
  "available_ip_ranges_8": {"": 100},
  "username": "username",
  "password": "password",
  "request_timeout": 86400,
  "request_idle_timeout": 900,
  "ip_authorization_country_codes": ["US", "FR"],
  "auto_replace_invalid_proxies": true,
  "auto_replace_low_country_confidence_proxies": false,
  "proxy_list_download_token": "aa87abbc...zz",
  "created_at": "2022-06-14T11:58:10.246406-07:00",
  "updated_at": "2022-06-14T11:58:10.246406-07:00"