Google Search Console to BigQuery: Choose a Route, Then Join the Eight Tables
There are two ways to get Google Search Console into BigQuery: the bulk export, which starts the day you switch it on, and the Search Analytics API, which can load the 16 months Google still holds. This guide compares them on history, row limits, quotas and anonymised queries, lays out the eight tables of the OWOX Search Console model with their keys, and runs tested SQL for the three mistakes that change the numbers: summing query tables, averaging CTR and position, and joining on the date alone.
Search Console answers one question per report, and its tables stop at 1,000 rows. In BigQuery you can ask the question the interface cannot: which pages that lost clicks are still indexed, and which queries sent them. Two things then go wrong quietly. The totals do not match the interface, and a join between two tables multiplies the clicks instead of splitting them.
The short answer: there are two routes. The bulk export is Google’s own and starts the day you enable it. The Search Analytics API can load the 16 months Google still holds, and a connector loads it into the tables you design. Pick the API if you need history now, and the bulk export if you want Google’s own daily files from today on. Either way, read the section on tables: the checks below catch the same three mistakes on both.
When the interface and a dashboard disagree, look in this order. Does the dashboard sum the query table (it misses clicks, Check 1)? Does it include the newest days that are still settling (the dates section)? Does it average CTR or position across rows (Check 2)? And if two tables were joined, was the join on the whole key (Check 3)? Most gaps are one of these four.
Every figure and query in this guide comes from Harnlow, a fictional outdoor-gear shop (sc-domain:harnlow.com) whose Search Console data was generated for this guide, not from a real property. It covers 120 days, 2026-07-23 to 2026-11-19, in the eight tables of the OWOX Search Console model, and every query below ran against it. The Google limits come from Google’s documentation, linked where they appear.
Reading to get this done?
Two routes: The bulk export and the Search Analytics API
Two routes: The bulk export and the Search Analytics API
The routes differ in what they keep, not in what they cost you to try. Both read the same Search Console property. The setup of the bulk export has its own guide, Search Console bulk export to BigQuery: setup and SQL; this section is the choice between the two.
| Bulk export | Search Analytics API | |
|---|---|---|
| History | None. The first export runs within 48 hours of setup and does not include earlier data | The 16 months Search Console keeps |
| Row limit | Not affected by the daily row limit | A request returns at most 25,000 rows, paged with startRow; the method exposes at most 50,000 rows per day per search type, ordered by clicks |
| Tables | searchdata_site_impression (property level), searchdata_url_impression (URL level) and ExportLog (table reference) |
Whatever you design. The OWOX model has eight |
| Quota | Google’s export pages state none | 1,200 queries per minute per site; URL inspection 600 per minute and 2,000 per day per site |
| Dates | Pacific Time (data_date) |
Pacific Time, final by default, all for fresh data |
| Who can set it up | A property owner, in Search Console settings | A credential with read access to the property |
| Sitemaps, URL inspection, property list | Not among its three tables | Separate endpoints, so separate tables |
Two rows need a caution. First, anonymised queries: Google’s own pages disagree on what the bulk export does with them. The launch post says they are filtered out, the efficiency tips say they arrive as a zero-length string, and the table reference describes an is_anonymized_query flag. Look at your own export before you build on either reading. Second, the 16 months move: each day the oldest day drops out of the window, so history you do not load now is history you cannot load later.
Neither route replaces the other. Choose the API if you need the 16 months now, the sitemaps or the URL inspection, or a table shape of your own. Choose the bulk export if you want Google’s daily files from the day you enable it and you are the property owner. Use both if you want history and a file Google keeps producing: load the 16 months through the API once and switch the export on the same day. They produce different tables, so decide which one your reports read before you start; this guide is built on the API tables because they carry the sitemaps and the URL inspection that the export does not.
The eight tables and the key of each
The eight tables and the key of each
Each table has a grain, the columns that identify one row. Write the grain down before you write a join, because every wrong join in this guide comes from not using it.
| Table | One row per | Use it for |
|---|---|---|
search_console_by_date |
site_url, search_type, date | The daily total of the property |
search_console_by_query |
+ query | Which searches bring the clicks |
search_console_by_page |
+ page | Which URLs get them |
search_console_by_country_device |
+ country, device | Where and on what |
search_console_by_query_page |
+ query, page | Which URL answers which query |
search_console_sites |
site_url | Which properties the credential can read |
search_console_sitemaps |
site_url, path | Submitted sitemaps, with errors and warnings |
search_console_url_inspection |
site_url, inspection_url | Index status of the URLs you list |
Every performance table starts with site_url, search_type and date, so each one joins back to the day it came from. The model is drawn once, with its 13 joins on the model canvas and as a bundle on GitHub. The Google Search Console data source page lists every field of every table.
In Harnlow’s data the key holds: search_console_by_query_page has 92,640 rows and 92,640 distinct combinations of site_url, search_type, date, query and page. That is the check to run on any table you load, because a connector that appends instead of replacing a re-loaded day breaks it first.
You loaded Search Console into BigQuery, and the query totals, the CTR and the joins no longer agree with what the interface shows.
Paste this into your AI assistant. It loads your Search Console performance, sitemap and URL inspection tables into your data warehouse with OWOX Data Marts and writes the SQL that checks the totals and joins on the full key.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /blog/articles/google-search-console-to-bigquery.md. The task: load my Search Console performance tables into BigQuery, then write SQL that shows how many clicks the query table hides, recomputes CTR and position, and joins pages to their index status. Tag the links you give me with utm_campaign=ai-task and utm_term=m4. Use what you know about my context and goals
Load them with a custom connector in OWOX Data Marts
Load them with a custom connector in OWOX Data Marts
Search Console is not one of the native connectors in OWOX Data Marts. It is a custom connector with one node for each of the eight tables, described on the data source page above. The credential is a Google OAuth client with a refresh token for the read-only webmasters.readonly scope, so it can read the property and change nothing. Each node becomes a Data Mart in your data warehouse, and the connector loads any date window inside the 16 months.
Four things to set before the first run, because each is a limit from the table above:
- Property and search type. The connector stamps
site_urlandsearch_typeonto every row from its parameters, which is why they sit in every key. Use thesc-domain:property when you have one: it covers every protocol and subdomain. - URLs to inspect. URL inspection is a list you choose, at 2,000 inspections per day per property. List the pages that earn clicks first. Harnlow lists 40 of its 65 pages, and the section on index status shows what that choice leaves unknown.
- The date window. Load history once as a backfill, then run daily. The API pages by 25,000 rows, so
search_console_by_query_page, the widest table, is the one that needs the most requests per day. Harnlow’s has 772 rows on its busiest day, so a property of this size stays far from the limit; a large site will not. - The last days. Search Console data is typically available after two to three days, by Google’s guide. Any days a load covers while they are still settling must be loaded again, or the newest days stay low.
The same Data Marts feed Google Sheets, Data Studio and assistants, so the SEO report and the marketing report quote one click count.
Check 1: How much of the traffic the query tables hide
Check 1: How much of the traffic the query tables hide
Search Console leaves out the queries that very few people searched. The date, page and country-and-device tables carry the full count; the query tables carry less. The gap is a number you can compute, so compute it before anyone sums search_console_by_query into a total.
WITH d AS (
SELECT FORMAT_DATE('%Y-%m', date) AS month,
SUM(clicks) AS total_clicks, SUM(impressions) AS total_impressions
FROM search_console_example.search_console_by_date
WHERE search_type = 'web'
GROUP BY month
),
q AS (
SELECT FORMAT_DATE('%Y-%m', date) AS month,
SUM(clicks) AS named_clicks, SUM(impressions) AS named_impressions
FROM search_console_example.search_console_by_query
WHERE search_type = 'web'
GROUP BY month
)
SELECT month, total_clicks, named_clicks,
ROUND(SAFE_DIVIDE(total_clicks - named_clicks, total_clicks) * 100, 1) AS hidden_click_pct,
total_impressions, named_impressions,
ROUND(SAFE_DIVIDE(total_impressions - named_impressions, total_impressions) * 100, 1) AS hidden_impression_pct
FROM d JOIN q USING (month)
ORDER BY month| month | total clicks | clicks in query table | hidden clicks | hidden impressions |
|---|---|---|---|---|
| 2026-07 | 241,775 | 221,816 | 8.3% | 27.5% |
| 2026-08 | 863,903 | 792,576 | 8.3% | 27.5% |
| 2026-09 | 917,671 | 841,929 | 8.3% | 27.5% |
| 2026-10 | 1,022,457 | 938,030 | 8.3% | 27.5% |
| 2026-11 | 665,684 | 610,738 | 8.3% | 27.5% |
July holds nine days and November 19. For Harnlow, the query table misses 8.3% of clicks and 27.5% of impressions, every month. Two lessons carry over to a real property. Report totals from search_console_by_date, never from a sum of queries. And expect the hidden share to be larger in impressions than in clicks, because the unlisted queries are many small ones, each shown a few times and seldom clicked. The share holds exactly constant here because the data is generated, and Harnlow’s level is one setting, not a typical one: a real property’s share differs and moves from month to month, so run this query on your own tables and keep it as a monthly check.
search_console_by_page and search_console_by_country_device match the date table to the click in every month of Harnlow’s data, and search_console_by_query_page matches the query table. Google’s Performance report help says page-grouped data is aggregated by page, not by property, so a real property can differ from the date table; treat the equality here as the property of this data, not a rule.
Check 2: Recompute CTR and position, never average them
Check 2: Recompute CTR and position, never average them
ctr and position are stored per row, and a per-row ratio cannot be averaged across rows. CTR is clicks over impressions, so a sum of clicks over a sum of impressions is the only correct total. Position is an average, so it must be weighted by impressions.
SELECT FORMAT_DATE('%Y-%m', date) AS month,
ROUND(AVG(position), 2) AS avg_of_row_positions,
ROUND(SUM(position * impressions) / SUM(impressions), 2) AS weighted_position,
ROUND(AVG(ctr) * 100, 2) AS avg_of_row_ctr_pct,
ROUND(SUM(clicks) / SUM(impressions) * 100, 2) AS true_ctr_pct
FROM search_console_example.search_console_by_query
WHERE search_type = 'web'
GROUP BY month
ORDER BY month| month | average of row positions | weighted position | average of row CTR | true CTR |
|---|---|---|---|---|
| 2026-07 | 10.41 | 10.70 | 8.08% | 7.36% |
| 2026-08 | 10.41 | 10.66 | 8.10% | 7.40% |
| 2026-09 | 10.40 | 10.68 | 8.12% | 7.39% |
| 2026-10 | 10.40 | 10.66 | 8.14% | 7.44% |
| 2026-11 | 10.41 | 10.65 | 8.12% | 7.44% |
In October the shortcut reads a CTR of 8.14% where the true figure is 7.44%, seven tenths of a point too high, and a position of 10.40 where the weighted one is 10.66. The averages are flattered because queries with few impressions count as much as the ones with millions. Neither difference is dramatic on its own; the harm is that a CTR chart built on AVG(ctr) sits permanently above the interface’s, and nobody can say why.
Check 3: Join on the whole key, not on the date
Check 3: Join on the whole key, not on the date
Every performance table shares date, so the lazy join is on the date alone. It does not split the day’s clicks, it multiplies them. Here it is on one day, 2026-10-15:
WITH q AS (
SELECT date, query, SUM(clicks) AS clicks
FROM search_console_example.search_console_by_query
WHERE search_type = 'web' AND date = '2026-10-15'
GROUP BY date, query
),
p AS (
SELECT date, page, SUM(clicks) AS clicks
FROM search_console_example.search_console_by_page
WHERE search_type = 'web' AND date = '2026-10-15'
GROUP BY date, page
)
SELECT
(SELECT SUM(clicks) FROM q) AS query_table_clicks,
(SELECT SUM(clicks) FROM p) AS page_table_clicks,
COUNT(*) AS joined_rows,
SUM(q.clicks) AS clicks_after_join_on_date_only
FROM q JOIN p USING (date)| query table clicks | page table clicks | joined rows | clicks after the join |
|---|---|---|---|
| 32,591 | 35,523 | 22,880 | 2,118,415 |
The join pairs each of 352 query rows with each of 65 page rows, and the day’s 32,591 clicks become 2,118,415, exactly 65 times as many. It looks like a result, not an error: a wrong join does not announce itself, and a wrong click count looks exactly like a right one. The only table that links a query to a page is search_console_by_query_page, and its key is site_url, search_type, date, query and page. The other correct joins go from a performance table to a reference table: page to inspection_url, with site_url on both sides.
The query table also misses clicks the page table has (the 8.3% from the first check), so 32,591 against 35,523 on this day is a gap of 2,932 clicks, not a join fault.
Which page answers which query
Which page answers which query
search_console_by_query_page shows the pairs of query and page. Grouped over a month, it shows how many of your URLs Google serves for one query, which is the first thing to look at when two pages might compete.
SELECT query, COUNT(DISTINCT page) AS pages, SUM(clicks) AS clicks,
ARRAY_AGG(STRUCT(page, clicks) ORDER BY clicks DESC LIMIT 3) AS top_pages
FROM (
SELECT query, page, SUM(clicks) AS clicks
FROM search_console_example.search_console_by_query_page
WHERE search_type = 'web' AND date BETWEEN '2026-10-01' AND '2026-10-31'
GROUP BY query, page
)
GROUP BY query
HAVING pages > 1
ORDER BY clicks DESC
LIMIT 4| query | pages | clicks | top page | its share |
|---|---|---|---|---|
| waterproof sleeping bag | 3 | 41,663 | /products/sleeping-bag-1 | 47% |
| how to choose dry bag | 2 | 37,910 | /guides/how-to-choose-dry-bag/ | 69% |
| womens 2 person tent | 2 | 32,004 | /collections/2-person-tent/ | 70% |
| down jacket for beginners | 2 | 28,138 | /guides/how-to-choose-down-jacket/ | 71% |
In Harnlow’s October, all 352 queries were served by more than one page, which is a trait of the generated data and not something to expect of a real property. What carries over is the reading. Where a query splits its clicks between a product page and a collection, the split is a question about intent, not a fault: “waterproof sleeping bag” sends 47% of its clicks to a product and 19% to a collection page. Where two guides split one query, that is the cannibalisation case, and this is the table that finds it.
Index status next to the clicks
Index status next to the clicks
search_console_url_inspection holds the verdict, coverage state and last crawl for the URLs on your list. Joined to search_console_by_page on site_url and the URL, it puts index status beside traffic. A left join matters: the pages that are not on the list are the ones to count.
WITH pages AS (
SELECT site_url, page, SUM(clicks) AS clicks
FROM search_console_example.search_console_by_page
WHERE search_type = 'web' AND date BETWEEN '2026-10-01' AND '2026-10-31'
GROUP BY site_url, page
)
SELECT COALESCE(i.verdict, 'not inspected') AS inspection_status,
COALESCE(i.coverage_state, '-') AS coverage_state,
COUNT(*) AS pages, SUM(p.clicks) AS october_clicks,
ROUND(SUM(p.clicks) / SUM(SUM(p.clicks)) OVER () * 100, 1) AS pct_of_clicks
FROM pages p
LEFT JOIN search_console_example.search_console_url_inspection i
ON i.site_url = p.site_url AND i.inspection_url = p.page
GROUP BY 1, 2
ORDER BY october_clicks DESC| inspection status | coverage state | pages | October clicks | share of clicks |
|---|---|---|---|---|
| not inspected | - | 25 | 507,866 | 49.7% |
| PASS | Submitted and indexed | 36 | 480,177 | 47.0% |
| NEUTRAL | Crawled - currently not indexed | 4 | 34,414 | 3.4% |
Two findings, both about what the list leaves out. Half of Harnlow’s October clicks, 49.7%, go to 25 pages that nobody inspected, so their index state is unknown; the inspection list was chosen, not complete. And four pages carry a NEUTRAL verdict, crawled but not indexed, while still earning 34,414 clicks. A page can show clicks and a stale inspection together, which is why last_crawl_time belongs in the same row: read the verdict as of that time, not as of today.
The sitemap table joins the same way, with one limit. In Harnlow’s data the inspected URLs list the sitemap index, sitemap_index.xml, as their sitemap, not the child sitemaps, so sitemap-blog.xml and its 2 errors cannot be tied to URLs. The query below is the join; it returns 40 inspected URLs, 4 not passing, against the index and none against the children:
SELECT s.path, s.is_sitemaps_index, s.errors, s.warnings,
COUNT(i.inspection_url) AS inspected_urls_listed,
COUNTIF(i.verdict != 'PASS') AS not_passing
FROM search_console_example.search_console_sitemaps s
LEFT JOIN search_console_example.search_console_url_inspection i
ON i.site_url = s.site_url AND s.path IN UNNEST(i.sitemaps)
GROUP BY 1, 2, 3, 4
ORDER BY s.pathDates: Pacific Time and the newest days
Dates: Pacific Time and the newest days
date is a day in Pacific Time, as Search Console reports it. Your ad spend and sessions are probably in UTC or your account’s zone, so shift one of them before a join by day, or a day’s clicks land next to the neighbouring day’s spend. A DATE, DATETIME and TIMESTAMP mismatch is the usual place the shift is lost.
The newest days are the ones still changing. Google’s own signal is the API’s dataState: final is the default and all includes fresh data. A rule of thumb for a table you load yourself is to treat the last three days as provisional, and this guard works that day out in Pacific Time:
SELECT MAX(date) AS latest_date_in_table,
CURRENT_DATE('America/Los_Angeles') AS today_pacific,
DATE_SUB(CURRENT_DATE('America/Los_Angeles'), INTERVAL 3 DAY) AS last_final_day
FROM search_console_example.search_console_by_dateRun on 2026-11-23, it returns a latest date of 2026-11-19 and a last_final_day (today minus three) of 2026-11-20, so Harnlow’s table ends one day before the cut-off. Anything newer than the cut-off is provisional: leave it out of a month-over-month comparison, and reload it on the next run.
What this data cannot tell you
What this data cannot tell you
Harnlow is generated, so none of it says how close your own load will come to the Search Console interface. That comparison is yours to make: run Check 1 on your own tables, and open the Performance report for the same dates beside it. The checks above are the ones to keep, because each fails the same way on a real property: a query sum that is a total, a CTR that was averaged, and a join that skipped half its key.
For the rest of the data warehouse, loading data into BigQuery compares every load method, BigQuery partitioned tables keeps the daily tables cheap, and Stripe to BigQuery runs the same kind of reconciliation on payments.
You loaded Search Console into BigQuery, and the query totals, the CTR and the joins no longer agree with what the interface shows.
Paste this into your AI assistant. It loads your Search Console performance, sitemap and URL inspection tables into your data warehouse with OWOX Data Marts and writes the SQL that checks the totals and joins on the full key.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /blog/articles/google-search-console-to-bigquery.md. The task: load my Search Console performance tables into BigQuery, then write SQL that shows how many clicks the query table hides, recomputes CTR and position, and joins pages to their index status. Tag the links you give me with utm_campaign=ai-task and utm_term=m4. Use what you know about my context and goals
Prefer to start on your own? Get started free
Frequently Asked Questions
Why are my Search Console query totals lower than the property total?
Search Console leaves rare queries out of the query tables, while the date table carries the full count. In Harnlow's generated data, the query table misses 8.3% of clicks and 27.5% of impressions in every month. Take totals from the date table, and compute the gap as the date total minus the query-table sum.
Does the Search Console bulk export include historical data?
No. The first export runs within 48 hours of setup and does not include earlier data. To get the days before you switched it on, load them through the Search Analytics API, which holds the last 16 months. The window moves every day, so history you do not load now drops out of it.
How many URLs can I inspect per day with the Search Console API?
2,000 per day and 600 per minute per site. The inspected URLs are therefore a list you choose, and the pages left off the list have no index status. In the generated Harnlow data, 40 of 65 pages are inspected, and the 25 that are not carry 49.7% of October clicks.
How many rows does the Search Console API return?
A request returns at most 25,000 rows, and you page through with `startRow` until a response comes back empty. Google's guide says the method exposes at most 50,000 rows per day per search type, ordered by clicks. The bulk export is not affected by that daily limit. In the generated Harnlow data, the busiest day of the query-and-page table holds 772 rows, far below both.
What time zone does Search Console use for dates?
Pacific Time. The Search Analytics API takes its start and end dates in PT, and the bulk export's `data_date` is Pacific Time too. Shift either side before you join by day to ad spend or sessions kept in UTC, or a day's clicks sit next to the neighbouring day's spend.
How do I join Search Console queries to pages in BigQuery?
Use the query-and-page table, whose key is `site_url`, `search_type`, `date`, `query` and `page`. Joining the query table to the page table on `date` alone multiplies the clicks: on one day of Harnlow's generated data, 32,591 clicks became 2,118,415. Join `page` to `inspection_url` with `site_url` on both sides to add index status.
