SlideShare ist ein Scribd-Unternehmen logo
1 von 31
APIs 101




Jed Sundwall   jed@measuredvoice.com   @jedsundwall
Application Programming Interface
Has an API
USA.gov Social Media Registry
USA.gov Social Media Registry

     API + Fedsourcing
Let’s make some API calls!

Step 1: Learn to read URLs
google.com/search?q=beyonce
google.com/search?q=beyonce
google.com/search?q=beyonce



command    delimiter   parameter   value
google.com/search?q=beyonce

google.com/search?q=beyonce&num=1


           all delimiters after the first “?” are “&”s
google.com/search?q=beyonce

google.com/search?q=beyonce&num=1

google.com/search?q=beyonce&num=5&hl=es
google.com/search?q=beyonce

google.com/search?q=beyonce&num=1

google.com/search?q=beyonce&num=5&hl=es

twitter.com/?lang=es

youtube.com/watch?v=iScNjy7U-Zo
Step 2: Write some URLs
USA.gov Social Media Registry

Agencies API + Services API + Accounts API
registry.usa.gov/agencies
registry.usa.gov/agencies

registry.usa.gov/agencies.xml
registry.usa.gov/agencies

registry.usa.gov/agencies.xml

registry.usa.gov/agencies.json
registry.usa.gov/agencies

registry.usa.gov/agencies.xml

registry.usa.gov/agencies.json
registry.usa.gov/services

registry.usa.gov/services.xml

registry.usa.gov/services.json
registry.usa.gov/accounts

registry.usa.gov/accounts.xml

registry.usa.gov/accounts.json
registry.usa.gov/accounts?service_id=twitter&age
ncy_id=nasa
registry.usa.gov/accounts?service_id=twitter&age
ncy_id=nasa

registry.usa.gov/accounts.xml?service_id=twitter&
agency_id=nasa

registry.usa.gov/accounts.json?service_id=twitter
&agency_id=nasa
Step 3: Tell some machines to read our data
Google Spreadsheets + importXML()
=importXML(
  "http://registry.usa.gov/agencies.xml",
  "//agency_name”
)
=importXML(
  "http://registry.usa.gov/agencies.xml",
  "//agency_name”
)
                                data source
                 XPath
=importXML(
  "http://registry.usa.gov/agencies.xml",
  "//agency_name”
)

=importXML(
  "http://registry.usa.gov/agencies.xml",
  "//agency_id”
)

=importXML(
  "http://registry.usa.gov/services.xml",
  "//service_id”
)
=importXML(

"http://registry.usa.gov/accounts.xml?service_id=t
witter&agency_id=nasa",
  "//service_url”
)
So what?
Create more value than you capture.

           – @timoreilly
Don’t be afraid to ask for help.

jed@measuredvoice.com
@jedsundwall

Weitere ähnliche Inhalte

Was ist angesagt?

Everyday Seo by Tom Veltri
Everyday Seo by Tom VeltriEveryday Seo by Tom Veltri
Everyday Seo by Tom VeltriConvergeSouth
 
Split Testing for SEO - 9 Months of Learning
Split Testing for SEO - 9 Months of LearningSplit Testing for SEO - 9 Months of Learning
Split Testing for SEO - 9 Months of LearningDominic Woodman
 
Analytics In, Analytics Out: Using Google Analytics to Guide and Grade Web Pr...
Analytics In, Analytics Out: Using Google Analytics to Guide and Grade Web Pr...Analytics In, Analytics Out: Using Google Analytics to Guide and Grade Web Pr...
Analytics In, Analytics Out: Using Google Analytics to Guide and Grade Web Pr...Engage Software
 
Defining & Mapping Your Brand for Google: A Slightly Technical Guide for Grow...
Defining & Mapping Your Brand for Google: A Slightly Technical Guide for Grow...Defining & Mapping Your Brand for Google: A Slightly Technical Guide for Grow...
Defining & Mapping Your Brand for Google: A Slightly Technical Guide for Grow...Everett Sizemore
 
DNNcon 2016: Are There Security Flaws in Your DNN Modules?
DNNcon 2016: Are There Security Flaws in Your DNN Modules?DNNcon 2016: Are There Security Flaws in Your DNN Modules?
DNNcon 2016: Are There Security Flaws in Your DNN Modules?Engage Software
 
Enterprise SEO - Pain Management Strategies
Enterprise SEO - Pain Management StrategiesEnterprise SEO - Pain Management Strategies
Enterprise SEO - Pain Management Strategiespetryshen
 
Writing for the Modern Web
Writing for the Modern WebWriting for the Modern Web
Writing for the Modern WebDavid King
 
Introduction to Joomla SEO
Introduction to Joomla SEOIntroduction to Joomla SEO
Introduction to Joomla SEOalledia
 
Creating URL Providers for your Custom Extensions
Creating URL Providers for your Custom ExtensionsCreating URL Providers for your Custom Extensions
Creating URL Providers for your Custom ExtensionsEngage Software
 
Web 2.0 & Search Engines
Web 2.0 & Search EnginesWeb 2.0 & Search Engines
Web 2.0 & Search EnginesAmbles Kwok
 
Crush Competitors with Deep On-Page SEO Tactics
Crush Competitors with Deep On-Page SEO TacticsCrush Competitors with Deep On-Page SEO Tactics
Crush Competitors with Deep On-Page SEO TacticsPJ Howland
 
Knowledge Graph and Authorrank iss smx
Knowledge Graph and Authorrank iss smxKnowledge Graph and Authorrank iss smx
Knowledge Graph and Authorrank iss smxGianluca Fiorelli
 
Essential Ingredients of a WordPress Website
Essential Ingredients of a WordPress WebsiteEssential Ingredients of a WordPress Website
Essential Ingredients of a WordPress WebsiteSara Rosso
 
WordCamp Philippines 2012 WordPress and SEO Presentation
WordCamp Philippines 2012 WordPress and SEO PresentationWordCamp Philippines 2012 WordPress and SEO Presentation
WordCamp Philippines 2012 WordPress and SEO PresentationKim Tyrone Agapito
 
SES SF 2010 - Whats Next for SEO and News
SES SF 2010 - Whats Next for SEO and NewsSES SF 2010 - Whats Next for SEO and News
SES SF 2010 - Whats Next for SEO and NewsTopher Kohan
 
Tagul
TagulTagul
TagulBill
 
Making Change Predictable: Tools to Track Google Volatility
Making Change Predictable: Tools to Track Google VolatilityMaking Change Predictable: Tools to Track Google Volatility
Making Change Predictable: Tools to Track Google VolatilitySemrush
 
Writing for the Modern Web
Writing for the Modern WebWriting for the Modern Web
Writing for the Modern WebDavid King
 

Was ist angesagt? (20)

Everyday Seo by Tom Veltri
Everyday Seo by Tom VeltriEveryday Seo by Tom Veltri
Everyday Seo by Tom Veltri
 
Split Testing for SEO - 9 Months of Learning
Split Testing for SEO - 9 Months of LearningSplit Testing for SEO - 9 Months of Learning
Split Testing for SEO - 9 Months of Learning
 
Links4
Links4Links4
Links4
 
Analytics In, Analytics Out: Using Google Analytics to Guide and Grade Web Pr...
Analytics In, Analytics Out: Using Google Analytics to Guide and Grade Web Pr...Analytics In, Analytics Out: Using Google Analytics to Guide and Grade Web Pr...
Analytics In, Analytics Out: Using Google Analytics to Guide and Grade Web Pr...
 
Defining & Mapping Your Brand for Google: A Slightly Technical Guide for Grow...
Defining & Mapping Your Brand for Google: A Slightly Technical Guide for Grow...Defining & Mapping Your Brand for Google: A Slightly Technical Guide for Grow...
Defining & Mapping Your Brand for Google: A Slightly Technical Guide for Grow...
 
DNNcon 2016: Are There Security Flaws in Your DNN Modules?
DNNcon 2016: Are There Security Flaws in Your DNN Modules?DNNcon 2016: Are There Security Flaws in Your DNN Modules?
DNNcon 2016: Are There Security Flaws in Your DNN Modules?
 
Enterprise SEO - Pain Management Strategies
Enterprise SEO - Pain Management StrategiesEnterprise SEO - Pain Management Strategies
Enterprise SEO - Pain Management Strategies
 
Writing for the Modern Web
Writing for the Modern WebWriting for the Modern Web
Writing for the Modern Web
 
Introduction to Joomla SEO
Introduction to Joomla SEOIntroduction to Joomla SEO
Introduction to Joomla SEO
 
Creating URL Providers for your Custom Extensions
Creating URL Providers for your Custom ExtensionsCreating URL Providers for your Custom Extensions
Creating URL Providers for your Custom Extensions
 
Web 2.0 & Search Engines
Web 2.0 & Search EnginesWeb 2.0 & Search Engines
Web 2.0 & Search Engines
 
Crush Competitors with Deep On-Page SEO Tactics
Crush Competitors with Deep On-Page SEO TacticsCrush Competitors with Deep On-Page SEO Tactics
Crush Competitors with Deep On-Page SEO Tactics
 
Knowledge Graph and Authorrank iss smx
Knowledge Graph and Authorrank iss smxKnowledge Graph and Authorrank iss smx
Knowledge Graph and Authorrank iss smx
 
Essential Ingredients of a WordPress Website
Essential Ingredients of a WordPress WebsiteEssential Ingredients of a WordPress Website
Essential Ingredients of a WordPress Website
 
WordCamp Philippines 2012 WordPress and SEO Presentation
WordCamp Philippines 2012 WordPress and SEO PresentationWordCamp Philippines 2012 WordPress and SEO Presentation
WordCamp Philippines 2012 WordPress and SEO Presentation
 
SES SF 2010 - Whats Next for SEO and News
SES SF 2010 - Whats Next for SEO and NewsSES SF 2010 - Whats Next for SEO and News
SES SF 2010 - Whats Next for SEO and News
 
Tagul
TagulTagul
Tagul
 
Making Change Predictable: Tools to Track Google Volatility
Making Change Predictable: Tools to Track Google VolatilityMaking Change Predictable: Tools to Track Google Volatility
Making Change Predictable: Tools to Track Google Volatility
 
Writing for the Modern Web
Writing for the Modern WebWriting for the Modern Web
Writing for the Modern Web
 
From keyboard to production
From keyboard to productionFrom keyboard to production
From keyboard to production
 

Ähnlich wie Apis 101

Week 12 - Search Engine Optimization
Week 12 -  Search Engine OptimizationWeek 12 -  Search Engine Optimization
Week 12 - Search Engine Optimizationhenri_makembe
 
Flash SEO Secrets
Flash SEO SecretsFlash SEO Secrets
Flash SEO Secretsrtretola
 
Digital Marketing Course Saket | 8810606010
Digital Marketing Course Saket | 8810606010Digital Marketing Course Saket | 8810606010
Digital Marketing Course Saket | 8810606010DizitalAdda
 
The Future of SEO #LearnInbound
The Future of SEO #LearnInboundThe Future of SEO #LearnInbound
The Future of SEO #LearnInboundBritney Muller
 
Brightcove Video SEO - Optimizing Brightcove Video for Search
Brightcove Video SEO - Optimizing Brightcove Video for SearchBrightcove Video SEO - Optimizing Brightcove Video for Search
Brightcove Video SEO - Optimizing Brightcove Video for SearchMark Robertson ⏩
 
The Technical SEO Renaissance
The Technical SEO RenaissanceThe Technical SEO Renaissance
The Technical SEO RenaissanceMichael King
 
SearchLove Boston 2018 - Bartosz Goralewicz - JavaScript: Looking Past the ...
SearchLove Boston 2018 -  Bartosz Goralewicz -  JavaScript: Looking Past the ...SearchLove Boston 2018 -  Bartosz Goralewicz -  JavaScript: Looking Past the ...
SearchLove Boston 2018 - Bartosz Goralewicz - JavaScript: Looking Past the ...Distilled
 
Top Secret Tools of the Trade Rand Fishkin.ppt
Top Secret Tools of the Trade Rand Fishkin.pptTop Secret Tools of the Trade Rand Fishkin.ppt
Top Secret Tools of the Trade Rand Fishkin.pptzachbrowne
 
Practical Seo and internet marketing advice
Practical Seo and internet marketing advicePractical Seo and internet marketing advice
Practical Seo and internet marketing adviceCharlie Kalech
 
Revision For Seo
Revision For Seo Revision For Seo
Revision For Seo indiabests
 
PRNews Google Conference 2015 (SEO & PR alignment) - Dave Lloyd
PRNews Google Conference 2015 (SEO & PR alignment) - Dave LloydPRNews Google Conference 2015 (SEO & PR alignment) - Dave Lloyd
PRNews Google Conference 2015 (SEO & PR alignment) - Dave LloydDave Lloyd
 
SEO & Content Areas for Growth in 2019
SEO & Content Areas for Growth in 2019 SEO & Content Areas for Growth in 2019
SEO & Content Areas for Growth in 2019 Prosperity Media
 
Iaee Ts2 Is Your Event Website Optimized Part 2
Iaee Ts2 Is Your Event Website Optimized   Part 2Iaee Ts2 Is Your Event Website Optimized   Part 2
Iaee Ts2 Is Your Event Website Optimized Part 2Velvet Chainsaw Consulting
 
Blog xseo 10 Videos Webmasters Need To Watch, According To Google
Blog xseo 10 Videos Webmasters Need To Watch, According To GoogleBlog xseo 10 Videos Webmasters Need To Watch, According To Google
Blog xseo 10 Videos Webmasters Need To Watch, According To GoogleXSEO
 
Optimizing WordPress and Content for Higher Google Ranking
Optimizing WordPress and Content for Higher Google RankingOptimizing WordPress and Content for Higher Google Ranking
Optimizing WordPress and Content for Higher Google RankingWiideman Consulting Group
 
SEO: Core Understanding, Solid Strategy & Advanced Tactics
SEO: Core Understanding, Solid Strategy & Advanced TacticsSEO: Core Understanding, Solid Strategy & Advanced Tactics
SEO: Core Understanding, Solid Strategy & Advanced TacticsIslamAmeen
 
WordCamp Vancouver 2010 - Search Engine Optimization (SEO) Tips for WordPress
WordCamp Vancouver 2010 - Search Engine Optimization (SEO) Tips for WordPressWordCamp Vancouver 2010 - Search Engine Optimization (SEO) Tips for WordPress
WordCamp Vancouver 2010 - Search Engine Optimization (SEO) Tips for WordPressMcBuzz Communications
 

Ähnlich wie Apis 101 (20)

Week 12 - Search Engine Optimization
Week 12 -  Search Engine OptimizationWeek 12 -  Search Engine Optimization
Week 12 - Search Engine Optimization
 
Flavours of SEO
Flavours of SEOFlavours of SEO
Flavours of SEO
 
Flash SEO Secrets
Flash SEO SecretsFlash SEO Secrets
Flash SEO Secrets
 
Digital Marketing Course Saket | 8810606010
Digital Marketing Course Saket | 8810606010Digital Marketing Course Saket | 8810606010
Digital Marketing Course Saket | 8810606010
 
The Future of SEO #LearnInbound
The Future of SEO #LearnInboundThe Future of SEO #LearnInbound
The Future of SEO #LearnInbound
 
Brightcove Video SEO - Optimizing Brightcove Video for Search
Brightcove Video SEO - Optimizing Brightcove Video for SearchBrightcove Video SEO - Optimizing Brightcove Video for Search
Brightcove Video SEO - Optimizing Brightcove Video for Search
 
The Technical SEO Renaissance
The Technical SEO RenaissanceThe Technical SEO Renaissance
The Technical SEO Renaissance
 
SearchLove Boston 2018 - Bartosz Goralewicz - JavaScript: Looking Past the ...
SearchLove Boston 2018 -  Bartosz Goralewicz -  JavaScript: Looking Past the ...SearchLove Boston 2018 -  Bartosz Goralewicz -  JavaScript: Looking Past the ...
SearchLove Boston 2018 - Bartosz Goralewicz - JavaScript: Looking Past the ...
 
Top Secret Tools of the Trade Rand Fishkin.ppt
Top Secret Tools of the Trade Rand Fishkin.pptTop Secret Tools of the Trade Rand Fishkin.ppt
Top Secret Tools of the Trade Rand Fishkin.ppt
 
SEO Basics for Your Business
SEO Basics for Your BusinessSEO Basics for Your Business
SEO Basics for Your Business
 
Practical Seo and internet marketing advice
Practical Seo and internet marketing advicePractical Seo and internet marketing advice
Practical Seo and internet marketing advice
 
Revision For Seo
Revision For Seo Revision For Seo
Revision For Seo
 
PRNews Google Conference 2015 (SEO & PR alignment) - Dave Lloyd
PRNews Google Conference 2015 (SEO & PR alignment) - Dave LloydPRNews Google Conference 2015 (SEO & PR alignment) - Dave Lloyd
PRNews Google Conference 2015 (SEO & PR alignment) - Dave Lloyd
 
SEO & Content Areas for Growth in 2019
SEO & Content Areas for Growth in 2019 SEO & Content Areas for Growth in 2019
SEO & Content Areas for Growth in 2019
 
Iaee Ts2 Is Your Event Website Optimized Part 2
Iaee Ts2 Is Your Event Website Optimized   Part 2Iaee Ts2 Is Your Event Website Optimized   Part 2
Iaee Ts2 Is Your Event Website Optimized Part 2
 
Blog xseo 10 Videos Webmasters Need To Watch, According To Google
Blog xseo 10 Videos Webmasters Need To Watch, According To GoogleBlog xseo 10 Videos Webmasters Need To Watch, According To Google
Blog xseo 10 Videos Webmasters Need To Watch, According To Google
 
Optimizing WordPress and Content for Higher Google Ranking
Optimizing WordPress and Content for Higher Google RankingOptimizing WordPress and Content for Higher Google Ranking
Optimizing WordPress and Content for Higher Google Ranking
 
SEO: Core Understanding, Solid Strategy & Advanced Tactics
SEO: Core Understanding, Solid Strategy & Advanced TacticsSEO: Core Understanding, Solid Strategy & Advanced Tactics
SEO: Core Understanding, Solid Strategy & Advanced Tactics
 
Seo Made Easy
Seo Made EasySeo Made Easy
Seo Made Easy
 
WordCamp Vancouver 2010 - Search Engine Optimization (SEO) Tips for WordPress
WordCamp Vancouver 2010 - Search Engine Optimization (SEO) Tips for WordPressWordCamp Vancouver 2010 - Search Engine Optimization (SEO) Tips for WordPress
WordCamp Vancouver 2010 - Search Engine Optimization (SEO) Tips for WordPress
 

Apis 101

Hinweis der Redaktion

  1. 2. What is an API. Application Programming Interface. That's jargon. It means nothing. Greg Elin called it a remote control for software. That's one way of thinking about it.
  2. If you have a smartphone, it has a list of contacts, for any other program to access your contacts, it has to use the contacts' API. The contacts' API is essentially the set of instructions that define what can be done with your contacts and how to do it. In recent years, we learned that the APIs that governed access to contacts on some phones were too generous, so the APIs to access the contacts were changed.
  3. 4. So, I'm going to talk about GSA's Social Media Registry and its API. Particularly, I'm going to talk about the API-first approach that GSA took when building it. 5. The issue was this: we needed lists of what was official. People were getting spoofed. Agencies were afraid of being spoofed, or being unable to assert their authority. Previously, the .gov and .mil domains gave government their own *domain*, but as governments interact with citizens on .com domains – Twitter, Facebook, or Google+ – there's a need to know what's going on out there. Both by management within government, but by journalists and citizens.
  4. 6. But! How to build it? The old USA.gov way wouldn't work. *Fedsourcing*.7. And how to present it? We didn't know. So we went API first. We build an API to put stuff into the registry and an API to get stuff out. It's all documented at registry.usa.gov.
  5. Learning how to read URLs blew my mind.
  6. Learning how to read URLs blew my mind.
  7. Type this into any cell in a Google Spreadsheet
  8. Type this into any cell in a Google Spreadsheet
  9. Type this into any cell in a Google Spreadsheet
  10. Type this into any cell in a Google Spreadsheet