Twilio allows you to collect all kinds of interesting data about your phone calls and SMS messages. But how can you get useful information out of that raw data?
Twilio's Analytics pages
Twilio's web interface has built in graphs which can be found on the SMS and Voice dashboards in your Console. The charts on these pages are updated relatively frequently, which means that they are a good way to get a general idea for the recent activity of your application.
Building your own
Every application has its own particular style. If displaying charts that match your aesthetic are important to you, you are probably going to need to build your own metrics system.
For aggregate information about your usage, Twilio supplies a very flexible Usage API.
While the Usage API should be able to supply the necessary data for most use cases, it is not yet able to provide usage by phone number. If you need to display your data in this way, we highly suggest that you keep a duplicate copy of your call and message data in your own database rather than accessing it through Twilio's API for every request. While our API is pretty speedy, it's going to seem really, really slow if you are trying to both download the necessary data and render charts or produce totals in realtime.
There are many open source and commercial charting libraries to pick from, and new, better ones are always coming out. Generally, a search for the term "charting library" is a good way to begin your search.
Export your data and work your spreadsheet magic!
Exporting your data lets you slice the data however you want. We have a comprehensive article about how to export your call and SMS log data from Twilio using the REST API.
I need data, and none of these options work for me!
Please contact us if none of the above options is providing the data you need. We're happy to help you find a way to get it.