Services
AI Search (AEO · GEO)
AI Search OptimizationAnswer Engine Optimization (AEO)Generative Engine Optimization (GEO)ChatGPT SEOGoogle AI Overviews & AI Mode OptimizationAI Visibility Audit
Technical SEO
Technical SEO ServicesSEO AuditCore Web Vitals & Site Speed OptimizationSEO Migration & ReplatformingSchema Markup & Structured DataInternational & Multilingual SEO
Content & On-page SEO
Keyword Research & Search Intent MappingSEO Content StrategySEO Content WritingContent Refresh & OptimisationProgrammatic SEOOn-page SEO Services
Link Building & PR
Link Building ServicesDigital PR ServicesGuest Posting ServicesBacklink Audit & DisavowBrand Mentions & Digital Citations
Specialist SEO
Local SEO ServicesEcommerce SEO ServicesEnterprise SEO ServicesSaaS SEO ServicesYouTube SEOApp Store Optimization (ASO)
Strategy & Management
SEO ConsultingMonthly SEO ManagementSEO Reporting & Analytics
AI Search (AEO · GEO)
Industries SaaS SEOB2B SEOEcommerce SEOSEO for Law FirmsHealthcare SEOReal Estate SEOFintech & Finance SEOHome Services SEODental SEOEducation & EdTech SEO
Free Tools (33)
Learn GlossaryOur method
BlogPricingAboutContactFree AI visibility audit
Blog · SEO Guides

How to Check Keyword Positions with Google API in 2026

Learn how to check keyword positions with Google's APIs in 2026. Use the free Search Console API to pull real average positions per query and page.

SA
Saima AktherSEO and AEO Enthusiast
Updated 8 min read
How to Check Keyword Positions with feature image
On this pageKey takeawaysIs there a Google API for keyword positions?What do you need before you start?How do you set up the Search Console API?How do you pull keyword positions for a list of keywords?What are the Search Console API limits?What are the free vs paid Google API options?How do you turn API data into a position report?How we checkedFAQSources
Short answerGoogle has no API that returns a single rank for a keyword, but the free Search Console API does the job: its searchAnalytics.query method returns clicks, impressions and average position for every query your site ranks for. Set up a Google Cloud project, connect it to a verified Search Console property, and pull positions per query and page.

Key takeaways

  • There is no rank-check API from Google. The Search Console API is the official route, and it reports average position, not a single live rank.
  • It is free. The Search Console API costs nothing beyond a Google Cloud project, and it covers every query your verified site ranks for.
  • Data goes back 16 months. Search Console keeps 16 months of performance data, and fresh data lags by a few days.
  • Average position is an average. A query showing position 4.3 ranked across several results pages and devices, not at one fixed spot.
  • Paid APIs do not add positions. The Google Ads API gives search volume, not rankings, and the Custom Search JSON API is billed per 1,000 queries.

Is there a Google API for keyword positions?

No, Google does not offer an API that returns a keyword's current rank the way a rank tracker does. The official route is the Search Console API, which reports the average position of each query your site appeared for, together with clicks, impressions and click-through rate.

That distinction matters. A rank tracker checks one keyword on one search results page and reports a single number. The Search Console API reports the average of every impression a query earned, across pages, devices and countries. The data is real Google data for your own site, but it is not a live rank check.

If you need a single live rank for a keyword, use a keyword position tracker instead. If you need real position data for hundreds or thousands of queries at once, the Search Console API is the better tool.

What do you need before you start?

You need three things before you can pull keyword positions: a verified Search Console property, a Google Cloud project, and credentials that connect the two. Each one takes a few minutes to set up.

First, your site must be verified in Google Search Console. Only verified properties return data, and you only see queries for sites you own or have access to.

Second, you need a Google Cloud project with the Search Console API enabled. Third, you need credentials: an OAuth 2.0 client for your own use, or a service account if a script or dashboard will pull the data on a schedule.

A service account is the better choice for regular reporting. You add its email address as a user in Search Console settings, and it can then query the property without anyone signing in each time.

How do you set up the Search Console API?

You can set up the Search Console API in five steps, and the whole process takes about 15 minutes the first time.

  1. Create a Google Cloud project. Open the Google Cloud Console, create a new project, and note its name. There is no charge for the project itself.
  2. Enable the Search Console API. In the Cloud Console, open the API library, find the Google Search Console API, and enable it for your project.
  3. Create credentials. For personal use, create an OAuth 2.0 client ID. For automated pulls, create a service account and download its key file. Keep the key file private.
  4. Grant access in Search Console. If you use a service account, copy its email address and add it as a user on your Search Console property, with at least Restricted or Full permission.
  5. Make your first query. Call the searchAnalytics.query method for your property with a date range, and confirm it returns rows. If it returns an error, check the property URL and the account's permissions first.

Once the first query works, save the credentials and the property URL somewhere safe. Every later pull reuses the same setup.

How do you pull keyword positions for a list of keywords?

You pull keyword positions by asking the API for performance data grouped by query and page, then filtering the results to the keywords you care about. The API does not take a keyword list as input, so you fetch the data and filter it yourself.

  1. Choose your date range. Set a start date and an end date. Search Console keeps 16 months of data, and the most recent two or three days are usually incomplete, so end your range a few days before today.
  2. Set the dimensions to query and page. This returns one row per keyword per URL, with clicks, impressions, click-through rate and average position for each row.
  3. Add a filter for your keywords. Use a query filter to limit results to the keywords you want to track, for example all queries containing your brand name or a product term.
  4. Page through the results. The API returns a limited number of rows per call, so repeat the request with a start row offset until you have every row.
  5. Export the rows. Save the results to a spreadsheet or a database, with one row per keyword per page per date range. That file becomes your position record.

Repeat the same pull weekly with the same date ranges and filters. Comparing identical pulls over time is what turns raw API rows into a position trend.

What are the Search Console API limits?

The Search Console API is free, but it has limits on how much data you can pull and how fast you can pull it. Google sets per-project quotas in the Cloud Console, and you can see your current quota and usage there before you build a large pull.

Each query returns a limited number of rows, so a site with thousands of ranking queries needs several paged requests. The API also keeps only 16 months of history, and the newest data lags by a few days, so you cannot pull today's positions.

Average position is rounded and averaged across all impressions, which means a query that ranked first for some searches and tenth for others shows a number in between.

The API only covers your own verified properties. It returns no competitor positions, no search volume and no keyword suggestions. For those, use Search Console keyword research techniques or a keyword research tool.

What are the free vs paid Google API options?

The Search Console API is free, and it is the only Google API that returns keyword positions for your site. The other Google APIs that mention keywords do different jobs, and none of them is a rank checker.

The Google Ads API is free to use, but it needs a Google Ads account and a developer token, and its Keyword Planner data is search volume and forecasts, not positions. It tells you how many people search a term, not where your site ranks for it.

The Custom Search JSON API is a paid service billed per 1,000 queries after a small free daily allowance, and it searches a custom engine you define rather than reporting your site's rankings.

For most site owners the free Search Console API is enough. Pay for a third-party rank tracker only if you need daily live ranks, competitor positions or alerts when a keyword moves.

How do you turn API data into a position report?

A position report is a weekly table of your keywords, the page ranking for each one, and the average position, clicks and impressions. Build it from the same API pull every week so the numbers are comparable.

  1. Pull the same date range each week. Use the last 28 days, ending three days before today, so every pull covers the same window and the same data lag.
  2. Keep one row per keyword per page. If the same keyword ranks for two pages, keep both rows. Merging them hides which page is winning.
  3. Add a position-change column. Compare this week's average position with last week's and flag any keyword that moved by more than three positions.
  4. Sort by impact, not by rank. A keyword at position 11 with 2,000 impressions matters more than a keyword at position 3 with 10 impressions. Sort by impressions or clicks to find the pages worth fixing first.
  5. Send it to a dashboard. Load the weekly pull into Google Sheets or Looker Studio so the team sees the same numbers without rerunning the API call.

For a full walkthrough of acting on the results, see our guide on how to track Google rankings.

How we checked

This guide describes Google's published Search Console API as documented on developers.google.com. A live re-check of the API documentation was blocked during research by search rate limiting, so quota figures and paid-API pricing are not quoted here.

Those figures should be confirmed on Google's official documentation before you build on them. The Search Console API itself is free, and the setup steps above follow Google's published flow.

Frequently asked questions

Is the Google Search Console API free?

Yes. The Search Console API is free to use. You need a Google Cloud project and a verified Search Console property, but there is no charge for the API calls themselves. Google applies per-project quotas that limit how fast you can pull data.

Can the Search Console API show my competitors' keyword positions?

No. The Search Console API only returns data for properties you own or have access to in Search Console. It has no competitor data at all. For competitor positions you need a third-party rank tracker.

What is the difference between average position and rank?

Average position is the mean of every position your page appeared at for a query, across all impressions, devices and countries. Rank is a single spot on one search results page at one moment. A query with an average position of 4.3 may have ranked first for some searches and tenth for others.

How far back does the Search Console API go?

The Search Console API returns up to 16 months of performance data for a verified property. Data older than 16 months is not available through the API or the Search Console interface.

Why does the API return fewer keywords than the Search Console interface?

The API returns one row per query per page, and each call returns a limited number of rows. If you do not page through all the results, you only see the first set. The interface also groups some queries for privacy, so very low-volume queries may appear in the interface but not in the API.

Do I need a developer to use the Search Console API?

No, but it helps. The setup needs a Google Cloud project, credentials and an API call, which a non-developer can do by following Google's documentation. For scheduled weekly pulls and dashboards, a developer or an automation tool makes the process reliable.

Sources

SA
About the authorSaima Akther · SEO and AEO Enthusiast

Saima Akther is an SEO and AEO enthusiast who writes Serplark’s best-of lists and guides on SEO tools, answer engine optimization and AI search. Published . Spot an error or a missing tool? Tell us and we will check it.