Get Post SEO Data is a WordPress ability from SiteSEO – SEO Simplified — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get Post SEO Data
Read-onlyRetrieve the SEO snapshot for a single post: title, meta description, focus keyphrase, robots flags, canonical URL and social meta.
Requires the SiteSEO plugin on WordPress 6.9+ for the Abilities API (abilities are registered only when the wp_register_ability() function exists). Each ability is additionally gated by the caller holding the matching WordPress capability — edit_posts for the post abilities, or manage_options for settings, audit, and sitemap abilities.
What it does
This ability returns the SEO snapshot SiteSEO holds for a given post, read from post meta: the SEO title, meta description, canonical URL, focus keyphrase, cached content-analysis score, robots flags (noindex, nofollow, noimageindex, noarchive, nosnippet), and Open Graph/Twitter social meta (titles, descriptions, images). You pass the postId and get back the full snapshot in one call, letting an AI assistant audit a specific post's on-page SEO without opening the editor and reading each field manually.
See it in action
You ask your AI assistant
"Get the SEO data for post 42, including its robots flags and social meta."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| postId | integer | Yes | The post ID. |
Returns
An object with the post's title, description, canonical_url, focus_keyphrase, and seo_score (all string or null), a robots object (noindex, nofollow, noimageindex, noarchive, nosnippet booleans), and a social object (og_title, og_description, og_image, twitter_title, twitter_description, twitter_image, all string or null).
Permission
The current user must have the WordPress 'edit_posts' capability.
More SiteSEO – SEO Simplified abilities
Get Homepage SEO Audit
Get an SEO snapshot of the homepage, including title, meta description, robots flags, social meta and cached score.
Get Site SEO Audit
Get a site-wide SEO health snapshot covering the homepage, sitemap status, custom robots rules, and public post types.
Get Sitemap Status
Check whether the SiteSEO XML sitemap is enabled and get its index URL.
Get SiteSEO Settings
Read the full SiteSEO settings tree.
List Posts by SEO Score
List posts with their cached SEO content-analysis score.
List Posts Missing SEO Data
Find posts where the title, meta description, or focus keyphrase hasn't been set.