Graphrt

Google Search Console

Search analytics (clicks, impressions, CTR, position by query/page/country/device/date, row paging), URL inspection, sites and sitemaps (OAuth or service account, read scope unless writing), sitemap submit and site add agent opt-in, removals node only

Beta v0.1.0 Node.js 11 actions
Use in Graphrt Desktop

About

A Graphrt plugin for the Google Search Console API v1: Search Analytics (clicks, impressions, CTR and position from Google Search), URL Inspection, sites and sitemaps. Every method is called on https://searchconsole.googleapis.com (sites, sitemaps and Search Analytics on the /webmasters/v3/... paths that host still serves, URL Inspection on /v1/...).

What it can do

  • 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)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • 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
Show all 11 actions
  • Google Search Console API request google-search-console.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • GOOGLE_REFRESH_TOKEN
    OAuth refresh trio (scope webmasters.readonly, webmasters if you use the writes)
  • GOOGLE_SERVICE_ACCOUNT_JSON
    Path to a service account key file, add the service account's email as a user of each property
  • GOOGLE_ACCESS_TOKEN
    A ready access token (used only when neither of the above is set)
  • GOOGLE_SEARCH_CONSOLE_TOOL_ALLOW_WRITES
    1 lets agent tools use submit_sitemap and add_site
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • GOOGLE_SEARCH_CONSOLE_TOOL_TOKEN_SOURCE

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Google Search Console.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install google-search-console
workflow.yaml
- 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"
Plugins in the docs