Google Rank Tracking API
The Google Rank Tracking API provides a lightweight solution for tracking search result rankings on Google. It's optimized for fast performance and accurate position tracking, returning up to 100 organic results with guaranteed no duplicates. The API returns essential ranking data including organic results with positions, ads, and rich result features like sitelinks, rich snippets, video information, and images.
API Parameters
Search Query
-
- Name
-
q
- Required
- Required
- Description
-
The search query to track rankings for. This parameter is used for the terms you want to search on Google and track ranking positions.
Device
-
- Name
-
device
- Required
- Optional
- Description
-
The default parameter
desktop
defines the search on a desktop device. Themobile
parameter defines the search on a mobile device. Thetablet
parameter defines the search on a tablet device.
Geographic Location
-
- Name
-
location
- Required
- Optional
- Description
-
This parameter is used to specify the canonical location of the search (e.g.,
location=New York
). For exact targeting or to see all available options, check out the Locations API. If multiple locations match your input, the most popular one will be selected.
-
- Name
-
uule
- Required
- Optional
- Description
-
This parameter sets the exact Google-encoded location for the search, and
uule
andlocation
cannot be used at the same time. SearchApi builds it for you when you use thelocation
parameter, but you can provide your own if you want precise control.
Localization
-
- Name
-
google_domain
- Required
- Optional
- Description
-
The default parameter
google.com
defines the Google domain of the search. Check the full list of supported Googlegoogle_domain
domains.
-
- Name
-
gl
- Required
- Optional
- Description
-
The default parameter
us
defines the country of the search. Check the full list of supported Googlegl
countries.
-
- Name
-
hl
- Required
- Optional
- Description
-
The default parameter
en
defines the interface language of the search. Check the full list of supported Googlehl
languages.
-
- Name
-
lr
- Required
- Optional
- Description
-
The lr parameter restricts search results to documents written in a particular language. The accepted format is
lang_{2-letter country code}
. Check the full list of supported Googlelr
languages.
Engine
-
- Name
-
engine
- Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
google_rank_tracking
.
API key
-
- Name
-
api_key
- Required
- Required
- Description
-
The
api_key
authenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY
) or in the Authorization header (Bearer YOUR_API_KEY
).
Zero Data Retention
-
- Name
-
zero_retention
- Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
true
to disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Organic Results

https://www.searchapi.io/api/v1/search?engine=google_rank_tracking&q=rank+tracker
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "google_rank_tracking",
"q": "rank tracker"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_9jGd7bMw38EDulKxpmJ8v5YA",
"status": "Success",
"created_at": "2025-10-01T12:00:00Z",
"request_time_taken": 1.52,
"parsing_time_taken": 0.09,
"total_time_taken": 1.61,
"request_url": "https://www.google.com/search?q=rank+tracker&gl=us&hl=en&num=100",
"json_url": "https://www.searchapi.io/api/v1/searches/search_9jGd7bMw38EDulKxpmJ8v5YA"
},
"search_parameters": {
"engine": "google_rank_tracking",
"q": "rank tracker",
"google_domain": "google.com",
"gl": "us",
"hl": "en",
"num": 100
},
"organic_results": [
{
"position": 1,
"title": "Ranktracker: The all-in-one platform for effective SEO",
"link": "https://www.ranktracker.com/",
"source": "Ranktracker",
"domain": "www.ranktracker.com",
"displayed_link": "https://www.ranktracker.com",
"snippet": "Ranktracker the all-in-one platform for effective SEO. ⚡ Find keywords, track website ranking, analyze SERPs and audit your website using world-class data.",
"snippet_highlighted_words": [
"track website ranking"
],
"sitelinks": {
"inline": [
{
"title": "Blog",
"link": "https://www.ranktracker.com/blog/"
},
{
"title": "Tools",
"link": "https://www.ranktracker.com/rank-tracker/"
},
{
"title": "How it works",
"link": "https://www.ranktracker.com/how-it-works/"
},
{
"title": "Pricing",
"link": "https://www.ranktracker.com/pricing/"
}
]
},
"favicon": "data:image/png;base64,..."
},
{
"position": 2,
"title": "Rank Tracker - Free Ranking Tool for Checking Keywords",
"link": "https://www.link-assistant.com/rank-tracker/",
"source": "SEO PowerSuite",
"domain": "www.link-assistant.com",
"displayed_link": "https://www.link-assistant.com › rank-tracker",
"snippet": "Rank Tracker is all-in-one software designed to track keywords with freely customizable rank tracking dashboards and SEO reports.",
"snippet_highlighted_words": [
"all-in-one software designed to track keywords"
],
"sitelinks": {
"inline": [
{
"title": "Download",
"link": "https://www.link-assistant.com/rank-tracker/download.html"
},
{
"title": "YouTube rank tracker tool",
"link": "https://www.link-assistant.com/rank-tracker/youtube-rank-checker.html"
},
{
"title": "Local Rank Tracker Tool",
"link": "https://www.link-assistant.com/rank-tracker/local-rankings.html"
},
{
"title": "SERP Checker",
"link": "https://www.link-assistant.com/rank-tracker/serp-analysis.html"
}
]
},
"favicon": "data:image/png;base64,..."
},
{
"position": 3,
"title": "Pro Rank Tracker: SEO Agency Rank Tracking & Reporting Tool",
"link": "https://proranktracker.com/",
"source": "Pro Rank Tracker",
"domain": "proranktracker.com",
"displayed_link": "https://proranktracker.com",
"snippet": "Discover ProRankTracker - the best SEO rank-tracking and reporting tool for SEO professionals and agencies.",
"snippet_highlighted_words": [
"SEO rank-tracking and reporting tool"
],
"favicon": "data:image/png;base64,..."
},
{
"position": 4,
"title": "Rank Tracker by Ahrefs: Track Keyword Rankings Globally",
"link": "https://ahrefs.com/rank-tracker",
"source": "Ahrefs",
"domain": "ahrefs.com",
"displayed_link": "https://ahrefs.com › rank-tracker",
"snippet": "Ahrefs' Rank Tracker tracks keywords on desktop and mobile, across 190+ locations. Compare your visibility to competitors and fill in Google's missing ...",
"snippet_highlighted_words": [
"tracks keywords on desktop and mobile, across 190+ locations"
],
"favicon": "data:image/png;base64,..."
},
{
"position": 5,
"title": "Rank Tracker: Real-time Keyword Ranking Data",
"link": "https://nightwatch.io/rank-tracker/",
"source": "Nightwatch",
"domain": "nightwatch.io",
"displayed_link": "https://nightwatch.io › rank-tracker",
"snippet": "Nightwatch's rank tracker helps you see how different keyword segments perform in search to locate your customers.",
"snippet_highlighted_words": [
"rank tracker helps you see how different keyword segments perform"
],
"favicon": "data:image/png;base64,..."
}
]
}