Api: API Usage metrics?

Created on 30 Aug 2019  Â·  7Comments  Â·  Source: Bungie-net/api

Are there any per-API key usage metrics out there that are accessible to end users? I assume Bungie is tracking that stuff to ensure abuse doesn't occur, but is any of it public?

bug bug filed

Most helpful comment

TFS 826232

All 7 comments

Note that, as an API key holder, I would really appreciate _not_ having my key's statistics shared with _others_. If Bungie grants me access to my own statistics, that’s fine, but the last thing we need is “which is better” leaderboards for third-party clients.

On Aug 30, 2019, at 10:42, jason c. kay notifications@github.com wrote:

Are there any per-API key usage metrics out there that are accessible to end users? I assume Bungie is tracking that stuff to ensure abuse doesn't occur, but is any of it public?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/Bungie-net/api/issues/1019?email_source=notifications&email_token=AAAWUDGRX2BJKHWW2COXHXTQHFLY3A5CNFSM4ISPVH62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HIQFOOQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAWUDGJJUB3X56RZYFIN4LQHFLY3ANCNFSM4ISPVH6Q.

Check out /App/ApiUsage/{applicationId}/. This will let you view usage for all platform API calls for apps owned by the authenticated user.

Note: The applicationId is not the API key, but rather the integer that identifies your app (you can see it on the URL when looking at your app in the portal.

Thank you, @Tetron-bng! I assume you mean the integer string at the end of the URL: https://www.bungie.net/en/Application/Detail/ ####. (Especially as seeing that's the only AppId I can even get authorisation to view…) However, when I poll that endpoint, I get:

{
"range": {
"start": "2019-08-29T19:15:00Z",
"end": "2019-08-30T19:15:00Z"
},
"apiCalls": [ ],
"throttledRequests": [ ]
}

Shouldn't there be data here?

( EDIT: After having other developers pull theirs, too, they also got the same return. )

Ah, I'm actually glad this came up! This is a recently introduced bug in the API: we've stopped successfully returning apiCalls and throttledRequests. I'll file a bug shortly.

TFS 826232

Hopefully just a configuration issue?

Yes, some things got rearranged internally in terms of where this data is stored, and it looks like the external endpoint was missed in the change!

Was this page helpful?
0 / 5 - 0 ratings