CHAPTER 32. EXTENDING ANALYTICS
This article shows how to create scripts that extend the current capabilities of the built-in Red Hat
3scale API Management analytics.
By using the Account Management and Analytics API on Enterprise accounts only, you can create scripts
that get the custom information that you need in the format that you prefer. This article describes a
particular use case, but the same approach can be used to get whatever data you need out of 3scale.
32.1. REASONS FOR CUSTOMIZED SCRIPTS
3scale continuously improves the features available on your API Dashboard. However, you may be
ahead of our development plans and have a very specific need that is not yet supported.
To satisfy the needs for API management, 3scale always gives you the tools to access all your data.
However, customized scripts have some costs – it takes some resources to write the scripts – but the
cost is not too high, as we will show in this article. More importantly, DIY gives you total flexibility and
control to implement any use case you can think of.
32.2. A REAL-WORLD EXAMPLE
Recently a customer came to us with a very specific need that could not be solved with 3scale in a
streamlined way.
They were onboarding thousands of new developers per week. They were able to survive such success
thanks to the 3scale API Management Platform. Onboarding so many developers would be a daunting
task – luckily 3scale provides automates necessities such as key provisioning, sign-up workflows, and
email communication. So far so good.
There was, however, something that was not possible to do with 3scale, which was quite important for
them. Since they are onboarding so many people, they needed a straight-forward way to classify the new
developers based on their engagement with their API so that their operations and marketing teams
could interact with the new developers more effectively.
Such a feature, at least at the required level of detail, is not yet available in 3scale built-in analytics tools.
However since all the data is already available, it can be extracted using the 3scale Account and
Analytics API.
32.3. EXAMPLE: CUSTOMER REQUIREMENTS
They would like to know how many new developers have signed up for the free evaluation plan in the last
10 days, split up different ways.
First, they wanted to know how many developers signed up but did not use their API. What they wanted
to do with this information is out of scope for this article, but it is clearly valuable information that would
help adoption of your API.
Second, they wanted to split the developers that had used their API into two groups:
Developers that used it for a period of time – say the first half of the 10 days – and then stopped
using the API. These developers tried it out, but became inactive.
Developers that have been using the API consistently. For those, who would like to know the
percentage growth or decline.