zach brand cope sxsw deck

87
NPR’s API: Create Once Publish Everywhere Zach Brand @zbrand Sr. Director Technology & Strategy NPR, Digital Media #nprapi

Upload: asg57

Post on 12-Nov-2014

37 views

Category:

Documents


1 download

DESCRIPTION

Contents of Zach Brand's 2012 SXSW presentation on Create Once Publish Everywhere strategies.

TRANSCRIPT

Page 1: Zach Brand COPE SXSW Deck

NPR’s API: Create Once Publish Everywhere

Zach Brand @zbrandSr. Director Technology & StrategyNPR, Digital Media

#nprapi

Page 2: Zach Brand COPE SXSW Deck

“From NPR News in Washington..” –Jack Speer et al

Page 3: Zach Brand COPE SXSW Deck

“From NPR News in Washington..” –Jack Speer et al

X 35M / Week

X 784

Page 4: Zach Brand COPE SXSW Deck

NPR Digital Media

Page 5: Zach Brand COPE SXSW Deck

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

Page 6: Zach Brand COPE SXSW Deck

But First, Some Definitions…

API: Application Programming Interface COPE (Create Once Publish Everywhere) Flexible Content CrossMedia TransMedia

Page 7: Zach Brand COPE SXSW Deck

So Why Should YOU Care about Flexible Content?

Three Reasons…

Page 8: Zach Brand COPE SXSW Deck

1) It’s Worked Well For Us…

NPR News iPhone app

NPR News Android app

Relaunched NPRmobile site

NPRiPad app

NPR MusiciPhone app

API launchedin 2008

NPR MusicRemix

NPR BlogsMade API Friendly

Facebook Integration

Player 2.0

Homepage Improvements

Story PageImprovements

Page 9: Zach Brand COPE SXSW Deck

0 - 50

> 1,000,000,000

> 800,000

#2) Getting Found is Getting Harder..

Page 10: Zach Brand COPE SXSW Deck

… and Thousands More

#3) …and Everybody Else Is Doing It.

Page 11: Zach Brand COPE SXSW Deck

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

Page 12: Zach Brand COPE SXSW Deck

Good ToolsGood People

…Flexible Content

Page 13: Zach Brand COPE SXSW Deck

1997(No CMS)

Page 14: Zach Brand COPE SXSW Deck
Page 15: Zach Brand COPE SXSW Deck

2003(CMS)

Page 16: Zach Brand COPE SXSW Deck
Page 17: Zach Brand COPE SXSW Deck

2005(CMS)

Page 18: Zach Brand COPE SXSW Deck
Page 19: Zach Brand COPE SXSW Deck

2008(API)

Page 20: Zach Brand COPE SXSW Deck

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

Page 21: Zach Brand COPE SXSW Deck

The Life of a (FLEXIBLE) Story at NPR

CMS API PresentationLayers

1 2

3 4

Page 22: Zach Brand COPE SXSW Deck

1: NPR CMS

Page 23: Zach Brand COPE SXSW Deck

2: NPR API

Page 24: Zach Brand COPE SXSW Deck

3: API Presentation Layers (or other Apps)

Page 25: Zach Brand COPE SXSW Deck

4: Examples of Presentation Layers

Page 26: Zach Brand COPE SXSW Deck

iPhone App Android AppMobile Site

Page 27: Zach Brand COPE SXSW Deck

NPR.org Audio Player

Page 28: Zach Brand COPE SXSW Deck

Google Chrome Extension

Page 29: Zach Brand COPE SXSW Deck

The Life of a (FLEXIBLE) Story at NPR

CMS API PresentationLayers

1 2

3 4

Page 30: Zach Brand COPE SXSW Deck

System Architecture Supporting COPE (2008)

Page 31: Zach Brand COPE SXSW Deck

System Architecture Supporting COPE

Page 32: Zach Brand COPE SXSW Deck

System Architecture Supporting COPE

JavaJSP

Struts

Page 33: Zach Brand COPE SXSW Deck

System Architecture Supporting COPE

R / WMySQL

Page 34: Zach Brand COPE SXSW Deck

System Architecture Supporting COPE

R / OMySQLCluster

NoSQL-likeXML

Repository

Page 35: Zach Brand COPE SXSW Deck

System Architecture Supporting COPE

PHP5

SimpleXML

PHP5

Page 36: Zach Brand COPE SXSW Deck
Page 37: Zach Brand COPE SXSW Deck

WBUR.org

Page 38: Zach Brand COPE SXSW Deck

Connecticut Public Broadcasting

Photos Courtesy Derik Elis, CBTV

NPR API

CPTV’s Drupal Based CMS

Website

Page 39: Zach Brand COPE SXSW Deck

So What did We Learn….

Page 40: Zach Brand COPE SXSW Deck

#1 Flexible Content is Design Agnostic

Home Page Design Pre-API Launch Home Page Design Post-API Launch

Page 41: Zach Brand COPE SXSW Deck

And Good Design Requires Flexibility Too…

You Still Have to Make the Presentation Compelling

Page 42: Zach Brand COPE SXSW Deck

“From Washington DC… this is NPR”

Page 43: Zach Brand COPE SXSW Deck
Page 44: Zach Brand COPE SXSW Deck
Page 45: Zach Brand COPE SXSW Deck

#2 Content & Technology Are Inextricably Linked

Good ToolsGood People

…Flexible Content

Page 46: Zach Brand COPE SXSW Deck
Page 47: Zach Brand COPE SXSW Deck
Page 48: Zach Brand COPE SXSW Deck
Page 49: Zach Brand COPE SXSW Deck
Page 50: Zach Brand COPE SXSW Deck

A thousand words of COPE

Page 51: Zach Brand COPE SXSW Deck
Page 52: Zach Brand COPE SXSW Deck
Page 53: Zach Brand COPE SXSW Deck
Page 54: Zach Brand COPE SXSW Deck
Page 55: Zach Brand COPE SXSW Deck
Page 56: Zach Brand COPE SXSW Deck
Page 57: Zach Brand COPE SXSW Deck

#3 Team structure based on Tech/Content link

Page 58: Zach Brand COPE SXSW Deck

#3 Team structure should recognize Tech/Content link

Good ToolsGood People

…Flexible Content

Page 59: Zach Brand COPE SXSW Deck
Page 60: Zach Brand COPE SXSW Deck

“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

Page 61: Zach Brand COPE SXSW Deck

#4 Its an investment …

Figuring it out…

US Election RelatedTraffic Bumps

Page 62: Zach Brand COPE SXSW Deck

… Not Magic, but Does Allow Cool Things

Page 63: Zach Brand COPE SXSW Deck

HTML5 Version of NPR.org (npr.org/tablet)

Page 64: Zach Brand COPE SXSW Deck

#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

Page 65: Zach Brand COPE SXSW Deck

NPR Addict iPhone App

Page 66: Zach Brand COPE SXSW Deck

#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

Page 67: Zach Brand COPE SXSW Deck

Paid Dev Public Dev

$$$

Page 68: Zach Brand COPE SXSW Deck

#5 It Does Drive the Business Forward

Feb 2011: Over 2 Billion Stories Served by API

Page 69: Zach Brand COPE SXSW Deck

#7 People are interested in Examples more than Documentation

Page 70: Zach Brand COPE SXSW Deck

#8 You will eat your own dog food

Page 71: Zach Brand COPE SXSW Deck

#9 Our Architecture (2008) Struggled with Change

Page 72: Zach Brand COPE SXSW Deck

The New Architecture of COPE

Page 73: Zach Brand COPE SXSW Deck

The New Architecture of COPE

Page 74: Zach Brand COPE SXSW Deck

The New Architecture of COPE

Page 75: Zach Brand COPE SXSW Deck

The New Architecture of COPE

Page 76: Zach Brand COPE SXSW Deck

The New Architecture of COPE

Page 77: Zach Brand COPE SXSW Deck

The New Architecture of COPE

Page 78: Zach Brand COPE SXSW Deck

The New Architecture of COPE

Page 79: Zach Brand COPE SXSW Deck

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

Page 80: Zach Brand COPE SXSW Deck

#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

Page 81: Zach Brand COPE SXSW Deck

What’s New and What’s Coming Collections

<collection><title> New Mix: Bright Eyese, G-Side, And More</title><member id="132652688"> <image refId="132652709" crop="square" num="1"/> <title num="2"><![CDATA[Nat Geo]]</title> <audio refId="132652704" num="3"/> <song refId="132649319" num="4"/> <memberText num="5"><![CDATA [<p><em><strong>Advisory: </strong> This song contains explicit language not suitable for all audiences.</em></p>]] </memberText> <link refId="132652740" num="6"/></member>

Page 82: Zach Brand COPE SXSW Deck

What’s New and What’s Coming Collections

Image Crops

<image id="133849355" type="primary" width="200" src="http://media.npr.org/img/a.jpg" hasBorder="false">

<crop type="square" src="http://media.npr.org/img/a.jpg" height="440" width="440"/>

<crop type=”wide" src="http://media.npr.org/img/a.jpg" height="400" width=”225"/>

</image>

Page 83: Zach Brand COPE SXSW Deck

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="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"> <dict> <key>Story_ID</key> <integer>12321312</integer> <key>Photo_ID</key> <integer>234523452345</integer>

<key>Category</key> <string>Politics</string> </dict></plist>

Page 84: Zach Brand COPE SXSW Deck

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)

Page 85: Zach Brand COPE SXSW Deck

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

Page 86: Zach Brand COPE SXSW Deck

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

Page 87: Zach Brand COPE SXSW Deck

Questions?

Email: [email protected] 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