kpis for apis (and how api calls are the new web hits, and you may be measuring all wrong)

73
KPIs for APIs or, why API Calls are the new Web Hits and you may be measuring all wrong John Musser / @johnmusser / API Science / apiscience.com Business of APIs Conference, NYC, 2014

Upload: jmusser

Post on 28-Nov-2014

4.661 views

Category:

Internet


0 download

DESCRIPTION

How do you measure API success? What KPIs do APIs need? What mistakes should I avoid? Find out what you should, and shouldn't, be measuring as part of your API program in this Business of APIs Conference NYC talk. Dive into a breadth of API metrics, the 6 keys to better API metrics, and the traps to beware of (the important do's and don'ts). Also real-world API case studies show who measures what.

TRANSCRIPT

Page 1: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

KPIs for APIs

or, why API Calls are the new Web Hits

and you may be measuring all wrong

John  Musser  /  @johnmusser  /  API  Science  /  apiscience.com  Business  of  APIs  Conference,  NYC,  2014  

Page 2: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

1995

Why do we need a Web site?

2000 2005 2010

Of course we have a Web site

Of course we have an API

Why do we need an API?

Page 3: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

1995

Why do we need a Web site?

2000 2005 2010

Of course we have a Web site

Of course we have an API

Why do we need an API?

You are here

Page 4: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Remember hit counters?

Page 5: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Hits   Page  Views   Visitors   Conversions  

Evolution of web site metrics

Page 6: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Calls   ?   ?   ?  

Evolution of API metrics?

Page 7: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Great APIs get measured

Page 8: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

But measure what?

Page 9: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Well, it depends…

Page 10: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Why do you have an API?

Page 11: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Extend product

BizDev / LeadGen Marketing channel

Upsell opportunity

Content acquisition

Device and mobile support

API as Product Distribution channel

Increase stickiness

New line of business

Accelerate internal projects

Drive innovation

User acquisition

Partner opportunities Drive traffic

Increase footprint

Page 12: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Who is your API for?

Page 13: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

API consumer continuum

You Your partners & customers

Everyone else

Internal Open Private

Page 14: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

The answers to who & why

should drive your KPIs

Page 15: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

The answers to who & why

should drive your KPIs

Page 16: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Traffic Total calls

Top methods Call chains Quota faults

Developers Total developers

Active developers Top developers Trending apps

Retention

Service Performance Availability Error rates

Code defects

Marketing Dev registrations Dev portal funnel Traffic sources Event metrics

Support Support tickets Response times

Business Direct revenue

Indirect revenue Market share

Costs

Many ways to think about API KPIs…

Page 17: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Customer Satisfaction

NPS Churn

Community Forum activity Social media

(both for API and apps built on it)

Quality Defects

Error prone APIs Repair rate

API Maturity Stability

Maturity metric Change rate

Innovation Number of products

Number of apps Speed to market

More ways to think about API KPIs…

Channel Call volume: Mobile,

web, others Revenue by channel

Page 18: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

There are a lot of API KPIs

you could measure

Page 19: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Don’t drown in API KPIs

Page 20: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Great APIs prioritize

what to measure

KPI SECRET #1

Page 21: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Choose your “KPI lens” CFO lens CMO lens CEO lens Ops lens

QA lens CRO lens PM lens PR lens

Page 22: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

CFO lens: financial metrics Total direct and indirect revenue

Margin ROI

Marginal cost Capex / Opex investment

CLTV per developer

Page 23: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

DevOps lens: operational metrics Performance Availability Error rates

Faults by API type Defect backlog

API traffic trends

Page 24: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

CMO lens: marketing metrics Developer acquisition cost Developer demographics

Portal visitor count & traffic sources SEO / SEM metrics

Social media metrics Evangelism and event metrics

Page 25: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Know your Developer Funnel

KPI SECRET #2

Page 26: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Know your Developer Funnel

KPI SECRET #2

(for public APIs)

Page 27: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Web sites have funnels

Acquisi9on  

Ac9va9on  

Referral  

Revenue  

Reten9on  

How  do  users  find  you?  

Does  the  user  have  a  good  first  experience?  

Do  users  return?  

How  do  you  make  money?  

Do  users  tell  others?  

Dave McClure’s “Startup Metrics for Pirates”

Page 28: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

APIs have funnels too

Acquisi9on  

Ac9va9on  

Referral  

Revenue  

Reten9on  

How  do  developers  find  you?  

Does  the  developer  have  a  good  first  experience?  

Do  developers  return?  

How  do  you  and  developers  make  money?  

Do  developers  tell  others?  

Page 29: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Potential KPIs

Acquisi9on  

Ac9va9on  

Referral  

Revenue  

Reten9on  

Dev  portal  site:  sources,  traffic  vol,  uniques  

#  dev  registraCons,  API  keys  issued  

#  acCve  devs,  API  call  volume  by  dev,  #  apps  

$  per  dev,  $  per  app,  #  end  users  

#  dev  referrals,  dev/app  growth,  NPS  

Page 30: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Measure your API ecosystem

KPI SECRET #3

Page 31: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Apps Developers App Users

API  1  

API    2  

API  3  

Your APIs You

Page 32: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Apps Developers App Users

API  1  

API    2  

API  3  

Your APIs You

Total app users Revenue per user User growth rate

User churn

Page 33: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Apps Developers App Users

API  1  

API    2  

API  3  

Your APIs You

Total apps Trending apps

Revenue per app Channel: mobile/web

Page 34: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Apps Developers App Users

API  1  

API    2  

API  3  

Your APIs You

Total developers Active developers

Revenue per developer Top developers

Stuck developers

Page 35: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Apps Developers App Users

API  1  

API    2  

API  3  

Your APIs You

Total API calls Top API calls

Top API packages Internal usage

Page 36: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Apps Developers App Users

API  1  

API    2  

API  3  

Your APIs You

Total revenue Partnerships Market share

Innovation

Page 37: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Most APIs obey the

Power Law

KPI SECRET #4

Page 38: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

The Power Law of APIs

Developers

API c

all vo

lume

Page 39: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

The Power Law of APIs Most of your API traffic, revenue, success, etc….

Developers

API c

all vo

lume

Page 40: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Think quality, not just quantity Use your API KPIs, to find who, how, where, when.

Developers

API c

all vo

lume

Page 41: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

API KPIs need buy-in

KPI SECRET #5

Page 42: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Don’t let API KPIs live in a vacuum

Who are your stakeholders?

Who’s your sponsor?

Get executive buy-in on your top 3-5 KPIs

Page 43: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Measuring internal API usage often just

as important as external

KPI SECRET #6

Page 44: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

API usage from internal apps

External usage

Guardian: 70% internal calls

Page 45: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Evernote: 99% internal calls

API usage from internal apps

External usage

Page 46: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

API usage from devices

External usage

Netflix: 99.9% internal calls

Page 47: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Netflix: 99.9% internal calls

Why Enable Netflix experience

Who Netflix device and UI teams

Page 48: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Beware of API vanity metrics

KPI WARNING #1

Page 49: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

API Billionaire Club

5 billion API calls / day (April 2010)

1 billion API calls / day (Q1 2012)

5 billion API calls / day (October 2009)

13 billion API calls / day (May 2011)

1 billion API calls / day (January 2012)

1.1 billion API calls / day (April 2011)

1 billion API calls / day (May 2012)

Page 50: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

5 Billion API calls/day

Page 51: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

“What if, all things being equal, instead of 30 billion API calls a month,

we served 5 billion?” Daniel Jacobson, Netflix

Page 52: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Beware of API KPI traps

KPI WARNING #2

Page 53: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Not having a metrics process (have a metrics plan & a feedback loop)

Using the wrong metrics (don’t be afraid to change what you track)

Unrealistic expectations (“Absolutely, we’ll have X developers on-board by X date”)

3 common API KPI traps

Page 54: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

One important metric you may have missed...

Page 55: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

What’s your TTFHW? Time To First “Hello World” aka: how long from zero to 60?

Page 56: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

What’s your TTFHW? Developer experience (DX) can make or break your API.

Page 57: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

What’s your TTFHW? Too subjective to measure?

Page 58: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

What’s your TTFHW? Don’t forget about qualitative metrics

Page 59: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

What’s your TTFHW? User testing.

Surveys. Forums.

Social media…

Page 60: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Real world API KPIs

Page 61: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

“We are seeing a trend where a person who uses another app with Evernote is

50% more likely to move on to our premium (paid) service”

KPI: Conversions

Page 62: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

“Apps that have an API integration with Evernote are seeing much more usage:

Pocket readers normally read 15% of what they save, but Evernote users read 80% of

what they save in Pocket.”

KPI: Engagement

Page 63: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

API now accounts for 20-25%

of the charity’s annual revenue

KPI: Revenue

Page 64: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)
Page 65: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

KPI: Photo Edits

Page 66: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

KPI: Apps

3,500 Apps Aviary,  March,  2013  

Page 67: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Goal: “more eyeballs on our content”

API calls (requests) Response volume (ex: # stories) Impressions (via image beacon) Loyalty

MoreKPIs

KPI: Impressions

Page 68: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

“We sell Vodka. But people buy drinks.”

Goal: “ensure top quality drinks consistently delivered to people

regardless of where people encounter Absolut”

KPI: Recipe delivery

Page 69: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

“We sell Vodka. But people buy drinks.”

Goal: “ensure top quality drinks consistently delivered to people

regardless of where people encounter where people encounter

Absolut”

KPI: Recipe delivery APIs let you be where your customers are.

Measure how.

Page 70: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Calls   ?   ?   ?  

Evolution of API metrics?

Page 71: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Who & why drives KPIs Have a KPI lens & process

Prioritize & repeat

Page 72: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Thank You

[email protected]  @johnmusser  

 

Page 73: KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuring all wrong)

Race  car:  hCp://www.flickr.com/photos/lim_lik_wei/3270522646/  Stopwatch:  hCp://www.flickr.com/photos/purplemaMish/3020016417/  Stop  sign:  hCps://www.flickr.com/photos/9toperez/5791194358  Power  law:  hCp://en.wikipedia.org/wiki/Power_law            

Photo Credits