ipinfo/cli

API endpoint for usage

Closed this issue · 3 comments

Hi ipinfo team,

I have yet to find an API endpoint for showing my usage information. I know this can be fetched on the dashboard page. However, I want to check the usage of the API quota programmatically. I note that the /account/home/ data returned on the dashboard is in JSON, but perhaps a little verbose for general usage information.

Would this be a feature on the roadmap, or is there something I am missing?

Thanks!

shrink commented

@bladeswords the /me endpoint might be what you're looking for, i.e:

https://ipinfo.io/me?token=example

Does this work for you?

Via https://github.com/ipinfo/cli/blob/023c10e0a4b21c1f80d611318a9d0ea0fb6a8db7/ipinfo/cmd_quota.go

The CLI provides ipinfo quota for this too, FYI. Uses the same /me endpoint.

@shrink and @UmanShahzad - thank you both very much! I was looking for this everywhere in the ipinfo API documentation and could not find it anywhere.