You referring to the number of API Invocations by some metric, called 'userName' ?
If so, this would be best done by generating a log for each API invocation ( traffic logger ), which also captures this metric 'userName'. Then some 3rd party analytics tool ( splunk,elk,custom) can parse this and produce the analytics you're looking for