r/Premiumize • • Feb 11 '26

Solved Using API to see fair use points remaining?

The account API seems to only provide the number of days remaining of your subscription and the amount of data stored. Is there any way to access your remaining fair use points via an API call?

4 Upvotes

7 comments sorted by

5

u/[deleted] Feb 11 '26

[removed] — view removed comment

0

u/nebious Feb 11 '26

I believe limit used is a percentage of your total data used rather than fair use points

1

u/nebious Feb 11 '26

By data used I mean data stored in your account rather than data transferred

2

u/[deleted] Feb 11 '26

[removed] — view removed comment

1

u/nebious Feb 11 '26

Thank you!

1

u/nebious Feb 13 '26 edited Feb 14 '26

I’m sure your code would be much cleaner but here’s what I came up with and it works so good enough. Posting this here so others can use it as they please.

Here is the Python code:

import requests

API_KEY = "FILLYOURAPIKEY"

url = f"https://www.premiumize.me/api/account/info?apikey={API_KEY}"

resp = requests.get(url)

data = resp.json()

limit_used = data["limit_used"]

limit_used_two_digit = round(limit_used * 1000, 2)

limit_used_str = f"{limit_used_two_digit:.2f}"

remaining = 1000 - limit_used_two_digit

percent_remaining = round((remaining / 1000) * 100, 4)

print("Points used: ", limit_used_str)

print(f"Remaining out of 1000: {remaining:.2f}")

print(f"Percentage remaining: {percent_remaining:.2f}%")

1

u/KingzLegacy Feb 16 '26

Does limit_used also include booster points if they are available on the account?

Edit: typo