Your SlideShare is downloading. ×
  • Like
NPR API: Create Once Publish Everywhere
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

NPR API: Create Once Publish Everywhere

  • 35,402 views
Published

From SXSW. NPR's API: Create Once Publish Everywhere. Discover how and why NPR's API works.

From SXSW. NPR's API: Create Once Publish Everywhere. Discover how and why NPR's API works.

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • What is the cropping tool on slides 54-56?

    Thanks!
    Are you sure you want to
    Your message goes here
  • The audio for this presentation is available at http://schedule.sxsw.com/2011/events/event_IAP7331
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
35,402
On SlideShare
0
From Embeds
0
Number of Embeds
117

Actions

Shares
Downloads
353
Comments
2
Likes
66

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • Android 120K Apple 250K RIM 7K Get Jar 68K Handango 190K PocketGear 140K

Transcript

  • 1. NPR’s API: Create Once Publish Everywhere
    • Zach Brand @zbrand
    • Sr. Director Technology & Strategy
    • NPR, Digital Media
    • #nprapi
  • 2. “ From NPR News in Washington..” –Jack Speer et al
  • 3. “ From NPR News in Washington..” –Jack Speer et al X 35M / Week X 784
  • 4. NPR Digital Media
  • 5. Today
    • Why You Should Care About COPE
    • Our Digital Media History & Philosophy
    • How COPE works
    • Ten lessons we’ve learned
    • … including what we did wrong
    • What’s New and Coming Soon in the NPR API
  • 6. But First, Some Definitions…
    • API: Application Programming Interface
    • COPE (Create Once Publish Everywhere)
    • Flexible Content
    • CrossMedia
    • TransMedia
  • 7. So Why Should YOU Care about Flexible Content? Three Reasons…
  • 8. 1) It’s Worked Well For Us… NPR News iPhone app NPR News Android app Relaunched NPR mobile site NPR iPad app NPR Music iPhone app API launched in 2008 NPR Music Remix NPR Blogs Made API Friendly Facebook Integration Player 2.0 Homepage Improvements Story Page Improvements
  • 9. #2) Getting Found is Getting Harder.. 0 - 50 > 1,000,000,000 > 800,000
  • 10. #3) …and Everybody Else Is Doing It. … and Thousands More
  • 11. Our Principles…
    • Don’t Attempt to Build the ‘One System’
    • COPE (Create Once Publish Everywhere)
      • COPE drives all other architectural decisions
      • Realized at NPR with the NPR News API
    • Content Management Tools & Presentation Layers
    • Understand Your Atom
      • Story is the Atom for NPR
      • Stories contain ‘Assets’ (ie. text, audio, video, images, etc.)
      • Stories belong to ‘Lists’
    • It is better to be incomplete than inaccurate
  • 12. Good Tools Good People … Flexible Content
  • 13.
    • 1997
    • (No CMS)
  • 14.  
  • 15.
    • 2003
    • (CMS)
  • 16.  
  • 17.
    • 2005
    • (CMS)
  • 18.  
  • 19.
    • 2008
    • (API)
  • 20. NPR’s Target Audiences for the API
    • Ourselves
      • Supports the entire infrastructure of our new site
      • Improvements to CMS to enable custom feeds by Editorial and Design
    • Stations
      • Enables us to serve content to our member stations more easily
      • Enables our stations to serve their communities better
    • Partners
      • Creates new opportunities because - easy to implement with very little integration cost
      • Makes existing opportunities easier to maintain and grow
    • Public
      • Engages the community – part of NPR’s Public Service Mission
      • Lots of great widgets, tools, sites built using the API
    Launch Expectations: Improve development efficiencies for NPR.org Some sophisticated stations will use the API Partner integration will be easier The public will do amazing things with the API
  • 21. The Life of a (FLEXIBLE) Story at NPR 1 2 3 4 CMS API Presentation Layers
  • 22. 1: NPR CMS
  • 23. 2: NPR API
  • 24. 3: API  Presentation Layers (or other Apps)
  • 25. 4: Examples of Presentation Layers
  • 26. iPhone App Android App Mobile Site
  • 27. NPR.org Audio Player
  • 28. Google Chrome Extension
  • 29. The Life of a (FLEXIBLE) Story at NPR 1 2 3 4 CMS API Presentation Layers
  • 30. System Architecture Supporting COPE (2008)
  • 31. System Architecture Supporting COPE
  • 32. System Architecture Supporting COPE Java JSP Struts
  • 33. System Architecture Supporting COPE R / W MySQL
  • 34. System Architecture Supporting COPE R / O MySQL Cluster NoSQL-like XML Repository
  • 35. System Architecture Supporting COPE PHP5 SimpleXML PHP5
  • 36.  
  • 37. WBUR.org
  • 38. Connecticut Public Broadcasting Photos Courtesy Derik Elis, CBTV NPR API CPTV’s Drupal Based CMS Website
  • 39. So What did We Learn….
  • 40. #1 Flexible Content is Design Agnostic Home Page Design Pre-API Launch Home Page Design Post-API Launch
  • 41. And Good Design Requires Flexibility Too…
    • You Still Have to Make the Presentation Compelling
  • 42. “ From Washington DC… this is NPR”
  • 43.  
  • 44.  
  • 45. #2 Content & Technology Are Inextricably Linked Good Tools Good People … Flexible Content
  • 46.  
  • 47.  
  • 48.  
  • 49.  
  • 50. A thousand words of COPE
  • 51.  
  • 52.  
  • 53.  
  • 54.  
  • 55.  
  • 56.  
  • 57. #3 Team structure based on Tech/Content link
  • 58. #3 Team structure should recognize Tech/Content link Good Tools Good People … Flexible Content
  • 59.  
  • 60. “ I had to actually purchase a book to learn the API and write the client.” Shawn Fanning of Napster Fame on MS API #4 …. Its an investment
  • 61. #4 Its an investment … Figuring it out… US Election Related Traffic Bumps
  • 62. … Not Magic, but Does Allow Cool Things
  • 63. HTML5 Version of NPR.org (npr.org/tablet)
  • 64. #5 It Does Drive the Business Forward Launch Expectations: Improvements to development efficiencies for NPR.org Some sophisticated stations will use the API Partner integration will be easier The public will do amazing things with the API Actual Results: NPR dramatically improved development efficiencies NPR’s mobile strategy took off Some sophisticated stations have used the API Partner integration has been easier API has facilitated business development opportunities The public has done some interesting things
  • 65. NPR Addict iPhone App
  • 66. #5 It Does Drive the Business Forward Launch Expectations: Improvements to development efficiencies for NPR.org Some sophisticated stations will use the API Partner integration will be easier The public will do amazing things with the API Actual Results: NPR dramatically improved development efficiencies NPR’s mobile strategy took off Some sophisticated stations have used the API Partner integration has been easier API has facilitated business development opportunities The public has done some interesting things Actual Results: NPR dramatically improved development efficiencies NPR’s mobile strategy took off Some sophisticated stations have used the API Partner integration has been easier API has facilitated business development opportunities The public has done some interesting things We’ve been able to do amazing things with the public
  • 67. Paid Dev Public Dev $$$
  • 68. #5 It Does Drive the Business Forward Feb 2011: Over 2 Billion Stories Served by API
  • 69. #7 People are interested in Examples more than Documentation
  • 70. #8 You will eat your own dog food
  • 71. #9 Our Architecture (2008) Struggled with Change
  • 72. The New Architecture of COPE
  • 73. The New Architecture of COPE
  • 74. The New Architecture of COPE
  • 75. The New Architecture of COPE
  • 76. The New Architecture of COPE
  • 77. The New Architecture of COPE
  • 78. The New Architecture of COPE
  • 79. Results of New Architecture
      • Response time is 22% faster (0.45 -> 0.35s)
      • Eliminated many (slightly) inaccurate returns
      • Faster Development on the API
      • Cleaner Separation of Output formats
      • No more use of Xpath Queries
      • Easier Ramp up for New Developers
  • 80. #10 There are Lots of Lame Excuses Why Not
    • People Can Steal Your Content
    • Leadership Doesn’t understand what an API is / Benefits
    • It Building an API Doesn’t Result in new Product for your Customers
    • You’ll have to Replace CMS
    • You Don’t Have the Time/Money/Resources
    • Your Data is Structured for it Today
    • The Benefit is intangible
    • It’s Too Risky
    • Requires Too Much Investment
    • Too Many Other Priorities
  • 81. What’s New and What’s Coming
    • Collections
    <collection> <title> New Mix: Bright Eyese, G-Side, And More</title> <member id=&quot;132652688&quot;> <image refId=&quot;132652709&quot; crop=&quot;square&quot; num=&quot;1&quot;/> <title num=&quot;2&quot;><![CDATA[Nat Geo]]</title> <audio refId=&quot;132652704&quot; num=&quot;3&quot;/> <song refId=&quot;132649319&quot; num=&quot;4&quot;/> <memberText num=&quot;5&quot;><![CDATA [<p><em><strong>Advisory: </strong> This song contains explicit language not suitable for all audiences.</em></p>]] </memberText> <link refId=&quot;132652740&quot; num=&quot;6&quot;/> </member>
  • 82. What’s New and What’s Coming
    • Collections
    • Image Crops
    <image id=&quot;133849355&quot; type=&quot;primary&quot; width=&quot;200&quot; src=&quot;http://media.npr.org/img/a.jpg&quot; hasBorder=&quot;false&quot;> <crop type=&quot;square&quot; src=&quot;http://media.npr.org/img/a.jpg&quot; height=&quot;440&quot; width=&quot;440&quot;/> <crop type=”wide&quot; src=&quot;http://media.npr.org/img/a.jpg&quot; height=&quot;400&quot; width=”225&quot;/> </image>
  • 83. What’s New and What’s Coming
    • Collections
    • Image Crops
      • standard: 4:3
      • square: 1:1
      • wide: 16:9
      • brick: 300:138
      • alt promo: 4:3
      • vertical: 3:4
    • New Output Types are Easier
      • Plists (Binary)
    <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?> <!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;> <plist version=&quot;1.0&quot;> <dict> <key>Story_ID</key> <integer>12321312</integer> <key>Photo_ID</key> <integer>234523452345</integer> <key>Category</key> <string>Politics</string> </dict> </plist>
  • 84. What’s New and What’s Coming
    • Collections
    • Image Crops
      • standard: 4:3
      • square: 1:1
      • wide: 16:9
      • brick: 300:138
      • alt promo: 4:3
      • vertical: 3:4
    • New Output Types are Easier
      • Plists (Binary)
  • 85. What’s New and What’s Coming
    • Collections
    • Image Crops
      • standard: 4:3
      • square: 1:1
      • wide: 16:9
      • brick: 300:138
      • alt promo: 4:3
      • vertical: 3:4
    • New Output Types are Easier
      • Plists (Binary)
    • More Ingest Partners… and a Public Media Platform
  • 86. To Recap
    • Content & Technology Are Inextricably Linked
          • Team Structure and Process Should Recognize this
      • To Be ‘Findable’ Your Content Should Be Flexible.
      • Flexible Content (i.e. Embraces COPE):
        • Requires An Investment x2
        • Improves Editorial Efficiency
        • Will Help Drive Growth / Relevancy
        • Revolutionizes Your Biz Dev
        • Creates Opportunities with Public
        • Accelerates Your Tech Development
  • 87. Questions?
    • Email: [email_address]
    • Twitter: @zbrand
    • API : www.npr.org/api
    • Blog http://www.npr.org/blogs/inside
    • PS Rate me on SXSW Mobile App or Website
    • PPS: We’re Hiring
    • SW Architect
    • SW Programmers
    • Designers
    • UX Specialist