Sub topic 1
What AI Overviews Change on the Results Page
Prerequisites
This chapter assumes you can read Google Search Console's Performance report, including clicks, impressions, CTR (click-through rate), and average position. You should know basic Python and have the pandas library installed. You also need read access to a Search Console property and a service account key that has been added to that property.
What AI Overviews Change on the Results Page
An AI Overview is a generated summary shown at the top of a Google results page. It answers the query directly and links to sources. A page can keep its position, such as third place, and still lose clicks because the summary answers the searcher's question before they scroll. Rankings stay flat while clicks fall, so a ranking report alone can miss the effect.
Turning "Are AI Overviews Hurting Us?" Into a Measurable Question
Vague questions cannot be tested. Define three things:
- Metric: CTR for organic queries, calculated as clicks divided by impressions.
- Time window: for example, four weeks before and four weeks after the date you first saw overviews on your queries.
- Comparison group: queries that did not show overviews during the same window.
"Did CTR on exposed queries fall more than CTR on comparison queries after the change date?" is a question the data can answer.
What Search Console Does and Does Not Show About AI Features
As of this writing, the Performance report has no separate AI Overview filter or metric. Clicks from overviews are counted in the normal totals. You cannot tell which queries displayed an overview on a given day from Search Console alone. You need a SERP tracking tool or manual checks to establish exposure.
Pulling Query-Level Data With the Search Console API
The following script requests daily clicks and impressions by query and page.
import pandas as pd
from google.oauth2 import service_account
from googleapiclient.discovery import build
SCOPES = ["https://www.googleapis.com/auth/webmasters.readonly"]
creds = service_account.Credentials.from_service_account_file(
"key.json", scopes=SCOPES
)
service = build("searchconsole", "v1", credentials=creds)
body = {
"startDate": "2026-01-01",
"endDate": "2026-03-31",
"dimensions": ["date", "query", "page"],
"rowLimit": 25000,
"startRow": 0,
}
resp = service.searchanalytics().query(
siteUrl="sc-domain:example.com", body=body
).execute()
rows = resp.get("rows", [])
df = pd.DataFrame(rows)
df[["date", "query", "page"]] = pd.DataFrame(df["keys"].tolist(), index=df.index)
df = df.drop(columns=["keys"])
print(df[["date", "query", "page", "clicks", "impressions", "ctr", "position"]].head())Each row holds one date, query, and page combination. The API returns at most 25,000 rows per request. If rows has exactly 25,000 entries, more data may exist, so you must request the next page by increasing startRow.
Exercise
A request returns exactly 25,000 rows. What should you do before trusting the export?
Show answer
Send the same request again with startRow set to 25000, then keep increasing startRow by 25000 until a response returns fewer than 25,000 rows. Combine all pages into one table.