Getting the number of API calls running through the webservers

I am looking to get the number of API calls that are going through the webservers.
I found on How to know API's contribution to total traffic on my web servers - #6 by RyanVeitch an interesting query

SELECT sum(externalCallCount) FROM Transaction

but that gives the volume. I am looking for the number of API requests and responses. Any idea how this can be done?

Hi @erikp1 - It sounds like you are looking for the total requests and total responses individually. Is that correct? I am not sure this data is available but someone from the APM agent space might know this.