
Website chatbots and the AI Act: what a small business should do
5 November 2026 • AI · Websites

How to give an AI agent access to Search Console data through a service account, what the API can do, what still has to be done by hand and how to protect the key.
An AI agent can keep an eye on how a website is doing in Google. To do that it needs access to Search Console, Google's tool for search and indexing data. Our agent gets that access through a service account in Google Cloud. We work this way on our own website, so this article covers how to set it up, what the API can do and what it cannot. It ends with safeguards, because the agent is handed a key to company data.
It is written for website owners who want to know what they are agreeing to. Technical readers will find the API's scope and limits here too. The agent could be Claude Code or Codex, for example. What an agent is and when it helps is covered in AI agents in a company.
A service account is an account for a program rather than a person. It has its own email address and signs in without anyone present. An agent on an ordinary computer can sign in with a key for that account. The key is a file holding a private key, and you can download it only once.
Treat that key with care. Google says having it is similar to knowing a user's password, because whoever holds it acts as the account. By default, keys never expire. In Google Cloud organisations created on or after 3 May 2024, an organisation policy blocks key creation by default. If key creation is refused, that policy may be the reason.
Setting it up takes a few steps:
That is how we granted access. Without the last step, the API shows the agent no property at all.
According to Search Console Help, a restricted user can view most data but cannot submit a sitemap. A full user can view all data and submit sitemaps, but cannot add other users. An owner has full control of the property. A service account does not need the owner role for reports or for sitemaps.
The second layer is the scope a program asks for when it signs in. The API has two scopes, read-only and read/write. Our script asks for write access only when it submits a sitemap. Every read uses the read-only scope.
The API reference lists four areas:
The URL inspection API only reports the version stored in the index and cannot test a live URL.
For a small website the limits are generous. URL inspection allows 2,000 requests a day and 600 a minute per property. On a shop with thousands of products, the agent has to spread checks over several days or pick the most important addresses. Search data has its own load limits. Requests grouped by both page and query weigh the most, and so do long date ranges.
This is how we use it. When our new website launched, the agent checked all 38 addresses in the sitemap and recorded a baseline of search data. That record is there to compare against after a week and after 28 days. After every deployment, the agent sends the updated sitemap to Google.
We take these steps by hand in the interface. Sometimes we submit new and changed addresses there, sometimes we leave it to the sitemap. Either way, Google decides when to visit. Its documentation says this takes anywhere from a few days to a few weeks, with no guarantee that the address will appear in results.
Other Google services that accept a service account can be connected in a similar way. With Search Console alone, you could build:
A task like this starts with reading only. Write access comes later, once the results have been checked and someone at the company is responsible for them.
This describes the position on 7 November 2026. If you would like Search Console data to reach your reports without copying it by hand, tell us what they should show.
This article was written with the help of AI. We also used AI to compare its facts with the listed sources.
A few sentences are enough. We usually reply within 24–48 hours.
Contact us