Wordpress-seo: Add REST API support

Created on 30 Oct 2015  Â·  11Comments  Â·  Source: Yoast/wordpress-seo

We should investigate what endpoint we want to add and what meta fields we want to expose. Preferably after WordPress 4.4 has been released but before WordPress 4.5 where presumably the REST API endpoints will be included in core.

rest api needs-product-feedback feature request

Most helpful comment

Three and a half years on since this was logged — any views from the Yoast team to implementing this?

All 11 comments

Just an upvote on this. With the ability to build your own custom app complete with it's own admin (I've already built one that does almost everything the wp admin does but better imo) one of the only things that's missing is the ability to analyze content for SEO via these new interfaces so an official Yoast RESTful API would be fantastic and really be on the bleeding edge of where wp is going.

and yes, I just used "bleeding edge" in a sentence. ;)

Since the analysis implementation is moving to JavaScript it kind of prevents from it being integrated with PHP-powered API backend.

REST API content endpoints had shipped in WP 4.7, issue needs a refresh.

Hi,
Could you please tell me if there is any planning to implement this issue.
I see several issues with the label component: rest api but no one seems to be started.

Thanks

User says Focus Keywords and Meta Descriptions should be available via the REST API.

Please inform the customer of conversation # 427170 when this conversation has been closed.

Three and a half years on since this was logged — any views from the Yoast team to implementing this?

I second @charles4221 in looking for a response to this question. I would like to use yoast seo to configure the pages but I do not see any yoast information coming in the api page and post calls.

Please inform the customer of conversation # 522439 when this conversation has been closed.

For anyone following who really needs to access Yoast metadata over the REST API while we wait for Yoast to respond, I've been using and contributing to this library for around a year and would certainly recommend it: https://github.com/factor1/better-rest-endpoints

The only issue with the Yoast implementation in BRE is that it simply uses get_post_meta for most of the Yoast meta fields, so if you haven't explicitly provided value on the post edit screen for that meta, it will return as an empty string when Yoast would normally fill out those values with their internal logic — see get_yoast.php

Perhaps there are some Yoast geniuses here who could take a look and contribute some better replacements for the get_post_meta calls while we wait for Yoast to respond on adding their own API endpoints.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danieltj27 picture danieltj27  Â·  6Comments

adrianleira picture adrianleira  Â·  6Comments

PENTAGON4 picture PENTAGON4  Â·  6Comments

isaumya picture isaumya  Â·  4Comments

haroldangenent picture haroldangenent  Â·  4Comments