BigQuery SQL for Search Console Image and Video Exports
When you report page-level results from Google Search Console’s Image and Video tabs, you query searchdata_url_impression and filter search_type to image or…
Google Search Console’s Performance report often shows more clicks and impressions in its chart than you see when you add up the query rows below it. Three different mechanisms can create that gap. Google withholds the text of some rare searches for privacy, Search Console caps how many rows a report or request returns, or a filter or partial download through the API (the interface software uses to pull data) leaves out rows that Google would otherwise send.
A hidden query still contributes metrics in some views, even though Google never shows its search text. A row that is missing from one view, however, might still appear in another report or in a fuller API pull. Before you assume Google hid queries for privacy, match the property, date range, search type, breakdowns (such as queries), and filters across your views, then confirm that you fetched every available page. Even when you do all of that, Search Console still does not guarantee that every query row is available.
Google calls searches whose text it hides for privacy anonymized queries. Search Console omits their text from the Performance report table and from Search Analytics API results, though their clicks and impressions can still count toward an unfiltered chart total. If you add a query filter, Search Console excludes anonymized queries altogether, so filtering by query text will never uncover those hidden searches. Google’s troubleshooting guidance explains why chart totals can exceed the visible query rows.
Row limits also cut off results. The Search Console table displays up to 1,000 rows, while a single API request can return up to 25,000 rows in a request. You can ask the API for more than its 1,000-row default, but Google notes that internal limits mean it does not guarantee every row. When you request additional pages, you pull more of the rows Google makes available, though you still cannot prove you have the full dataset.
Filters and partial downloads can also make a dataset look shorter than it is. If your API script sends only one request with the default 1,000-row limit, it stops before checking later pages. When you export a report from the interface, Search Console applies whatever filters and groupings are active in that view. Google states that report data is limited to 1,000 representative rows, so exporting the table does not get around the 1,000-row cap. Google’s export documentation details what the exported file includes.
| What you see | Likely explanation | What to check |
|---|---|---|
| Chart totals exceed the sum of visible query rows | Anonymized queries or omitted rows | Remove filters, then check row limits and data scope |
| The API returns exactly 1,000 rows | The request may use the default limit | Set rowLimit and request later pages |
| A filtered report has different totals from an unfiltered one | The filter changed which data the report includes | Compare identical filters and dimensions |
More than one of these factors can affect the same report. Chart totals and visible query rows alone do not tell you how much data Google hid for privacy versus how much it dropped because of limits.
Start by locking down your settings so you compare like with like. Write down the Search Console property, date range, search type, dimensions (the fields used to break down results), and filters. In the Performance report, remove all filters, select the Queries dimension, and note both the chart totals and whether the table hits its 1,000-row cap. Keep the date range in mind, too. Google says collected data is usually available after two to three days, so recent dates may still be shifting. The API returns finalized data by default, while setting dataState=all lets you pull fresher, unfinished data. Check Google’s API reference for the full list of request parameters and limits.
When you query the API, set rowLimit to the number of rows you want per response and use startRow (which counts from zero) to ask for later pages. This example asks for the first 25,000 query rows in a date range:
{
"startDate": "2026-10-01",
"endDate": "2026-10-31",
"type": "web",
"dimensions": ["query"],
"rowLimit": 25000,
"startRow": 0
}
To fetch the next page, send the same request with "startRow": 25000, and keep track of how many rows each response returns. When the API returns an empty response after your last batch of rows, you have reached the end of the available rows rather than hit an error. Keep in mind that the API’s documented daily limit is 50,000 rows per property and search type, and Google still does not guarantee that it returns every row within that limit.
Next, send a separate request with the exact same dates, property, search type, and filters, but leave out the query dimension. Treat those totals as your baseline. Comparing that baseline against your query rows will not tell you how many queries Google hid, because anonymization, row limits, internal data caps, and different groupings can all widen the gap. For more help lining up these numbers, see Reconciling Search Console API, UI, and export data.
If you turn on Search Console’s bulk export to BigQuery (Google’s cloud data warehouse), Search Console sends its available performance data to your tables while still leaving out anonymized query text. Instead, BigQuery marks those rows with an is_anonymized_query flag and leaves the query field blank. That lets you see how many clicks and impressions came from anonymized queries, though you still cannot see the search terms themselves. Google’s BigQuery export documentation covers how the export works and where its limits sit.
This example query groups an export by the anonymization flag:
SELECT
is_anonymized_query,
SUM(clicks) AS clicks,
SUM(impressions) AS impressions,
COUNT(*) AS rows
FROM <code>project.searchconsole.searchdata_site_impression
WHERE data_date BETWEEN DATE '2026-10-01' AND DATE '2026-10-07'
GROUP BY is_anonymized_query;
To build a report of visible queries, aggregate the metrics by query and filter out anonymized or blank rows:
SELECT
query,
SUM(clicks) AS clicks,
SUM(impressions) AS impressions
FROM <code>project.searchconsole.searchdata_site_impression
WHERE data_date BETWEEN DATE '2026-10-01' AND DATE '2026-10-07'
AND NOT is_anonymized_query
AND COALESCE(query, '') != ''
GROUP BY query
ORDER BY clicks DESC;
Both examples use the site-level impression table; URL-level and site-level tables track different scopes. Google also notes that export tables can contain repeated keys, so sum the metrics instead of treating each stored row as a unique query. Bulk export starts recording on the day you enable it and does not backfill earlier history. If whole dates are missing, check your export status first, because a gap in the export does not mean Google hid queries for privacy. Google’s table guidelines explain how to aggregate and query these tables.
Suppose an unfiltered report shows 100 clicks, while the visible query rows add up to 82. You cannot assume anonymized queries account for all 18 missing clicks. Row limits may have cut off some queries, or the two views may still differ in their filters, dates, or groupings. If your BigQuery table shows clicks on rows flagged with is_anonymized_query, you know the export includes anonymized traffic, even though the search terms stay hidden.
Request later pages in the API to pull rows your client has not fetched yet, and check BigQuery when bulk export is enabled to see how much traffic sits on anonymized rows. If a gap remains after you match your settings and check the limits, the totals alone cannot tell you which cause is responsible or how much each one contributed. For more on limits and pagination, see Handling Search Console export limits and pagination gaps.
Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.
Take a look at vroni.com