import requestsresp = requests.get( "https://flameproxies.com/api/customer/non-api-packages/usage", headers={"Authorization": "Bearer fp_live_xxx"},)for pkg in resp.json()["packages"]: if pkg["usage"]["percent_used"] > 90: print(f"Package {pkg['id']} is almost out of bandwidth")
const resp = await fetch("https://flameproxies.com/api/customer/non-api-packages/usage", { headers: { Authorization: "Bearer fp_live_xxx" },});const { packages } = await resp.json();for (const pkg of packages) { if (pkg.usage.percent_used > 90) console.log(`Package ${pkg.id} is almost out of bandwidth`);}
import requestsresp = requests.get( "https://flameproxies.com/api/customer/non-api-packages/usage", headers={"Authorization": "Bearer fp_live_xxx"},)for pkg in resp.json()["packages"]: if pkg["usage"]["percent_used"] > 90: print(f"Package {pkg['id']} is almost out of bandwidth")
const resp = await fetch("https://flameproxies.com/api/customer/non-api-packages/usage", { headers: { Authorization: "Bearer fp_live_xxx" },});const { packages } = await resp.json();for (const pkg of packages) { if (pkg.usage.percent_used > 90) console.log(`Package ${pkg.id} is almost out of bandwidth`);}
Returns your regular residential and premium residential packages with live usage attached. Packages created through the Customer API are excluded.Use it to monitor bandwidth across all your regular packages in one call — for example, to alert when a package drops below a threshold.This endpoint takes no request body.
import requestsresp = requests.get( "https://flameproxies.com/api/customer/non-api-packages/usage", headers={"Authorization": "Bearer fp_live_xxx"},)for pkg in resp.json()["packages"]: if pkg["usage"]["percent_used"] > 90: print(f"Package {pkg['id']} is almost out of bandwidth")
const resp = await fetch("https://flameproxies.com/api/customer/non-api-packages/usage", { headers: { Authorization: "Bearer fp_live_xxx" },});const { packages } = await resp.json();for (const pkg of packages) { if (pkg.usage.percent_used > 90) console.log(`Package ${pkg.id} is almost out of bandwidth`);}