30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Get Rank Math Analytics Summary

rank-math/get-analytics-summary returns a Rank Math analytics summary for a date range, with period-over-period comparison.

Several summary types: the dashboard rollup, search performance, keyword totals, per-post-type performance, the optimisation score breakdown, or one post’s figures.

At a glance

Abilityrank-math/get-analytics-summary
ToolsetRank Math — toolset/rank-math
GroupRank Math › Analytics
RequiresRank Math SEO, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

This needs a connected Google Search Console. Without one the ability says so rather than returning empty data — an empty result that reads as zero traffic is worse than an error, because it looks like an answer.

The period-over-period comparison is the part that makes the numbers mean anything. Impressions for a month is a number; impressions against the previous month is a direction, and direction is what anybody actually asks about.

The per-post-type breakdown answers a question most analytics cannot: whether the effort going into one kind of content is producing anything. A site publishing both posts and case studies can see which is earning impressions.

The optimisation score breakdown crosses Rank Math’s own scoring with search performance, which is the closest thing available to evidence about whether the scores correlate with anything on this particular site.

One post’s figures are available here too, which is usually enough to avoid paging through the row-level ability.

Input

NameTypeRequiredWhat it is
typestringYesWhich summary: the dashboard rollup, search performance, keywords, post types, the score breakdown, or a single post.
fromstringNoStart date, YYYY-MM-DD.
tostringNoEnd date, YYYY-MM-DD.
post_idintegerRequired for the single-post summaryWhich post.

What comes back

NameTypeWhat it is
summaryobjectThe figures for the period.
comparisonobjectThe same figures for the preceding period.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

How did search traffic do last month compared to the month before?

It resolves to one call:

{
  "ability": "rank-math/get-analytics-summary",
  "parameters": {
    "type": "search-performance",
    "from": "2026-08-01",
    "to": "2026-08-31"
  }
}

Worth knowing

  • Needs a connected Search Console. Without one it says so rather than returning zeros.
  • The comparison is what turns numbers into direction.
  • The per-post-type breakdown shows which content is earning anything.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading