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…
When a Search Console report label changes or an exported row looks ambiguous, you can rely on the search type field to see which Google search area displayed the result. In the Performance report, Search Console assigns Image to results that appeared in the Google Images tab and Video to results that appeared in the Google Videos tab. If you keep this field in your exports, you can separate the two streams consistently over time.
Search Console also tracks search appearance, a separate field that describes a visual feature shown alongside a result. A video can show up in general Web results, for instance. In that case, Search Console records Videos as the appearance while keeping Web as the search type. Use search type to classify the stream, and store appearance fields in their own columns.
Before you export from the Search results Performance report, open the Search type filter and choose Image or Video. Google’s Performance report documentation ties each type directly to the tab where the result appeared. If a report label is unclear, check the active filter and the table dimensions instead of guessing the stream from the report title or the content on the page.
When you query the API, set the type parameter to image or video. Google’s Search Analytics API reference uses type as the search-type filter. When you work with BigQuery bulk exports, read the search_type column to classify each row: map IMAGE to Image search and VIDEO to Video search, and leave WEB as Web search even when the result contains a video.
Search Console also separates searches started with an image from searches in the Image tab. Google documents these as Web multimodal searches, where someone uses an image as the query input. Using an image to search does not make that row an Image search result. The API documentation lists webMultimodal separately from image, while the bulk-export field reference does not state how BigQuery represents multimodal rows. Inspect your export schema and the actual values in search_type before you assign those rows to a reporting category.
Google uses the Videos search appearance to mark videos that appear in Web results or Discover, rather than traffic from the Video tab. In BigQuery bulk exports, the is_video flag captures this appearance. If a row has search_type = WEB and is_video = true, count it under Web search in a stream report, and include it in a separate video-appearance report if you track features. Google outlines this distinction in its search appearance documentation.
Store the search-type field and any appearance flags in separate columns in your downstream tables. Do not substitute is_video for search_type, and do not assume a general image-appearance flag represents traffic from the Image tab. Only the Image search type identifies that stream. Also keep in mind that a Pages row in Image search records the landing page a person visited after clicking the result, which is not necessarily the image file URL, as Google notes in its Performance report details.
Keep the original search-type value alongside a separate reporting column derived from it. When you preserve the raw value, you can audit your classification later and catch new search types without accidentally lumping them into Image or Video. Normalize capitalization as well, since Google’s table reference and sample queries do not always use the same casing.
This BigQuery query keeps the raw value while creating a stable stream label:
SELECT
data_date,
UPPER(search_type) AS source_search_type,
CASE
WHEN UPPER(search_type) = 'IMAGE' THEN 'image_search'
WHEN UPPER(search_type) = 'VIDEO' THEN 'video_search'
ELSE 'other'
END AS search_stream,
SUM(impressions) AS impressions,
SUM(clicks) AS clicks
FROM <code>project_id.searchconsole.searchdata_site_impression
WHERE UPPER(search_type) IN ('IMAGE', 'VIDEO')
GROUP BY data_date, source_search_type, search_stream
ORDER BY data_date, search_stream;
That query reads from the property-level impression table. If you need page-level reporting, query the URL-level table instead and add its URL dimension to the GROUP BY clause. Google’s bulk-export guidance recommends aggregating metrics and notes that the two tables aggregate data differently, so do not add their totals together as though they represent separate traffic.
Each export method also has row limits that affect how much data you pull. The Search Console web interface exports up to 1,000 representative rows, even though the report totals can reflect more data than those rows contain. The Search Analytics API returns up to 25,000 rows per request and up to 50,000 rows per day per search type, so you need to paginate your requests and stay within the daily cap. Google covers these caps in its documentation on report exports and API export limits.
When you rely on BigQuery bulk exports, save the export date and check the export log to confirm that each daily delivery succeeded. Google documents an epoch_version value that increments when previously exported data changes. If you see that version increase for a date you already loaded, reprocess or replace that date partition in your downstream tables.
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