25% of all websites are about to get a REST API

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, October 08, 2015

Follow me on Twitter as @mattiasgeniar

And it's thanks to WordPress.

WordPress has long had an XML-RPC API that is enabled by default on every installation. It’s the very same XML RPC API that is used (and abused) to perform “pingbacks” whenever another WordPress installation links to you.

It’s a powerful thing, if used properly. And it’s about to get a baby sister in the form of a REST API:

REST API: Introduce baby API to the world.

Baby API was born at 2.8KLOC on October 8th at 2:30 UTC. API has lots of growing to do, so wish it the best of luck.

Changeset 34928

The new API is introduced in commit 34928. It’s target is the WordPress 4.4 release, which currently has no known launch date yet which is the current stable release.

From a personal standpoint, I much prefer REST API’s over RPC XML API’s. They’re much easier to integrate in simple scripts. That said, it is a matter of preference and I don’t create complex scenarios that use the API as a power user.

The new API will seemingly live in /wp-includes/rest-api.php, whereas the XML RPC one lived in the root directory at /xmlrpc.php.

From the 25% of the world sites (official numbers) that are about to get a REST API, I doubt anyone would even give two cents. But hey, if a giant like WordPress launches something new – it deserves some attention.



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.