Mobile - perGB API
Browse the REST API reference for Per GB Mobile Proxies, including user info, settings, whitelisting, and access points.
To retrieve the "username"/"super_user" fields from the response data, you can access the nested JSON structure. Here's how you can do it for both Python and JavaScript:
Both snippets assume there is at least one entry in the "data" array, indicating an active Per GB subscription. Ensure proper error handling for scenarios such as empty arrays or missing fields.
import requests
url = "https://api.proxidize.com/api/v1/subscription?type=per_gb"
headers = {
"Authorization": "Bearer <API_TOKEN>"
}
response = requests.get(url, headers=headers)
data = response.json()
# Response structure:
# {
# "data": [
# {
# "meta_data": {
# "username": "your-username"
# }
# }
# ]
# }
print(data)To retrieve the "username"/"super_user" fields from the response data, you can access the nested JSON structure. Here's how you can do it for both Python and JavaScript:
Both snippets assume there is at least one entry in the "data" array, indicating an active Per GB subscription. Ensure proper error handling for scenarios such as empty arrays or missing fields.
Last updated
Was this helpful?