-
SEO Learning Center
Broaden your SEO knowledge with resources for all skill levels.
-
The Beginner's Guide to SEO
If you're brand new to SEO, start here.
-
SEO Q&A
Get answers from the Moz Community.
-
Free Downloads and More
Quick access to whitepapers, reports, guides, webinars, and case studies.
-
Help Hub
Learn how to use Moz products.
-
Community & Events
Connect with over 600k online marketers.
-
SEO Training
Instructor-led classes and seminars
LocalLocationRankingHistoryFetch
Returns keyword ranking position over time for a location's tracked keywords.
JSON-RPC Method:
local.location.ranking.history.fetchlocation_id
number
The id of the location
date_start
string
A calendar date in YYYY-MM-DD format.
date_end
string
A calendar date in YYYY-MM-DD format.
engine
string
The engine for the query.
Acceptable Values:
googledevice
string
The device to perform the query for.
Acceptable Values:
desktopmobile1{
2 "location_id": 12345,
3 "date_start": "2026-01-01",
4 "date_end": "2026-06-01",
5 "engine": "google",
6 "device": "desktop"
7}ranking_history
object
Keyword ranking history for a location over a date range. Echoes the requested location and range and carries the per-date reports (oldest to newest).
1{
2 "ranking_history": {
3 "location_id": 12345,
4 "date_start": "2026-01-01",
5 "date_end": "2026-06-01",
6 "engine": "google",
7 "device": "desktop",
8 "ranking_history_reports": [
9 {
10 "date": "2026-01-01",
11 "ranks": [
12 {
13 "keyword": "physical therapy near me",
14 "rank": 1
15 },
16 {
17 "keyword": "rehabilitation center in {%City}",
18 "rank": null
19 }
20 ]
21 }
22 ]
23 }
24}Does not require any quota.