WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by frontity v1.2.1

REST API

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.

REST API

The facts

Rating
5★ from 2
Active installs
100+
Price
Free
Last updated
26 Mar 2021
Added
Jan 2020
Requires WP
4.7
Tested up to
WP 5.7.17
Requires PHP
5.6
Downloads
18,931

Our analysis

AI-assisted

The REST API – Head Tags plugin for WordPress adds meta tags from the head section to REST API responses. It is designed for users who implement a headless WordPress setup and need to include SEO meta tags generated by plugins like Yoast SEO or All-in-One SEO Pack in their API output.

This plugin is compatible with several popular SEO plugins and works with core WordPress entities such as posts, pages, and custom post types. It requires the PHP DOM library, which is commonly available in PHP environments.

Best for: This plugin is suitable for developers using WordPress in a headless configuration who need to expose SEO meta tags via the REST API.

What it does well

  • Adds head section tags to WordPress REST API responses
  • Compatible with popular SEO plugins like Yoast SEO
  • Supports core WordPress entities including posts and pages
  • Free to use and available in the WordPress.org directory

Where it falls short

  • Limited information on compatibility with SEO plugins beyond those tested
  • Dependency on PHP DOM library may cause issues if not available

Verdict

The REST API – Head Tags plugin is a specific tool for headless WordPress setups, particularly useful for those focusing on SEO integration. Its functionality is straightforward, but it may require additional setup depending on your environment.

From the developer

frontity's own description of REST API, lightly tidied.

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.

Requirements

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).

Compatibility

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:

Are you using a different SEO plugin and want to know if it’s compatible? Feel free to ask in our community forum. If you tested any other plugin, please let us know as well so we can update the list.

How to use this plugin

Entities with head tags

The plugin has been developed to include the head_tags field to the REST API response of most of the WordPress core entities:

  • Posts, pages, attachments and custom post types.
  • Post types: for archive pages.
  • Categories, tags and custom taxonomies.
  • Authors.

In a Frontity project

If you are using Frontity, you just have to install the @frontity/head-tags package and it will work automatically.

 In a different project

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for search engine optimisation.

Yoast SEO

Real-time SEO guidance, schema, and AI built in. Help search engines and AI systems understand your content. A...

Free 10M+ installs 4.8★ (27,819)
Rank Math SEO

Grow your organic traffic and AI visibility with powerful SEO tools, XML sitemaps, Schema automation, and buil...

Free 4M+ installs 4.8★ (7,496)
Translate WordPress with GTranslate

Translate WordPress with Google Translate multilanguage plugin using AI translation. Complete multilingual SEO...

Free 900k+ installs 4.9★ (4,950)
All in One SEO

AIOSEO is the WordPress SEO plugin. Boost SEO rankings with AI SEO tools, schema, meta descriptions, XML sitem...

Free 2M+ installs 4.7★ (5,201)
SEOPress

WordPress SEO plugin with AI SEO metadata, schema, XML sitemap, redirections & Search Console. Privacy-fir...

Free 300k+ installs 4.8★ (1,246)