Google Search Console
Connect your own Google Search Console and let your agent read your real search numbers: connecting an account, picking a site, clicks, impressions, CTR and position by query, page or day, and what each error means.
Connect your own Google Search Console to RouterGrowth, then let your agent read your real search numbers with the same RouterGrowth key, over REST, the CLI or MCP: the queries and pages that bring clicks, with impressions, CTR and position. This page covers connecting an account, picking a site, reading performance, several accounts in one workspace, and what each error means.
Capabilities
| Capability | What it does | Price |
|---|---|---|
searchconsole. |
Lists the Search Console connections this workspace holds, each with its live status | Free |
searchconsole. |
Connects a Google account, checks or reconnects one, or disconnects it | Free |
searchconsole. |
Lists the sites the connected Google account can read | Free |
searchconsole. |
Clicks, impressions, CTR and position for a site, by query, page, date, country or device | Free |
A connection has no monthly fee. RouterGrowth only reads: nothing here adds or removes a site, a sitemap or a user. Use inspect for each capability's current schema.
Connect an account
Run searchconsole.accounts first, so you reuse a connection that already exists, then ask for a link:
routergrowth run -c searchconsole.accounts -i '{}' --wait 30
routergrowth run -c searchconsole.account -i '{"name":"main"}' --wait 30
Open the returned connect_url and sign in with the Google account that has the site in Search Console. The approval is Google's own screen on a page hosted by Composio, the connection provider: your Google password and the access token never reach RouterGrowth, which keeps only the connection's id and the Google account's address. For now that screen asks for permission to view and manage Search Console data, because the connection provider's Google app requests both; RouterGrowth uses the read part only.
Run the same searchconsole.account call again to confirm connected: true. From then on the result names the Google account (google_account). status is OK when connected, PENDING while nobody has approved the link, and EXPIRED, FAILED, REVOKED or DISCONNECTED when the connection can no longer read: run searchconsole.account with the same name for a fresh link. Without a name, searchconsole.account reports what is already connected instead of starting a new connection.
To remove a connection:
routergrowth run -c searchconsole.account -i '{"name":"main","disconnect":true}' --wait 30
To withdraw the access on Google's side as well, remove the app under Third-party apps and services in the Google account's security settings.
Pick a site
routergrowth run -c searchconsole.sites -i '{}' --wait 30
Each site comes with its exact name (site), its type (domain for a domain property such as sc-domain:acme.com, url_prefix for one such as https://www.acme.com/) and your permission on it. A site that is not verified yet is left out, since Search Console reports nothing for it.
searchconsole.performance takes site as that exact name or as a bare domain (acme.com), which means the domain property when there is one, else the URL-prefix property on that host. You may leave site out while the connection has exactly one site.
Read performance
The queries that brought the most clicks over the last 28 days:
routergrowth run -c searchconsole.performance -i '{"site":"acme.com"}' --wait 30
Each row carries clicks, impressions, ctr (0.05 is 5%) and position (the average, 1 is the top), most clicks first. dimensions decides what a row is:
dimensions |
Each row is |
|---|---|
["query"] (the default) |
A search query |
["page"] |
A page of the site |
["date"] |
A day, for a series over time |
["query","page"] |
A query on the page that ranked for it |
["country"], ["device"] |
A country (3-letter code), a device |
[] |
The totals, as one row |
Queries on page two for the blog, ready to improve:
routergrowth run -c searchconsole.performance -i '{"site":"acme.com","dimensions":["query","page"],"filters":[{"dimension":"page","operator":"contains","expression":"/blog/"}],"days":90,"limit":500}' --wait 30
filters keeps the rows that match all of them; operator is contains (the default), equals, not_contains, not_equals, regex or not_regex. search_type is web (the default), image, video, news, discover or google_news.
Dates: pass start_date and end_date (YYYY-MM-DD), or days to count back from the end. Search Console settles a day about two days later, so the default range ends two days ago; it keeps 16 months. limit goes up to 5,000 rows a call; send offset for the next ones.
Google leaves very rare queries out of the rows to protect the people who searched, so the rows by query can add up to less than the site's totals.
Several accounts
A workspace can hold several connections, one per Google account: an agency connects each client's account under its own name.
routergrowth run -c searchconsole.account -i '{"name":"client-acme"}' --wait 30
routergrowth run -c searchconsole.performance -i '{"account_id":"client-acme","site":"acme.com"}' --wait 30
Pass account_id as the connection's name. You may omit it only while the workspace has exactly one connection; with several, a call without it is refused rather than guessing which account to read. A name is stored as lowercase letters, digits and dashes, up to 24 characters. Every member of the workspace can read through its connections.
Errors
| What you see | What it means |
|---|---|
forbidden on account_ |
The name is not a connection this workspace holds |
| "is not a Search Console property of the connection" | The Google account cannot read that site; the message lists the ones it can |
| "the Google Search Console connection is not active" | The link was never approved, or the connection lapsed: run searchconsole. with the name |
| "Google refused the connection" | The access was removed in the Google account: reconnect with searchconsole. |
| "Google refused the read" | The Google account lost its permission on the site |
no_ |
Search Console has no data for that site, range and filters |
provider_ |
Google's quota or the connection provider's rate limit: wait, then send it again |
A read that timed out is safe to send again.
Reading this as an agent? This page as markdown: /docs/search-console.md · every page: /docs/llms.txt