SEO

get_seo_traffic

Daily clicks and impressions from Search Console over the range, and the latest week's top queries and top pages by clicks.

readReads only. Annotated read-only, so a client can call it without asking.
Plan
Track and above
Rate cost
1 unit

Try asking

“Which pages and queries brought the most search clicks last week?”

Arguments

Passed as the tool call's arguments.

project_idstringrequired

The project to read, from list_projects.

rangeenum<string>default 90d

How far back to measure.

Values:7d30d90d

Result

The same object as Get organic traffic, returned as structured output.

connectedboolean

Whether Search Console is connected.

awaiting_databoolean

Connected, but nothing synced for the range yet.

trendobject[]

One point per day in the range, oldest first.

+Show child attributes
datestring

Day, as YYYY-MM-DD.

clicksinteger

Clicks from Google search that day, from Search Console.

impressionsinteger

Times the site appeared in results that day.

avg_positionnumbernullable

Average position across the day's impressions. Null when Search Console reported none.

top_queriesobject[]

The latest finalised week's top queries by clicks, up to 25.

+Show child attributes
termstring

The query, or the page URL.

clicksinteger

Clicks over the window.

impressionsinteger

Impressions over the window.

ctrnumber

Click-through rate, 0–100.

positionnumbernullable

Average position over the window.

top_pagesobject[]

The same week's top pages by clicks, up to 25.

+Show child attributes
termstring

The query, or the page URL.

clicksinteger

Clicks over the window.

impressionsinteger

Impressions over the window.

ctrnumber

Click-through rate, 0–100.

positionnumbernullable

Average position over the window.

Errors

404 not_foundThe project or item doesn't exist in this workspace. A project from another workspace also returns 404, never 403.
422 invalid_requestA parameter or body field is missing or has the wrong type or value. The message names the field. Also returned when a write would pass the plan's prompt limit.
401 unauthorizedNo key was sent, or the key is unknown, revoked or expired, or the member who created it has left the workspace or been deactivated.
402 plan_requiredThe workspace's plan doesn't include API access. It's included on every plan from Track up — Solo is the one without it.
403 workspace_not_approvedThe workspace is still waiting for approval, or wasn't approved.
429 rate_limitedToo many requests this minute. Wait for the number of seconds in the `Retry-After` header, then retry.

Every code, and what to retry, is in Errors.

Failures arrive as a tool error — isError: true with code: message as text. See Using the tools.