Easy way to check allowance usage

Is there a simple call that can be made to return monthly allowance and amount used ?

Yes, we offer a /me endpoint that accepts a token and will return your permissions (“features”) and usage (“requests”).

https://ipinfo.io/me?token=example
{
  "token": "example",
  "requests": {
    "day": 100,
    "month": 200,
    "limit": 50000,
    "remaining": 47000
  },
  "features": {
    "core": {
      "daily": 2147483647,
      "monthly": 50000
    },
    "hostio": {
      "daily": 2147483647,
      "monthly": 1000,
      "result_limit": 5
    }
  }
}

When the daily number is greater than the monthly number it means that the token has permission to use the full monthly allowance of requests in a single day (or even, a single minute!). The 2147483647 number is the largest number that fits into an integer so we use it by default to represent no daily limit.

1 Like

Great - thanks for the prompt reply. Most impressed!

2 Likes