Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
WordPress JSON REST API
Search
Rachel Baker
December 15, 2014
Programming
1
520
WordPress JSON REST API
#backboneconf
Rachel Baker
December 15, 2014
Tweet
Share
More Decks by Rachel Baker
See All by Rachel Baker
Real Time REST API with WordPress
rachelbaker
3
1.8k
Build a Theme with the WP REST API
rachelbaker
7
13k
Utilizing the WP REST API
rachelbaker
8
2.3k
Meet the JSON REST API
rachelbaker
1
260
WordPress in Corporate America
rachelbaker
0
200
Introduction to the JSON REST API
rachelbaker
1
240
The WordPress JSON REST API
rachelbaker
3
450
Put Your Content to REST with WP API
rachelbaker
3
1.4k
Kickin' It Old School with the Command Line
rachelbaker
1
120
Other Decks in Programming
See All in Programming
Rails産でないDBを Railsに引っ越すHACK - Omotesando.rb #110
lnit
1
130
TypeScript Language Service Plugin で CSS Modules の開発体験を改善する
mizdra
PRO
3
2.5k
【TSkaigi 2025】これは型破り?型安全? 真実はいつもひとつ!(じゃないかもしれない)TypeScript クイズ〜〜〜〜!!!!!
kimitashoichi
1
300
TypeScript製IaCツールのAWS CDKが様々な言語で実装できる理由 ~他言語変換の仕組み~ / cdk-language-transformation
gotok365
7
400
eBPFを用いたAIネットワーク監視システム論文の実装 / eBPF Japan Meetup #4
yuukit
3
640
Zennの運営完全に理解した #完全に理解したTalk
wadayusuke
1
150
Rethinking Data Access: The New httpResource in Angular
manfredsteyer
PRO
0
220
推論された型の移植性エラーTS2742に挑む
teamlab
PRO
0
150
ワンバイナリWebサービスのススメ
mackee
10
7.5k
事業戦略を理解してソフトウェアを設計する
masuda220
PRO
14
4k
Practical Domain-Driven Design - Workshop at NDC 2025
mufrid
0
130
Babylon.js 8.0のアプデ情報を 軽率にキャッチアップ / catch-up-babylonjs-8
drumath2237
0
120
Featured
See All Featured
Statistics for Hackers
jakevdp
799
220k
Docker and Python
trallard
44
3.4k
Mobile First: as difficult as doing things right
swwweet
223
9.6k
Music & Morning Musume
bryan
47
6.6k
Art, The Web, and Tiny UX
lynnandtonic
298
21k
How to train your dragon (web standard)
notwaldorf
92
6k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
KATA
mclloyd
29
14k
RailsConf 2023
tenderlove
30
1.1k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Unsuck your backbone
ammeep
671
58k
The World Runs on Bad Software
bkeepers
PRO
68
11k
Transcript
JSON REST API Current challenges and future impact
Rachel Baker @rachelbaker Senior Web Engineer, Lead Developer, JSON REST
API Project
Democratize Publishing Mission:
USA Today
http://www.vogue.com/
Five Thirty Eight
None
USA Today
Five Thirty Eight
Five Thirty Eight
http://open.nasa.gov/
http://open.nasa.gov/
http://open.nasa.gov/
http://open.nasa.gov/
Powers over 60 million sites Stats: Forbes, 2011
23.3% of active sites Stats: W3 Techs, December 2014
4.0 downloaded 29 million times Stats: WordPress.org, December 2014
Multi-functional
User-friendly
Powered by a popular (and hated) language
Backward compatible
Why do we need an API?
We made it to 11.
Relevance for 11 more years.
69.1% of the web doesn’t use a CMS.
Build new, or iterate on existing features.
None
Continue the mission.
Challenges
60 million distributed APIs.
Drink.
11 years late.
Respect privacy expectations.
Secure authentication.
Different hosting environments.
Different WordPress versions.
Extensible with plugins.
Cannot deploy a bug fix.
Still has to be useful.
Quality clients.
Solutions
Drink.
Slow down we have a responsibility to not screw this
up.
Err on the side of authentication.
Namespaced and versioned routes: wp/1.0/posts pluginname/2.0/events
OAuth1.0a and possibly OAuth2 through WordPress.org.
Educate our community and seek feedback from all communities.
Official client libraries.
Released version 1.0 and encourage everyone to start using it
now.
Many are already using it in production New York Times
Wired 10up Bocoup …and more
Future
None
None
None
Backbone-based WordPress “themes”.
Customized Dashboards.
Customized Dashboards.
Front-end (inline) content editing.
Customized Dashboards.
WordPress has been the gateway drug for tens of thousands
of web developers.
WordPress will be the gateway drug for tens of thousands
of APIs.
Check it out
Read the Documentation wp-api.org
Install the Plugin github.com/WP-API/WP-API
Get the Schema http://example.com/wp-json/
Build Stuff and Give Feedback Posts ✔ ✔ ✔ ✔
Pages ✔ ✔ ✔ ✔ Custom Post Types ✔ ✔ ✔ ✔ Post Meta ✔ ✔ ✔ ✔ Media ✔ ✔ ✔ ✔ Comments ✔ ✔ ✔ ✔ Taxonomies/Terms ✔ ✔ ✔ ✔ Users ✔ ✔ ✔ ✔ GET POST PUT DELETE
Thank you github.com/WP-API
STEP ONE READ THE DOCUMENTATION
STEP TWO Install & Activate the Plugin
STEP THREE GET the API ScHEMA http://example.com/wp-json/
STEP THREE GET the API ScHEMA http://example.com/wp-json/
STEP FOUR GET the POSTS COLLECTION http://example.com/wp-json/posts/
http://example.com/wp-json/ STEP FOUR GET the POSTS COLLECTION
STEPs FIVE - Twenty-Two EXPLORE ALL THE POSSIBILITES Posts ✔
✔ ✔ ✔ Pages ✔ ✔ ✔ ✔ Custom Post Types ✔ ✔ ✔ ✔ Post Meta ✔ ✔ ✔ ✔ Media ✔ ✔ ✔ ✔ Comments ✔ ✔ ✔ ✔ Taxonomies/Terms ✔ ✔ ✔ ✔ Users ✔ ✔ ✔ ✔ GET POST PUT DELETE
STEP Twenty-THREE - ?? Use the JSON REST API Use
the JSON REST API plugin in/for a project. Give us feedback.