View Categories

How to Connect Google Search Console to Excel – Query SEO Data with SQL

7 min read

Query Streams connects Google Search Console to Microsoft Excel, turning your organic search data into live, SQL-queryable tables. Pull keyword rankings, click-through rates, impressions, and page-level search performance into Excel spreadsheets without manual CSV exports. Sign up free at QueryStreams.com and start analyzing your GSC data with SQL in minutes.

5 GSC Tables

Search analytics, top queries, pages, countries, and devices

Service Account Auth

No OAuth browser flow — paste a JSON key for headless authentication

AES-256 Encrypted

Your service account credentials stay on your network, never in the cloud

16-Month History

Access up to 16 months of GSC data beyond the standard 3-month UI limit

What Google Search Console Data Can You Access?

Query Streams syncs your GSC search performance data into SQL-queryable tables. GSC data is typically 2–3 days delayed from Google’s processing pipeline.

Search Analytics

  • search_analytics Daily clicks, impressions, CTR, and position by query
  • top_queries Top keywords with impressions and CTR metrics
  • top_pages Page-level search performance with rankings

Audience Breakdown

  • by_country Search analytics segmented by country
  • by_device Desktop, mobile, and tablet search performance

Data Note

  • GSC data has a 2–3 day processing delay from Google
  • Up to 16 months of historical data available (vs. 3 months in GSC UI)
  • Data is aggregated — individual user sessions are not tracked

Key Columns

  • query The search keyword that triggered your URL
  • clicks Number of clicks from Google Search
  • impressions Times your URL appeared in search results
  • ctr Click-through rate (clicks / impressions)
  • position Average position in search results

Prerequisites

1
Query Streams Account

Sign up free — no credit card required

2
Query Streams Network Agent

Windows service installed on your network. Install guide

3
Google Cloud Project

With the Google Search Console API enabled and a verified GSC property

4
Google Service Account

JSON key file with the service account added as a verified user in GSC

5
Microsoft Excel

With the Query Streams add-in installed from Microsoft AppSource

Setup Guide

1Install Agent
2Service Account
3Add Connector
4Sync Schedule
5Install Add-in

Step 1: Install the Query Streams Network Agent

  1. Log in to my.querystreams.com
  2. Navigate to Network Agents in the left sidebar
  3. Click Download Agent and run the Windows installer
  4. The agent installs as a Windows service and connects automatically
  5. Your agent appears as “Online” in the portal within 30 seconds

Step 2: Create a Google Cloud Service Account

  1. Go to the Google Cloud Console and create or select a project
  2. Navigate to APIs & ServicesLibrary → search for and enable Google Search Console API
  3. Go to IAM & AdminService AccountsCreate Service Account
  4. Name it (e.g., “query-streams-gsc”) and click Create and Continue
  5. Skip the optional role assignment → click Done
  6. Click on the service account → Keys tab → Add KeyCreate new keyJSON
  7. The JSON key file downloads automatically — save it securely

Grant Access in Google Search Console

  1. Go to Google Search Console and select your property
  2. Click SettingsUsers and permissions
  3. Click Add User
  4. Paste the client_email from your JSON key file
  5. Set the permission to Full → click Add

Step 3: Add the Google Search Console Connector

  1. Open the Network Agent interface at http://localhost:1823
  2. Click Add Connection and select Google Search Console
  3. Paste the contents of your Service Account JSON key (or upload the file)
  4. Select your GSC Property from the dropdown (domain or URL-prefix property)
  5. Click Next to configure sync schedules and install pre-built queries

Step 4: Configure Your Sync Schedule

Search Analytics (daily)Top queries, pages, countries, and devices — synced daily at 3–4 day lag
Initial SyncFetches up to 16 months of historical data on first run

GSC data is typically 2–3 days delayed from Google’s processing pipeline. Daily sync is ideal — syncing more frequently won’t yield new results. The initial sync pulls up to 16 months of historical data, giving you far more history than the 3-month limit in the GSC UI.

Step 5: Install the Excel Add-in

  1. Open Microsoft Excel
  2. Go to InsertGet Add-ins
  3. Search for “Query Streams” in the Office Add-ins store
  4. Click Add to install
  5. Access it via the Home tab → Query Streams button in the ribbon
  6. Sign in with your Query Streams account credentials
  7. Or install directly: Install Query Streams for Excel

You’re connected! Open Query Streams in Excel, click Saved Queries, and find your Google Search Console folder with pre-built queries for keyword rankings, page performance, click-through rate analysis, and more. Select any query and click Run to pull live GSC data into your spreadsheet.

Example Google Search Console SQL Queries

Top Keywords by Clicks (Last 30 Days)
SELECT
    query,
    SUM(clicks) AS total_clicks,
    SUM(impressions) AS total_impressions,
    ROUND(AVG(ctr) * 100, 2) AS avg_ctr_pct,
    ROUND(AVG(position), 1) AS avg_position
FROM gsc.search_analytics
WHERE date >= CURRENT_DATE - INTERVAL '30 days'
GROUP BY query
ORDER BY total_clicks DESC
LIMIT 25;
Pages Just Outside Page 1 (Position 11–20)
SELECT
    page,
    SUM(clicks) AS clicks,
    SUM(impressions) AS impressions,
    ROUND(AVG(ctr) * 100, 2) AS ctr_pct,
    ROUND(AVG(position), 1) AS avg_position
FROM gsc.top_pages
WHERE date >= CURRENT_DATE - INTERVAL '30 days'
GROUP BY page
HAVING ROUND(AVG(position), 1) BETWEEN 11 AND 20
ORDER BY impressions DESC
LIMIT 20;
High-Impression, Low-CTR Keywords (CTR Opportunities)
SELECT
    query,
    SUM(impressions) AS impressions,
    SUM(clicks) AS clicks,
    ROUND(AVG(ctr) * 100, 2) AS ctr_pct,
    ROUND(AVG(position), 1) AS avg_position
FROM gsc.search_analytics
WHERE date >= CURRENT_DATE - INTERVAL '90 days'
GROUP BY query
HAVING SUM(impressions) > 500
   AND AVG(ctr) < 0.03
ORDER BY impressions DESC
LIMIT 20;

Share SEO Reports Without Sharing GSC Access

Open any GSC query in the Query Builder → click the Sharing tab → enter email addresses → click Share. Recipients get keyword and ranking data in their Excel add-in — without access to your Google Search Console property, service account credentials, or SQL code.

Frequently Asked Questions

Can I get more than 3 months of GSC data?
Yes. The Google Search Console API provides up to 16 months of historical data. Query Streams fetches this full history on the initial sync, giving you far more data than the 3-month limit available in the GSC web interface — ideal for trend analysis, year-over-year comparisons, and seasonal reporting.
Why is my GSC data always a few days behind?
This is a Google platform limitation. GSC data processing has a 2–3 day delay before it becomes available via the API. This affects all tools that read from the Search Console API, not just Query Streams. Syncing daily accounts for this delay appropriately.
Can I connect multiple GSC properties?
Yes. Add a separate connector for each GSC property. Each property appears as a distinct data source in the query builder, so you can query and even cross-compare organic performance across multiple websites in a single SQL statement.
Can I combine GSC data with Google Analytics in the same query?
Yes. If you have both Google Search Console and Google Analytics 4 connected, you can JOIN them by page URL in a single SQL query — correlating search impressions and CTR from GSC with on-site engagement metrics like session duration and bounce rate from GA4.

Related Guides

Category: API Connectors

Tags: Google Search Console, GSC, Excel, SEO, Keywords, Rankings, SQL, Organic Search

Meta Description: Connect Google Search Console to Excel with SQL. Query keyword rankings, CTR, and impressions — 16 months of data, no CSV exports. Step-by-step guide.

Updated on June 3, 2026

Powered by BetterDocs