際際滷

際際滷Share a Scribd company logo
The
WHO, WHAT, WHERE, WHEN, WHY,
   HOW* of Building APIs
          (* not in that order)
       Javaun Moradi, NPR
            @javaun
(This slide isnt a W or H)
   NPR Open API launched in 2008
   Try it: http://dev.npr.org or Codecademy.com
   Powers all of NPRs mobile, web, cars apps
   100+ stations retrieve content & add their
    own
(Last background slide for a while)
NPRs APIs
 Stories
 Stations
 Schedules
 Streams
 Library data
 Transcripts
WHY are APIs so sexy?
APIs are about the opportunities
         you dont miss.
WHY do we love APIs?
   Keep pace with your product needs
   Innovate quickly
   Reuse, dont reinvent
   Serendipity
WHEN is it time to get an API?
   Mobile aspirations?
   Data/services useful in more than one place?
   Departments need to share/collaborate?
   Decouple your systems?
   Be more nimble?
   Share your service (free or for profit)?
WHAT do you build?
Smart small
(you can add more later)
Build for actual user problems
  (Dont liberate data unless thats your mission)
Intuitive and self-documenting
         (developers hate to read)
Drink your own
  (be your first customer)
Build something imperfect.
        (Be ok with that.)
WHAT should you measure?
   Speed, for starters
   Usage is great for management
   Do you monetize your API?
   Numbers dont tell you value
   Do you measure other tools?
WHO do you want to be?
    (Big IT vs. Leading the business)
WHO do you build it for?
The Who, What, Where, When, Why, and How of APIs
WHERE should your API live?
   Data.gov                       One size
     Sunlight Labs                                               AP
      World Bank


                   Open NPR API         NPR API we use



      public                                                       private
                   Twilio

                     Google




                                     Custom                        Netflix
HOW: DIY vs. Vendor
HOW do you support it?
The Who, What, Where, When, Why, and How of APIs
Now what?
 (Hang on tight)

More Related Content

The Who, What, Where, When, Why, and How of APIs

Editor's Notes

  1. The reality is that NPR, stations, and partners were almost all of the usage.
  2. This is not an authoritative depiction of where these APIs live, its an exercise I used to think about where our APIs should live and how much resources/time should go into each area.
  3. The space is really nascent. We dont know where its going to go. It is critical to our business and we want to be in full control of our roadmap. Its our core technology, were invested.