Per Proxy Mobile Proxies
To retrieve the "username" field 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 Proxy 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_proxy"
headers = {
"Authorization": "Bearer <API_TOKEN>"
}
response = requests.get(url, headers=headers)
data = response.json()
# Response structure:
# {
# "data": [
# {
# "meta_data": {
# "username": "your-username"
# }
# }
# ]
# }
print(data)Last updated