SEO Plugins for Headless and Decoupled WordPress

Featured image reading SEO Plugins for Headless and Decoupled WordPress, with the number 6 and the label plugins compared

The SEO plugin best known for a “headless mode”, The SEO Framework, registers zero REST routes. That is not a flaw; its headless mode exists to remove its admin screens, which is a different job from feeding SEO data to a JavaScript front end. It is also the clearest sign that “headless” means two things in this category, and that buyers searching for one often land on the other.

For a decoupled site, the question is how SEO data leaves WordPress. Yoast returns it as JSON in its free plugin. AIOSEO made its REST head fields free only on 17 June 2026; before that they needed a Plus plan and a separate add-on. Rank Math returns the whole head as one block of HTML and “does not currently support the direct retrieval of specific meta tags”. And the best-known GraphQL route for Yoast is a third-party add-on with 10,000 installs.

This guide compares six ways to get titles, descriptions, canonicals and schema out of WordPress and into a Next.js, Astro or similar front end, and then lists the jobs no SEO plugin can do for you once the front end lives somewhere else.

As of December 2026. Route and field names come from vendor documentation and from the free plugins’ source code. Every route described here is free unless stated otherwise.


Your front end shows the WordPress domain in its canonical tags

The most common headless SEO bug is quiet. WordPress runs at cms.example.com, the front end at www.example.com, and the SEO plugin builds every canonical, og:url and sitemap entry from WordPress’s own address. The front end fetches the head, renders it faithfully, and every page now tells search engines that the real version lives on the CMS domain.

No plugin choice fixes that on its own. What the plugin decides is how easy the fix is. A structured JSON response lets you rewrite one field. A block of HTML means parsing markup before you can change anything. And a plugin with no API at all means writing the integration yourself. That is the axis this comparison runs on.


Decoupled delivery, “headless mode” and REST-only editing

Three different needs get filed under “headless SEO”.

Decoupled delivery is the main one: editors work in wp-admin, and a separate front end reads each page’s SEO data over REST or GraphQL. Everything in the comparison below is about this.

“Headless mode” in The SEO Framework is something else. Defining the THE_SEO_FRAMEWORK_HEADLESS constant, available since version 4.1.4, removes the plugin’s admin interfaces and makes its options and meta fall back to defaults. Its knowledge base notes that the Cord, Local and Monitor extensions “do not work well with headless mode”. It is for developers who want the plugin’s output without its settings screens, and since the free plugin registers no REST routes, it does not deliver SEO data to an external front end. That is why it is not one of the six below.

REST-only editing is the third: writing SEO fields through the API, for example from an import script or an external editorial tool. Only some plugins document write routes, and SEOPress is the clearest example below.


The 6 options compared

1. Yoast SEO

The best-documented option, free. yoast_head and yoast_head_json fields on REST responses, plus a get_head endpoint for any URL.

Yoast’s developer documentation describes two ways in. The first adds yoast_head, the full head as HTML, and yoast_head_json, the same data as structured JSON, to the standard WordPress REST responses for posts, pages and terms. The second is /wp-json/yoast/v1/get_head?url=, which returns the head for any URL on the site, useful for archives and routes that are not a single post. Having both formats matters: the JSON lets you rewrite a canonical field directly, while the HTML is there for front ends that want to drop the head in unchanged. All of it is in the free plugin, which has 10 million+ installs, so a decoupled site does not need Yoast Premium at $118.80 a year unless it wants Premium’s editor features. GraphQL support for Yoast comes from a third-party add-on, covered at number six. Yoast is owned by Newfold Digital.

  • Route: yoast_head_json field; yoast/v1/get_head
  • Format: JSON and HTML
  • Cost: Free
  • Watch out for: Canonicals still use the WordPress address

2. AIOSEO

Worth a second look if you ruled it out before mid-2026. aioseo_head, aioseo_head_json and aioseo_meta_data are free since version 4.9.8.

AIOSEO moved its REST API fields into the free Lite plugin in version 4.9.8, released on 17 June 2026. Before that, according to its announcement, they “required a Plus plan (or higher) and a separate addon install”. The result is a Yoast-style set of fields: the head as HTML, the head as JSON, and the raw meta data. For a team already running AIOSEO on its other sites, that removes the main reason to standardise on something else for a headless build. The announcement does not mention WPGraphQL, and the free plugin’s source contains no GraphQL code, so a GraphQL stack would need its own integration. If you go on to buy a paid tier for other features, note that AIOSEO renews at full price, from $99 for Basic to $599 for Elite, per its pricing page. AIOSEO is owned by Awesome Motive, which also owns WPBeginner.

  • Route: aioseo_head_json and related fields
  • Format: JSON and HTML
  • Cost: Free since 17 June 2026
  • Watch out for: Older tutorials still say it is paid

3. SEOPress

The most complete read-and-write API. Free JSON routes by post ID, by URL and by term, with write routes for the main SEO fields.

SEOPress’s REST API guide lists seopress/v1/posts/[postId], seopress/v1/posts/by-url and seopress/v1/terms/[termId] as free GET routes returning JSON, and recommends the post route for headless front ends rather than reading raw meta from /wp/v2. The by-URL route is the useful one for a front end that only knows the path it is rendering. On the write side, PUT routes cover titles and descriptions, target keywords, social settings, robots settings and redirects, each requiring the edit_post capability, which suits scripted imports and external editorial tools. Version 10.4 tightened the public routes so that they describe only content a visitor could already reach: drafts and password-protected posts are hidden, which matters for preview builds. Some routes, including schemas and the Google News settings, are marked PRO; SEOPress PRO costs $49 a year for one site, renewing at the same price while auto-renew stays on. The guide does not mention WPGraphQL, and the free plugin’s source has no GraphQL code.

  • Route: seopress/v1/posts/by-url and siblings
  • Format: JSON
  • Cost: Free; some routes PRO from $49
  • Watch out for: Drafts are hidden from public routes

4. Rank Math

Works, but hands you HTML. A free “Headless CMS Support” toggle exposes getHead, which returns the whole head as one block of markup.

Switching on Headless CMS Support, under General Settings and then Others, enables GET /wp-json/rankmath/v1/getHead?url=. The response is the complete head HTML for that URL. Rank Math’s knowledge base is direct about the limits: the endpoint “does not currently support the direct retrieval of specific meta tags”, and “Rank Math does not currently support GraphQL out of the box.” In practice, a front end that only needs to inject the head can use it unchanged, but one that needs to rewrite the canonical or og:url to the front-end domain has to parse the HTML first, which is more brittle than editing a JSON field. Both the toggle and the route are in the free plugin, so Rank Math PRO ($95.88 in the first year) is not needed for headless delivery. Rank Math is owned by group.one.

  • Route: rankmath/v1/getHead?url=
  • Format: HTML only
  • Cost: Free
  • Watch out for: No per-tag retrieval and no GraphQL

5. SureRank

The newest and, on paper, the most complete for headless use. A free opt-in toggle adds a get_head endpoint, REST fields in JSON and HTML, and a JSON sitemap.

SureRank, from Brainstorm Force, added its headless API in version 1.9.0, and it is switched off by default. Turned on, it registers /wp-json/surerank/v1/get_head?url=, which returns the page’s description, canonical, robots, Open Graph and Twitter tags and schema. It also adds a surerank field (structured JSON) and a surerank_head field (raw HTML) to the standard /wp/v2 responses, so a front end can get SEO data without a second request. The part that stands out is a JSON version of the sitemap, at /surerank/v1/sitemap for the index and /surerank/v1/sitemap/{slug} for each page of entries, built from the same data as the XML sitemap. That makes it straightforward to render a sitemap on the front-end domain. The caveat is maturity: the plugin has 300,000+ installs but a short track record, so check the routes against your own front end before standardising on it. SureRank Pro is $149 a year at regular price and is not required for any of this.

  • Route: surerank/v1/get_head; surerank field
  • Format: JSON and HTML, plus JSON sitemap
  • Cost: Free, off by default
  • Watch out for: Young product; remember to switch it on

6. WPGraphQL plus WPGraphQL Yoast SEO Addon

The GraphQL route. Two free plugins, with 30,000+ and 10,000+ installs, and the second is third-party rather than Yoast’s own.

WPGraphQL (version 2.29.0, updated November 2026) adds a GraphQL API to WordPress. The WPGraphQL Yoast SEO Addon (version 6.0.0, also updated November 2026) exposes Yoast’s SEO data in that schema. It is published on wordpress.org by an independent developer, not by Yoast, which is the fact to weigh: your SEO data path depends on one third-party maintainer keeping pace with both Yoast and WPGraphQL releases. It is well established and recently updated, so this is a risk to monitor rather than a reason to avoid it. For context, Faust.js, WP Engine’s framework for headless WordPress, has about 1,000 installs of its WordPress plugin, so most GraphQL users are assembling the stack themselves. Rank Math’s knowledge base says it does not support GraphQL out of the box, and the free plugins of AIOSEO, SEOPress and SureRank contain no GraphQL code, so for a GraphQL stack Yoast plus this add-on is the most direct route.

  • Route: GraphQL fields on Yoast data
  • Format: GraphQL
  • Cost: Free
  • Watch out for: Third-party maintenance of the SEO add-on

Comparison table

OptionRoute or fieldFormatGraphQLSitemap for the front endCost
Yoast SEOyoast_head_json; yoast/v1/get_headJSON and HTMLVia third-party add-onProxy or rebuild the XML sitemapFree
AIOSEOaioseo_head_json; aioseo_meta_dataJSON and HTMLNo GraphQL code in free pluginProxy or rebuild the XML sitemapFree since v4.9.8
SEOPressseopress/v1/posts/by-url and siblingsJSONNo GraphQL code in free pluginProxy or rebuild the XML sitemapFree; some routes PRO
Rank Mathrankmath/v1/getHeadHTML onlyNot supported out of the boxProxy or rebuild the XML sitemapFree
SureRanksurerank/v1/get_head; surerank fieldJSON and HTMLNo GraphQL code in free pluginJSON sitemap routesFree, opt-in
WPGraphQL plus Yoast add-onGraphQL schema fieldsGraphQLYesNot applicableFree, third-party

The decoupled SEO checklist

Whichever plugin you choose, these jobs move to the front end or the edge, because the SEO plugin no longer serves the pages visitors see.

  • Rewrite canonical and og:url. Either set WordPress’s Site Address to the front-end domain so the plugin builds the right URLs, or rewrite the host in every canonical, og:url and schema URL before rendering. A JSON response makes the second approach a one-line change.
  • Serve sitemaps from the front-end domain. A sitemap on the CMS domain that lists front-end URLs, or the reverse, confuses crawlers. Proxy the XML sitemap and rewrite its URLs, or build the sitemap in the front end from an API; SureRank’s JSON sitemap is designed for the latter.
  • Handle robots.txt and redirects at the edge. A redirect stored in a WordPress plugin only fires when a request reaches WordPress, and on a decoupled site the visitor’s request never does. Export redirects to the front end or the CDN. Our comparison of CDN plugins and integrations covers where edge rules can live.
  • Keep the CMS domain out of search. Block indexing of cms.example.com with authentication, a robots rule or a noindex header, so the old theme output does not compete with the real site.
  • Plan preview URLs. Public routes generally expose only published content; SEOPress says so explicitly for drafts and password-protected posts. Previews need an authenticated request.
  • Move tracking too. Plugins that add tags or a data layer to WordPress’s theme output do nothing on a decoupled front end. Our guide to GTM data-layer plugins shows what they would normally add, which you now rebuild in the front end.

Frequently asked questions

Which SEO plugin is best for headless WordPress?

Yoast SEO for documentation and JSON output, both free. SureRank if you also want a JSON sitemap. SEOPress if you need to write SEO fields through the API.

Does Rank Math work with headless WordPress?

Yes, through its free getHead endpoint, but it returns the whole head as HTML, with no per-tag retrieval and no GraphQL support out of the box.

Is AIOSEO’s REST API still a paid feature?

No. Since version 4.9.8, released on 17 June 2026, its REST head fields are in the free plugin. Before that they needed Plus or higher and a separate add-on.

What is The SEO Framework’s headless mode?

A constant that removes the plugin’s admin interfaces so its settings fall back to defaults. It does not provide an API, and the free plugin registers no REST routes.

Can I get SEO data over GraphQL?

Yes, with WPGraphQL and the WPGraphQL Yoast SEO Addon, both free. The add-on is maintained by a third party, not by Yoast.

Do I need a paid SEO plugin for a headless site?

No. Every delivery route in this guide is free. Only some SEOPress routes, such as schemas and Google News settings, are PRO.


The verdict

Next.js or Astro over REST: Yoast SEO, free. yoast_head_json gives you structured fields to rewrite and the best documentation in the category. Consider SureRank if a JSON sitemap would save you building one.

GraphQL or Faust stack: WPGraphQL plus the WPGraphQL Yoast SEO Addon. It is the most direct GraphQL route; keep an eye on the add-on’s release cadence, since a third party maintains it.

Agency building many headless sites: SEOPress or Yoast. SEOPress’s by-URL route and write routes suit scripted builds and migrations; Yoast’s documentation shortens onboarding for new developers. Neither requires a paid tier for delivery.

Already on Rank Math or AIOSEO: you probably do not need to switch. AIOSEO’s fields are now free, and Rank Math works if you are willing to parse HTML. Switch only if per-field access or GraphQL is a hard requirement.

Team that only wants the SEO plugin for its editor screens: any free suite will do. The plugin’s job is to store the fields; the front end does the rest. The SEO Framework’s headless mode is for the opposite case, where you want the output without the screens.