WordPress.com has just announced a brand new REST API, which gives developers access to tons of new content, including posts and comments, as well as the ability to Follow, Like, or Reblog content for users. Other features from WordPress.com are also available through the API, like the daily content on Freshly Pressed.
According to the team, its goal is to “simplify the experience of using and adding to the data available on WordPress.com. To do this, we now use the OAuth2 protocol to authenticate requests for data. To retrieve public data, you can make unauthenticated requests. To perform actions, such as making new posts or comments, you would need to make authenticated requests. When the API returns data, we now return a standardized JSON object for ease-of-use.”
The REST API also self-documents itself; as we add new endpoints, the documentation on our Developer Resources blog will auto-update to provide you with the latest information. In addition, you’ll also have access to a Developer Console, which will allow you to run real REST API queries and see real JSON data directly in your web browser. You can read more about the Console here.
F**k it, we'll do it live!
Our biggest ever edition of TNW Conference is fast approaching! Join 10,000 tech leaders this May in Amsterdam.
As part of the announcement, WordPress.com is touting the Windows 8 app (shown above) as an “excellent example” of an application that uses the new API.
If you’re interesting in building with the new API, you can now sign up for and manage your OAuth2 tokens without waiting through an approval cycle. If you have any questions or feedback on the API, feel free to reach out to the team here. You can also follow the Developer Resources blog for news, updates and documentation.
➤ REST API