The WordPress REST API

Categorized under:

, ,
Photo of author
Written By Brian Krogsgard

15 thoughts on “The WordPress REST API”

  1. Legit write up!

    “REST API hasn’t been slated for a particular release” when oh when will we be able to use this with plugins? =)

    It will be a game changer

  2. I am looking forward to getting this into core and then using WordPress as a BaaS. I have been looking for an open source php powered BaaS and there isn’t one!

  3. Outstanding article, Brian.

    The WP Rest API has been on my radar for awhile now but it isn’t until now that I’ve fully begun to understand the implications of it, and am truly excited for what’s coming.

    On a side note, write-ups like this are an excellent way of bridging that gap between the hardcore contributors and the more casual WordPress developers. Thanks for the time and effort you clearly put into this.

  4. Is there any way of relieving a post by passing the full permalink as a query to the api?

    This would be very useful as I can foresee the need to retrieve the json version of a post object via Ajax and in many cases only the permalink will be available in the front end…

  5. Excellent Article! Really gets the thoughts flowing on the potential of API in the tool chest.

    Thank you for the release of upcoming events and look forward to more updates. BRAVO!

  6. Brian,

    Yes but how can I retrieve the json representation of the post based on its front end permalink (you know the one with date and slug)?

    As far as I can tell you need to have either have the post ID or the slug. So I guess you could parse out the slug from the url but that is an ugly solution and would break if someone changes the permalink structure.

    Ideally this api should have some sort of content negotiation…

  7. Awesome post. Thanks for running through this, very useful to long-time WP users like me that never gave much thought to how REST might be utilized in projects. Really has me thinking now.

  8. This is a great blog post thanks Brian. Tons of good info in here. I haven’t had time to look into the JSON API much yet and I feel like I’ve managed to catch up a bit after reading that.

    It looks like there’s some pretty significant benefits for external applications interfacing with WordPress. However, I’m wondering (probably naively) if there would be any benefits for theming a website frontend using it? If for no other reason than to have a more consistent API. Whilst we’re all used to template tag functions and WP_Query etc. They can be a bit convoluted and inconsistent.

  9. When I heard Matt discuss the future of WordPress at WordCamp SF, as well as Adam White’s talk on using Node with WP, I saw a glimpse of how vastly WP will change in the next few years. The standard usage will continue for blogs, websites, etc., but now we’ll have the ability to use WP as a platform, e.g., just using it as a proven content management system, while using whatever other technologies you’d like with it (Node, Ruby, iOS, Android Apps, etc.). Brian, you nailed this article man. Can’t wait to see more examples of how to start using the API.

  10. I have been working with the Rest Api for the last six month while using Multisite WordPress for the backend of an ios app. By using the Rest Api and the Pods Plugin it seems that almost anything is possible. I have not been able to find any decent documentation on uploading media via the Rest Api nor have I been able to successfully upload media using it but I am sure that will come soon. Great article! So exciting to see where this is going…

Comments are closed.

A2 Hosting
Omnisend
WordPress.com