Get link report is a WordPress ability from Rank Math SEO — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get link report
Read-onlyGet a site-wide internal/external link health report, including posts with no internal or external links.
Requires the Rank Math SEO plugin on WordPress 6.9+ for the Abilities API. AI Visibility abilities require the 'manage_options' capability; Link Genius abilities require 'rank_math_link_builder'; Post SEO abilities require 'rank_math_onpage_general'; Schema abilities require 'rank_math_onpage_snippet'; SEO Analysis abilities require 'rank_math_site_analysis'; Analytics abilities require 'rank_math_analytics'; Content Analysis abilities require 'rank_math_onpage_analysis'. Some outputs (broken-link audit data in get-link-report, extra schema types in get-post-schema) are only populated when Rank Math PRO is active.
What it does
This ability returns Rank Math Link Genius's site-wide link report: total internal and external link counts, and the number of posts with zero internal or zero external links. Setting include_posts to true adds per-post link counts to the response. On Rank Math PRO, the response also includes an audit object with broken-link counts, redirect counts, nofollow counts, and an HTTP status code distribution (2xx/3xx/4xx/5xx/timeout/error) from the Link Genius audit; on the free plugin, an upgrade object is returned instead describing what PRO unlocks. This lets an AI assistant spot internal-linking gaps across the whole site in one call rather than checking posts individually. Requires the 'rank_math_link_builder' capability.
See it in action
You ask your AI assistant
"Give me the site-wide link report including per-post counts, and tell me how many posts have no internal links."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| include_posts | boolean | No | Whether to include per-post link counts in the response. |
Returns
An object with stats (total_internal, total_external, posts_no_internal, posts_no_external, and optionally a posts array), an audit object (PRO only, with broken/redirect/nofollow counts and HTTP status distribution) or null, and an upgrade object (message and url) when PRO features aren't available.
Permission
Requires the 'rank_math_link_builder' capability.
More Rank Math SEO abilities
Analyze post content
Gather a post's raw content, metadata, and list of on-page SEO tests so an AI agent can run Rank Math's full on-page analysis itself.
Audit site SEO
Run Rank Math's site-wide SEO audit and get back a structured score with per-test findings and fix hints.
Create AI Visibility brand
Add a new brand to AI Visibility monitoring and automatically kick off its first analysis.
Fix site SEO
Apply an automatic fix for a single failing Rank Math SEO audit test.
Get AI Visibility brand insights
Pull the full AI Visibility analysis for a single brand — score, rank, sentiment, mentions, citations, competitor breakdown, and raw per-query AI responses.
Get AI Visibility brand queries
List the search queries being monitored for a brand's AI Visibility tracking, including which are enabled or auto-generated baselines.