> ## Documentation Index
> Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Search Console Integration: SEO Data Access

> Query search performance, inspect URLs, and check indexing status. Agents can pull click/impression data and identify crawl issues.

## Overview

OneCLI connects AI agents to Google Search Console through Google's OAuth flow. Agents can query search performance data, inspect individual URLs, and check indexing status. The gateway injects OAuth credentials into requests to the Search Console API automatically.

This is useful for SEO agents that need to monitor search rankings, identify indexing issues, or analyze search traffic patterns.

## Setup

<Steps>
  <Step title="Go to Connections">
    Open the OneCLI dashboard and navigate to **Connections** > **Google Search Console**.
  </Step>

  <Step title="Authorize">
    Click **Connect Google Search Console**. You'll be redirected to Google to authorize OneCLI. Review the permissions and click **Allow**.
  </Step>
</Steps>

## What agents can do

* Query search performance data (clicks, impressions, CTR, average position) with custom date ranges
* Break down search data by query, page, country, device, and search appearance
* Inspect individual URLs to check indexing status and crawl details
* Submit URLs for indexing
* List verified sites and properties
* View crawl errors and coverage issues
* Read sitemap submission status
* Check mobile usability issues for specific URLs
* Compare search performance across date ranges

## Controlling access

Access is per agent: [grant](/docs/guides/agent-access) the connection to each agent that needs it, choosing per tool what runs freely, what needs human approval, and what stays blocked — a read-only agent is a single grant. Organization [rules](/docs/guides/rules) add guardrails on top, like rate limits and blanket blocks. Everything is checked before credential injection, so a blocked request never reaches Google Search Console.
