Using Hatch with Yoast and Rank Math
How Hatch Connect passes Yoast SEO and Rank Math titles, descriptions and schema to your headless Astro frontend, and what happens with AIOSEO sites.
Last updated October 29, 2026
By the end of this guide you will know which SEO plugins Hatch Connect reads, how your titles, descriptions and social settings reach your Astro frontend on Cloudflare Workers, and how to check that the data is flowing.
Which SEO plugins Hatch reads
Hatch Connect has an SEO bridge that detects Rank Math or Yoast SEO and passes the head data you already set in that plugin to the frontend. Premium editions (Yoast SEO Premium, Rank Math Pro) are detected too, and their data flows the same way as the free versions.
- Rank Math: Hatch calls Rank Math’s own
getHeadendpoint for the URL. - Yoast SEO: Hatch calls Yoast’s
get_headendpoint. Yoast also addsyoast_head_jsonto posts in the REST API, and the frontend can read either path. - No SEO plugin: Hatch builds a minimal head itself, and the frontend uses your post title and excerpt.
All in One SEO (AIOSEO): the current Hatch code has no AIOSEO detector or bridge. If AIOSEO is your only SEO plugin, Hatch treats the site as having no SEO plugin and falls back to the minimal head. To carry your SEO settings over, use Rank Math or Yoast SEO.
When more than one SEO plugin is active
Hatch picks one provider. Rank Math wins over Yoast when both are active. To keep things simple, run only one SEO plugin.
How SEO data reaches the frontend
Hatch exposes the data under the hatch/v1 REST address:
/wp-json/hatch/v1/seo-head?url=...returns the rendered head HTML for a URL (requires a signed-in account)./wp-json/hatch/v1/schema?url=...returns the JSON-LD for a URL (requires a signed-in account).- A
hatch_seofield is added to post data in the REST API. - The public
/wp-json/hatch/v1/featuresresponse includes anintegrations.seoblock showing which plugin was detected.
Your frontend fetches these when it builds or renders pages, so you keep editing SEO in WordPress exactly as before.
Set it up
- Install and activate Rank Math or Yoast SEO in WordPress, if you have not already.
- Fill in titles, meta descriptions and social settings in that plugin as usual.
- In wp-admin, open Hatch and go to the Plugins tab.
- Check that your SEO plugin shows as detected.
- Deploy or redeploy your frontend so pages pick up the data.

Check the data is flowing
- Open
https://your-site.com/wp-json/hatch/v1/featuresin a browser. - Find
integrationsand thenseo. Thedetectedentry should name your plugin. - Open a post on your frontend, view the page source and confirm the title and description match what you set in the SEO plugin.
If the REST address returns 404, see WordPress REST API 404 and permalinks.
Detection is not the same as data
A green check on the Plugins tab means Hatch sees the plugin. It does not mean every post has SEO data. Posts you have not filled in fall back to the plugin’s own defaults.