News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Using Call Logs API to get analytics "Answered" count
Tags: rest api
Oct 27, 2020 at 9:08am   •   1 replies  •  1 likes
Josh Sprow

I'm trying to create a dashboard for our company using some KPIs from RingCentral's analytics page. On that page, I'm able to get an "Answered" count and percent for each of the extensions I need to work with.

Good news: when I fetch the call logs using the company call logs endpoint, I'm able to find the target extensions in the call legs with the "Detailed" view.

However, when I compare the counts from the API with those in analytics, there is some variation. Here are the Oct MTD counts for two extensions:

api "Accepted"api totalanalytics "Answered"analytics total

I'm sure some of this is from time zone differences, but would like to confirm that my process for finding the counts is accurate. Here's what I'm doing:

  1. Fetching the company logs with "Detailed" view parameter.
  2. Inserting call legs from those logs into my database, grouping them by call log id
  3. Querying the records with "to.extensionId" equaling my target extensions.
  4. Using the count of those records as the total and the number with result = "Accepted" as the number "Answered".


1 Answer
answered on Nov 11, 2020 at 7:42am  

did you make any progress on this?

on Nov 11, 2020 at 7:48am   •  0 likes

I ended up sticking with the steps at the end of my question.

The counts are still a little off and the solution is pretty far from elegant, but what're you gonna do?

A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us