Stored Metrics

Overview

Stored metrics pull from data you've already synced — they don't fetch new data and don't consume credits. If a tool returns empty results, run the corresponding sync first.

get-keyword-metrics

Returns locally stored keyword metrics (volume, difficulty, CPC, intent) for your tracked keywords. Supports filtering and sorting.

Parameters

ParameterTypeRequiredDescription
site_idintegerYesThe site ID
keywordstringNoFilter by keyword (partial match)
search_intentstringNoinformational, commercial, navigational, or transactional
sort_bystringNosearch_volume, keyword_difficulty, cpc, or keyword
sort_directionstringNoasc or desc

Example

"Show my tracked keywords sorted by search volume, highest first."

get-search-console-data

Returns Search Console data (clicks, impressions, CTR, position) with flexible date ranges and aggregation.

Parameters

ParameterTypeRequiredDescription
site_idintegerYesThe site ID
start_datestringNoStart date (YYYY-MM-DD)
end_datestringNoEnd date (YYYY-MM-DD)
querystringNoFilter by search query
group_bystringNoday, week, month, or none (default: day)
limitintegerNoMax results (1–500)
offsetintegerNoSkip this many results (for paging through large lists)

Tips

  • Use group_by: "day" for time-series charts. Use group_by: "none" with the query filter to see per-keyword performance.

get-analytics-data

Returns Google Analytics data (sessions, users, pageviews, bounce rate) with flexible aggregation. Same parameters as get-search-console-data above (minus the query filter).

get-business-profile-data

Returns Google Business Profile performance data (search views, map views, actions). Requires GBP integration. Same parameters as get-analytics-data.

History Tools

These four tools return time-series snapshots for tracked sites. They all share the same parameters:

ParameterTypeRequiredDescription
site_idintegerYesThe site ID
daysintegerNoDays of history (1–365, default 90)
  • get-domain-overview-history — Organic keywords, traffic, and ranking distribution trends. Synced by sync-domain-overview.
  • get-backlink-history — Backlink and referring domain snapshots over time. Synced by sync-backlinks.
  • get-competitor-history — Competitor visibility and overlap snapshots. Synced by sync-competitors.
  • get-llm-mention-history — AI/LLM mention frequency and sentiment over time. Synced by sync-llm-mentions.