Google seach console
/install google-search-console-maton
SKILL.md\r
\r
Google Search Console (cURL Version)\r
\r Access the Google Search Console API with managed OAuth authentication using cURL. Query search analytics, manage sitemaps, and monitor site performance.\r \r ---\r \r
Quick Start\r
\r
List Sites\r
\r
curl -s \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
https://gateway.maton.ai/google-search-console/webmasters/v3/sites | jq\r
```\r
\r
---\r
\r
## Base URL\r
\r
```\r
https://gateway.maton.ai/google-search-console/{native-api-path}\r
```\r
\r
Replace `{native-api-path}` with the actual Google Search Console API endpoint path.\r
The gateway proxies requests to `www.googleapis.com` and automatically injects your OAuth token.\r
\r
---\r
\r
## Authentication\r
\r
All requests require the Maton API key:\r
\r
```bash\r
-H "Authorization: Bearer $MATON_API_KEY"\r
```\r
\r
### Environment Variable\r
\r
```bash\r
export MATON_API_KEY="YOUR_API_KEY"\r
```\r
\r
---\r
\r
## Getting Your API Key\r
\r
1. Sign in or create an account at https://maton.ai\r
2. Go to https://maton.ai/settings\r
3. Copy your API key\r
\r
---\r
\r
## Connection Management\r
\r
Manage connections at:\r
\r
```\r
https://ctrl.maton.ai\r
```\r
\r
---\r
\r
### List Connections\r
\r
```bash\r
curl -s \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
"https://ctrl.maton.ai/connections?app=google-search-console&status=ACTIVE" | jq\r
```\r
\r
---\r
\r
### Create Connection\r
\r
```bash\r
curl -s -X POST \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
-H "Content-Type: application/json" \\r
-d '{"app":"google-search-console"}' \\r
https://ctrl.maton.ai/connections | jq\r
```\r
\r
---\r
\r
### Get Connection\r
\r
```bash\r
curl -s \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
https://ctrl.maton.ai/connections/{connection_id} | jq\r
```\r
\r
#### Response Example\r
\r
```json\r
{\r
"connection": {\r
"connection_id": "21fd90f9-5935-43cd-b6c8-bde9d915ca80",\r
"status": "ACTIVE",\r
"creation_time": "2025-12-08T07:20:53.488460Z",\r
"last_updated_time": "2026-01-31T20:03:32.593153Z",\r
"url": "https://connect.maton.ai/?session_token=...",\r
"app": "google-search-console",\r
"metadata": {}\r
}\r
}\r
```\r
\r
Open the `url` in a browser to complete OAuth authorization.\r
\r
---\r
\r
### Delete Connection\r
\r
```bash\r
curl -s -X DELETE \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
https://ctrl.maton.ai/connections/{connection_id} | jq\r
```\r
\r
---\r
\r
## Specifying Connection\r
\r
If multiple connections exist:\r
\r
```bash\r
curl -s \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
-H "Maton-Connection: 21fd90f9-5935-43cd-b6c8-bde9d915ca80" \\r
https://gateway.maton.ai/google-search-console/webmasters/v3/sites | jq\r
```\r
\r
If omitted, the default (oldest active) connection is used.\r
\r
---\r
\r
## API Reference\r
\r
### Sites\r
\r
```bash\r
# List sites\r
GET /google-search-console/webmasters/v3/sites\r
\r
# Get a specific site\r
GET /google-search-console/webmasters/v3/sites/{siteUrl}\r
```\r
\r
> ⚠️ Site URL must be URL-encoded\r
> Example: `https%3A%2F%2Fexample.com%2F`\r
\r
---\r
\r
### Search Analytics\r
\r
```bash\r
curl -s -X POST \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
-H "Content-Type: application/json" \\r
https://gateway.maton.ai/google-search-console/webmasters/v3/sites/{siteUrl}/searchAnalytics/query \\r
-d '{\r
"startDate": "2024-01-01",\r
"endDate": "2024-01-31",\r
"dimensions": ["query"],\r
"rowLimit": 100\r
}' | jq\r
```\r
\r
---\r
\r
### Sitemaps\r
\r
```bash\r
# List sitemaps\r
curl -s \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
https://gateway.maton.ai/google-search-console/webmasters/v3/sites/{siteUrl}/sitemaps | jq\r
\r
# Submit sitemap\r
curl -s -X PUT \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
https://gateway.maton.ai/google-search-console/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}\r
\r
# Delete sitemap\r
curl -s -X DELETE \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
https://gateway.maton.ai/google-search-console/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}\r
```\r
\r
---\r
\r
## Search Analytics Examples\r
\r
### Top Queries\r
\r
```json\r
{\r
"startDate": "2024-01-01",\r
"endDate": "2024-01-31",\r
"dimensions": ["query"],\r
"rowLimit": 25\r
}\r
```\r
\r
### Top Pages\r
\r
```json\r
{\r
"dimensions": ["page"]\r
}\r
```\r
\r
### Device Breakdown\r
\r
```json\r
{\r
"dimensions": ["device"]\r
}\r
```\r
\r
### Daily Performance\r
\r
```json\r
{\r
"dimensions": ["date"]\r
}\r
```\r
\r
### Filtered Query\r
\r
```json\r
{\r
"dimensionFilterGroups": [{\r
"filters": [{\r
"dimension": "query",\r
"operator": "contains",\r
"expression": "keyword"\r
}]\r
}]\r
}\r
```\r
\r
---\r
\r
## Dimensions\r
\r
* `query` – Search query\r
* `page` – Page URL\r
* `country` – Country code\r
* `device` – DESKTOP, MOBILE, TABLET\r
* `date` – Date\r
\r
---\r
\r
## Metrics (Auto Returned)\r
\r
* `clicks`\r
* `impressions`\r
* `ctr`\r
* `position`\r
\r
---\r
\r
## Notes\r
\r
* Site URLs must be URL-encoded\r
* Date range limited to 16 months\r
* Max 25,000 rows per request\r
* Use `startRow` for pagination\r
* Data delay: 2–3 days\r
\r
---\r
\r
## Important cURL Notes\r
\r
* Use `-g` if URL contains brackets:\r
\r
```bash\r
curl -g "https://example.com?fields[]=..."\r
```\r
\r
* When piping to `jq`, environment variables may not expand correctly in some shells.\r
\r
---\r
\r
## Error Handling\r
\r
| Status | Meaning |\r
| ------- | --------------------------------- |\r
| 400 | Missing Search Console connection |\r
| 401 | Invalid/missing API key |\r
| 429 | Rate limited (10 req/sec) |\r
| 4xx/5xx | Upstream API error |\r
\r
---\r
\r
## Troubleshooting API Key\r
\r
### Check variable\r
\r
```bash\r
echo $MATON_API_KEY\r
```\r
\r
### Verify key\r
\r
```bash\r
curl -s \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
https://ctrl.maton.ai/connections | jq\r
```\r
\r
---\r
\r
## Example: Full Query Flow\r
\r
```bash\r
SITE_URL=$(python3 -c "import urllib.parse; print(urllib.parse.quote('https://example.com', safe=''))")\r
\r
curl -s -X POST \\r
-H "Authorization: Bearer $MATON_API_KEY" \\r
-H "Content-Type: application/json" \\r
"https://gateway.maton.ai/google-search-console/webmasters/v3/sites/$SITE_URL/searchAnalytics/query" \\r
-d '{\r
"startDate": "2024-01-01",\r
"endDate": "2024-01-31",\r
"dimensions": ["query"],\r
"rowLimit": 25\r
}' | jq\r
```\r
\r
---\r
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install google-search-console-maton - After installation, invoke the skill by name or use
/google-search-console-maton - Provide required inputs per the skill's parameter spec and get structured output
What is Google seach console?
Access Google Search Console API via cURL with OAuth to manage sites, sitemaps, and query search analytics including clicks, impressions, and rankings. It is an AI Agent Skill for Claude Code / OpenClaw, with 79 downloads so far.
How do I install Google seach console?
Run "/install google-search-console-maton" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Google seach console free?
Yes, Google seach console is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Google seach console support?
Google seach console is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Google seach console?
It is built and maintained by Otman Heddouch (@otman-ai); the current version is v1.0.0.