0

Alchemy API's transaction usage is returned under a response body property called usage. Alchemy API is being put to bed in favour of Watson NLU and its friends. While porting code from using Alchemy to Watson I noticed I do not see usage being returned in responses from Watson. Am I missing something or does anyone know how to count Watson transaction usage?

I've searched pretty hard in their docs and online but there doesn't seem to be any mention of this. I've also watched responses received by their Node SDK here and could see no trace of usage in the response body or headers. Any pointers much appreciated.

1 Answers1

0

It's not currently possible in the API. For more detail, I previously answered this question here: How can I get number of API transactions used by Watson NLU?

The short answer is that you'll need to calculate this yourself and then verify it on the Bluemix usage dashboard.

Community
  • 1
  • 1
tmarkiewicz
  • 515
  • 5
  • 12
  • Update: I ended up writing something to fetch usage. Not optimal but works for me for a few projects I work on: https://github.com/coderigo/watson-nlu-usage –  May 24 '17 at 02:18