Retrieve "Postman API Usage" from /me API endpoint

I am trying to retrieve the “Postman API Usage” information from the /me API endpoint for my account, but it does not include it in the response.

When I access the URL Postman, I can see my Postman API Usage and when it will be reset (once per month). I tried to figure out this information via the Postman API, but it includes some other properties, not the ones that I am looking for.

Is there another endpoint in the Postman API that I can request/query this information?
Is there any plan to include this field in the currently mentioned endpoint?

Hi @guistracini. Welcome to the Postman Community!

This is currently not possible on the Postman API. What’s your usecase for this feature?

I have a dashboard that shows the state of my services and other stuff that I use. I also use Postman CLI to run some tests in CI pipelines (using GitHub Actions). So, the first reason would be to track the usage in my dashboard without needing to access the Postman Billing page.

Usually, I ran out of calls to Postman before the date it resets (in my case, the 12th of each month). I need to switch off the test steps in GH workflows and switch them back again after they reset.

If I have this information in the API response (like how many requests I still have or if it was exhausted), I can decide in runtime whether or not to run the tests without a human/user/manual intervention like I do right now.

I use a temporary Selenium solution that accesses the billing page and extracts the information. This is not the best solution and can break anytime since the interface or URLs can change.

I can’t see any technical reason API does not include this property. Maybe it is a commercial/business reason?

1 Like

Hi @guistracini.

Thank you for your response. I will recommend that you create a feature request here to get this issue on our backlog radar.

1 Like

Done, created an issue!

Just for the record: Add API usage property in the API response for the endpoint /me · Issue #13071 · postmanlabs/postman-app-support · GitHub

Thanks @guistracini - I’ve also spoken to the team to see if anything has changed here as I believe that we previous displayed the Postman API usage on the /me endpoint.

2 Likes

The endpoint now includes the property api_usage, which solves this issue.
Thank you all!

image

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.