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-only
Rank Math SEO SEO rank-math/get-link-report

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

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.