Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Three simple rules for building APIs
Search
Ben Balter
March 31, 2015
Technology
580
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Three simple rules for building APIs
APIs should be simple, semantic, and supported.
Ben Balter
March 31, 2015
Transcript
50 slides
! Three simple rules for building an API Ben Balter
@benbalter
[email protected]
government.github.com
! All APIs should be three things
! APIs should be simple
! APIs should be semantic
! APIs should be supported
! All APIs should be simple
! Let’s say you want a list of open source
licenses…
! Option 0: scrape opensource.org Option 1: scrape spdx.org Option
2: parce an excel file
! Pro-tip: prototype your API
! choosealicense.com/licenses.json
! Meh.
! api.github.com/licenses
None
! api.github.com/licenses/mit
None
! api.github.com/repos/benbalter/gman
None
! All APIs should be semantic
! FDsys is not
! The FAR
! (Thunder and dramatic music)
None
! Web developers love 2+ MB XML files
! Data should be immediately valuable
! github.com/benbalter/so_far_so_good
! Data should make sense to computers
None
! Data should make sense to humans
None
! Data shouldn’t mimic their paper counterparts
! Data should be reimagined for the web
! Optimize for developer happiness
! All APIs should be supported
!
[email protected]
doesn’t scale
!
[email protected]
is a great way to answer the same
question over and over again
! Users have (the same) questions
! The only appropriate way to answer a question about
your API is with a URL
! Today, the first step to solving any problem is
to Google it
! Microsoft has been rocking the knowledge base for decades
! Bonus #1: Your community will answer its own questions
None
! Bonus #2: Collaborative documentation
None
None
! If you liked it then you should have put
a URL on it
! To review…
! APIs should be simple
! APIs should be semantic
! APIs should be supported
! Three simple rules for building an API Ben Balter
@benbalter
[email protected]
government.github.com
More Decks by Ben Balter
See All by Ben Balter
A community of communities: Empowering maintainers to grow communities around their code
benbalter
1
1.4k
Fostering a culture of collaboration
benbalter
0
270
Growing open source communities on GitHub around your WordPress plugin or theme
benbalter
1
300
It takes a digital village
benbalter
1
580
Open source workflows in highly regulated environments
benbalter
0
130
Optimize for Developer Happiness
benbalter
0
330
The technology is the easy part
benbalter
2
350
How to foster an open source culture inside Government
benbalter
3
2.6k
Open source inspired workflows for open (and closed) geospatial data
benbalter
0
220
Other Decks in Technology
See All in Technology
AIエージェントのアーキテクチャ設計
nsatoh
0
570
コーディングできない僕にBobが舞い降りた
shumpei3
0
220
技術書典で本を売る流れ
yoshimura_datam
0
170
Amazon EFS のマルウェアスキャンをClamAV で自前実装したら苦労した話
mtmtfactory01
0
120
RAGの改善を速く回すための評価基盤
yosukeyoshida
6
3.7k
フルTypeScript × AI駆動開発で開発量が数倍に (JSConf JP 2026 スポンサーLT:NCDC株式会社)
keitaibaraki
0
160
業務の傍らで進める改善ループエンジニアリング
bengo4com
1
250
デザインシステムのフィードバックループをほぼ自動化した話
tongari07
0
640
AI-DLCでソフトウェア開発の速さは 上がったのか?
rfdnxbro
0
170
AWS DevOps Agentの構造から読み解く運用 AI エージェントの設計原則/aws-devops-agent-design-principles
tomoki10
0
290
MCPでネットワーク障害調査を自動化する前に直すべき3つのこと
yama3133
1
670
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
Featured
See All Featured
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
850
Heart Work Chapter 1 - Part 1
lfama
PRO
11
37k
Well, that’s weird…
csswizardry
3
240
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
The Spectacular Lies of Maps
axbom
PRO
1
1.2k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
370
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
610
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
500
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
990
Exploring anti-patterns in Rails
aemeredith
4
590