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
480
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
250
WordPress in Corporate America
rachelbaker
0
200
Introduction to the JSON REST API
rachelbaker
1
230
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
アーキテクトと美学 / Architecture and Aesthetics
nrslib
12
3.3k
爆速スッキリ! Rspack 移行の成果と道のり - Muddy Web #11
dora1998
1
260
ReactFlow への移行で実現するユーザー体験と開発体験の向上
j9141997
0
150
Unlock the Potential of Swift Code Generation
rockname
0
190
AI時代のプログラミング教育 / programming education in ai era
kishida
23
21k
snacks.nvim内のセットアップ不要なプラグインを紹介 / introduce_snacks_nvim
uhooi
0
380
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
200
SEAL - Dive into the sea of search engines - Symfony Live Berlin 2025
alexanderschranz
1
110
MCP世界への招待: AIエンジニアが創る次世代エージェント連携の世界
gunta
4
850
PHPでお金を扱う時、終わりのない 謎の1円調査の旅にでなくて済む方法
nakka
4
1.4k
リアルタイムレイトレーシング + ニューラルレンダリング簡単紹介 / Real-Time Ray Tracing & Neural Rendering: A Quick Introduction (2025)
shocker_0x15
1
270
PsySHから紐解くREPLの仕組み
muno92
PRO
1
540
Featured
See All Featured
For a Future-Friendly Web
brad_frost
176
9.6k
GraphQLとの向き合い方2022年版
quramy
45
14k
Practical Orchestrator
shlominoach
186
10k
Site-Speed That Sticks
csswizardry
4
470
A designer walks into a library…
pauljervisheath
205
24k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Designing for Performance
lara
606
69k
Designing Experiences People Love
moore
141
23k
Navigating Team Friction
lara
184
15k
Testing 201, or: Great Expectations
jmmastey
42
7.4k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.5k
YesSQL, Process and Tooling at Scale
rocio
172
14k
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.