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…
You cannot assume a Search Console performance report is current or complete only because BigQuery holds rows for it. Google exports data daily, but it does not publish at a fixed hour, and it can deliver the site-level and URL-level tables at different times. Search Console also revises some previously exported dates.
Before you publish a report, check when Google successfully exported each source table. Look for missing dates and later revisions, verify the search type and report filters, and aggregate rows at the level your report needs. Because Google does not promise a fixed delivery hour or a universal point when recent data becomes final, you need to set a freshness cutoff and explain it in the report.
Start with Search Console’s export status and the ExportLog table in BigQuery. The export status shows the latest export attempt, while ExportLog records successful exports along with the table name, data date, version, and publication time. Because Google does not record failed attempts in the log, a missing entry tells you there is a gap to investigate without telling you why it happened. Check Search Console’s status details or Cloud Logs for errors, as Google describes in its export monitoring guidance.
Google schedules exports once per day, but the publication time varies, and it can export the site-level and URL-level tables separately. In ExportLog, both data_date and publish_time use Pacific Time. A recent date in one table does not mean both tables are up to date. Google also notes that the first export after setup can take up to 48 hours, which applies only to initial setup and does not guarantee daily freshness. For field details, see the table and export log reference.
Review the log across your full reporting period instead of looking only at the newest date:
SELECT
namespace,
data_date,
epoch_version,
publish_time
FROM <code>project_id.dataset_id.ExportLog
WHERE agenda = 'SEARCHDATA'
AND data_date BETWEEN @start_date AND @end_date
ORDER BY data_date DESC, namespace, publish_time DESC;
Replace project_id and dataset_id with your own destination values. Compare the dates for every table your report uses against the dates you expect. BigQuery can hold the latest date even when an earlier date is missing. If you find a missing date, check the export status and Cloud Logs before you decide whether to exclude that date from the report or wait for Google to recover it.
ExportLog shows which exports Search Console recorded as successful, but you should also check the data table itself for rows on the expected dates and confirm that its date range matches your report. A daily row count helps you spot an empty date or an unexpected drop, though it does not prove the data is complete.
SELECT
data_date,
COUNT(*) AS row_count,
SUM(impressions) AS impressions,
SUM(clicks) AS clicks
FROM <code>project_id.dataset_id.searchdata_site_impression
WHERE data_date BETWEEN @start_date AND @end_date
GROUP BY data_date
ORDER BY data_date;
Search Console can revise data it previously exported when it corrects a processing problem. The epoch_version value in ExportLog starts at 0 and increases each time Search Console updates data for the same table and date. When a higher version appears, replace or rebuild the data for that table and date in your downstream reports. If your pipeline only appends new rows, it will mix old and revised data together. Google describes these updates as atomic for a date, meaning Search Console updates that date’s data in a single commit.
Treat a missing log entry as a reason to investigate, because Google retries some failed exports and eventually stops. Google says it retains failed-day data for about a week and may stop the bulk export after about a month of failed attempts. Those timeframes are approximate, so they do not guarantee that Google will recover a specific missing date. For more on gaps and retries, see validating export partitions and retries.
Your report covers the right slice of data only when your query filters match the report definition. Write down the Search Console property (the site or URL prefix you are measuring), the source table, the date range and time zone, the search type, and any dimension filters, then check those conditions in your SQL. Google aggregates searchdata_site_impression at the property level, while searchdata_url_impression holds data for individual URLs. Because the two tables answer different questions, do not combine their totals.
Check the actual values stored in search_type before you copy a filter from an example. Google’s field reference and sample queries use different capitalization, and the documentation does not settle which one to expect. Google also announced in November 2026 that web multimodal performance data would become available in BigQuery for properties with bulk export enabled. Because the available search types can change, inspect the values in your own table instead of assuming an older list is complete. For background on identifying a report’s type, see how to identify a Search Console search type.
SELECT
search_type,
COUNT(*) AS rows,
SUM(impressions) AS impressions,
SUM(clicks) AS clicks
FROM <code>project_id.dataset_id.searchdata_site_impression
WHERE data_date BETWEEN @start_date AND @end_date
GROUP BY search_type
ORDER BY impressions DESC;
Once you confirm the stored search_type value, use it consistently in your report query. Also check that site_url matches the property you want, since domain properties and URL-prefix properties use different identifiers. If your query filters by country, device, URL, query, or search appearance, verify that each filter belongs in the report.
The bulk export omits anonymized query detail. If your query drops rows with an empty query string, your totals will leave out part of the performance data. When you compare BigQuery results with the Search Console interface or API, make sure the property, dates, aggregation level, search type, and filters all match. Even then, Google notes that API results are subject to internal limits and may not include every row, so differently scoped sources will not always match row for row. See Google’s bulk export description and Search Analytics API reference.
The exported tables can contain repeated keys, where multiple rows share the same combination of dimensions. Sum clicks and impressions across all rows that match your report’s dimensions before you calculate any rates. For click-through rate (CTR), divide total clicks by total impressions instead of averaging row-level CTR values.
SELECT
data_date,
SUM(impressions) AS impressions,
SUM(clicks) AS clicks,
SAFE_DIVIDE(SUM(clicks), SUM(impressions)) AS ctr
FROM <code>project_id.dataset_id.searchdata_site_impression
WHERE data_date BETWEEN @start_date AND @end_date
AND site_url = @site_url
AND search_type = @observed_search_type
GROUP BY data_date
ORDER BY data_date;
Plug in the exact search_type value you observed in the table. For a URL-level report, query searchdata_url_impression and include the URL dimensions your report needs. Google’s query guidelines and examples also explain how to aggregate position: sum the position values, divide by summed impressions, and add 1 because Search Console stores position as a zero-based number. For more on preserving these calculations, see Search Console aggregation logic in BigQuery.
Once you have checked the export status, log entries, table rows, revisions, and query scope, choose the latest date your report will treat as complete. Base that cutoff on successful exports for every required table and on your own reporting policy. Because Google does not define a universal delay after which recent data becomes final, document the cutoff as your own operational rule.
For each report run, record the property, table, date window, search type, filters, and cutoff you used. When Search Console publishes a higher epoch_version for a date you already reported, refresh that date’s slice and update any reports that depend on it.
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