Google Search Console
Search analytics (klik, impresi, CTR, posisi per query, halaman, negara, perangkat dan tanggal, per halaman baris), inspeksi URL, site dan sitemap (OAuth atau service account, scope baca kecuali menulis). Submit sitemap dan tambah site oleh agent harus diizinkan, penghapusan hanya lewat node
Tentang
Plugin Graphrt untuk Google Search Console API v1. Mencakup Search Analytics (klik, impresi, CTR dan posisi dari Google Search), URL Inspection, site dan sitemap. Semua method dipanggil ke https://searchconsole.googleapis.com (site, sitemap dan Search Analytics di path /webmasters/v3/... yang masih dilayani host itu, URL Inspection di /v1/...).
Yang bisa dilakukan
- query_search_analytics: rows grouped by dimensions (date, hour, query, page, country, device, searchAppearance) for a date range, with dimension_filter_groups, search_type (web, image, video, news, discover, googleNews), aggregation_type and data_state (final, all for fresh data, hourly_all with the hour dimension). limit is rowLimit (1–25,000, default 1,000) and cursor is startRow: next_cursor is set while a page comes back full.
- inspect_url: index status of one URL (verdict, coverage, last crawl, canonicals, mobile usability, rich results)
- Sites: list_sites, get_site, add_site (opt-in), delete_site (node only)
- Sitemaps: list_sitemaps (optionally inside a sitemap index), get_sitemap, submit_sitemap (opt-in), delete_sitemap (node only)
- api_request: any other endpoint, e.g. /webmasters/v3/sites (GET only for agents)
Aksi
Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.
- List sites
google-search-console.list_sites - Get site
google-search-console.get_site - Add site
google-search-console.add_site - Remove site
google-search-console.delete_site - Search analytics
google-search-console.query_search_analytics - List sitemaps
google-search-console.list_sitemaps - Get sitemap
google-search-console.get_sitemap - Submit sitemap
google-search-console.submit_sitemap - Delete sitemap
google-search-console.delete_sitemap - Inspect URL
google-search-console.inspect_url
Tampilkan semua 11 aksi
- Google Search Console API request
google-search-console.api_request
Pengaturan
Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.
-
GOOGLE_REFRESH_TOKENOAuth refresh trio (scope webmasters.readonly, webmasters if you use the writes) -
GOOGLE_SERVICE_ACCOUNT_JSONPath to a service account key file, add the service account's email as a user of each property -
GOOGLE_ACCESS_TOKENA ready access token (used only when neither of the above is set) -
GOOGLE_SEARCH_CONSOLE_TOOL_ALLOW_WRITES1 lets agent tools use submit_sitemap and add_site -
GOOGLE_CLIENT_ID -
GOOGLE_CLIENT_SECRET -
GOOGLE_SEARCH_CONSOLE_TOOL_TOKEN_SOURCE
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari Google Search Console.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
$ graphrt plugin install google-search-console - id: pages
type: google-search-console.query_search_analytics
site_url: "https://www.example.com/"
start_date: "2026-10-01"
end_date: "2026-10-31"
dimensions: [page, device]
dimension_filter_groups: [{ filters: [{ dimension: country, operator: equals, expression: idn }] }]
limit: 100
- id: inspect
type: google-search-console.inspect_url
site_url: "https://www.example.com/"
inspection_url: "https://www.example.com/produk/sepatu"