Skip to content

Keywords · MCP TOOL

get_keyword_rank_history

Read captured daily top search results for one keyword.

Set up your assistant · Authentication and errors

When to use it

Track which apps gained or lost positions in stored keyword captures. Missing history is not reconstructed.

Parameters

NameTypeRequiredDefaultAllowed valuesDescription
keywordstringYes——Store search term to score or inspect. Minimum length: 1. Maximum length: 80.
countrystringNo"us"—Two-letter storefront country code. Minimum length: 2. Maximum length: 2.
sourcestringNo"apple_mobile"apple_mobile, google_mobile, ios, androidStore: apple_mobile/ios or google_mobile/android.
daysintegerNo30—Lookback window in days. Minimum: 1. Maximum: 365.
topintegerNo10—Maximum ranking positions per captured day. Minimum: 1. Maximum: 50.

Defaults and constraints come from the published Zod input schema. “—” means no schema default or no enum restriction. Use JSON values of the listed type; additional handler rules are described above.

Example prompts

  • Show 30 days of top-ten US results for sleep sounds.

Example call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_keyword_rank_history",
    "arguments": {
      "keyword": "sleep sounds",
      "days": 30,
      "top": 10
    }
  }
}

Example result

Illustrative, abridged JSON-RPC result. Only selected fields are shown; empty arrays illustrate a response with no rows. These are not current catalog observations. Parse the JSON inside content[].text.

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[]}"
      }
    ]
  }
}

Free vs paid results

On Free a series keeps its app identity if it held any position in 1–10 during the window. Other series have locked identities while their position lines remain. Paid plans unlock identities.

Paid access does not fill coverage gaps or unknown values. Returned plan metadata and lock notes explain redaction where applicable. Read the full Free data policy.

Rate limits and usage credit

PlanCalls per tool / dayAll tools / week
Free550
Basic100700
Pro3002,500

Days reset at 00:00 UTC. The combined ISO week resets Monday at 00:00 UTC. Every served tool call counts, including cached reads. Failed or refused calls are released along with any charge. Compare plans.

After either allowance, Basic and Pro can opt in to pay $0.02 in usage credit per call to get_keyword_rank_history. A call exceeding both windows is charged once. Free is refused past its allowances; paid plans without opt-in or enough credit are also refused with HTTP 402 / JSON-RPC -32004.

Credential request throttles and, for live keyword work, store-work throttles also apply. Follow retry instructions in the error reference.