Adds all the meta tags of the head section to WordPress REST API responses, including the ones generated by SEO plugins like Yoast or All in One SEO.
As of April 2026, REST API is a WordPress api plugin with 200 active installations and a 5/5 rating from 2 reviews. It has been downloaded 18K+ times in total. Requires WordPress 4.7+ and PHP 5.6+. Available on WordPress.org since 2020. Last updated 5 years ago — may have compatibility concerns. Top alternative: WP Consent API.
This plugin adds all the tags in the head section of a website to WordPress REST API responses.
It is perfect if you are using WordPress for a headless set-up and would like to add the meta tags generated by your WordPress SEO plugin (like Yoast SEO or All-in-One SEO Pack) to the WordPress REST API output.
This package depends on the PHP DOM library. Most PHP environments have it by default so you don’t have to worry about that.
In case you get some errors regarding this dependency make sure you have this library installed (you can take a look at this thread in the code repository).
This plugin is compatible and works out of the box with some of the most popular WordPress SEO plugins. These are the ones that we tested:
| WordPress | 4.7+ requiredTested up to 5.7.15 |
| PHP | 5.6+ required |
Patch Changes:
– Return an empty array when there is no <head> tag.
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.