Ferrule

Google Search Console

6 tools OpenAPI spec ↗

MCPREST
GETlist_sites/sites

List all Search Console sites (properties) the authenticated user has access to.

Request

No input parameters.

Response

siteEntryobject

Examples

1. Describe method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "describe_method",
    "arguments": {
      "service": "google-searchconsole",
      "method": "list_sites"
    }
  }
}

2. Call method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "call_google-searchconsole",
    "arguments": {
      "method": "list_sites",
      "params": {}
    }
  }
}
GETget_site/sites/:siteUrl

Get information about a specific Search Console site (property).

Request

Path Parameters

NameTypeRequiredDescription
siteUrlstringYesThe URL of the site to retrieve. For domain properties use 'sc-domain:example.com'. For URL-prefix properties use the full URL including protocol.

Response

siteUrlobject
permissionLevelobject

Examples

1. Describe method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "describe_method",
    "arguments": {
      "service": "google-searchconsole",
      "method": "get_site"
    }
  }
}

2. Call method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "call_google-searchconsole",
    "arguments": {
      "method": "get_site",
      "params": {
        "siteUrl": "<siteUrl>"
      }
    }
  }
}
POSTquery_search_analytics/sites/:siteUrl/search-analytics/query

Query search traffic data for a site. Returns clicks, impressions, CTR, and position data. Supports filtering by dimensions (query, page, country, device, searchAppearance, date), date ranges, and more.

Request

Path Parameters

NameTypeRequiredDescription
siteUrlstringYesThe URL of the site to query. For domain properties use 'sc-domain:example.com'.

Query Parameters

NameTypeRequiredDescription
startDatestringNoStart date in YYYY-MM-DD format (required).
endDatestringNoEnd date in YYYY-MM-DD format (required).
dimensionsarrayNoDimensions to group by: query, page, country, device, searchAppearance, date.
typestringNoSearch type filter: web, image, video, news, discover, googleNews.
rowLimitnumberNoMaximum number of rows to return (default 1000, max 25000).
startRownumberNoZero-based index of the first row to return.
dimensionFilterGroupsarrayNoArray of dimension filter groups. Each group has a groupType and filters array.
aggregationTypestringNoHow data is aggregated: auto, byPage, or byProperty.
dataStatestringNoData freshness: final (default) or all (includes fresh/partial data).

Response

rowsobject
responseAggregationTypeobject

Examples

1. Describe method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "describe_method",
    "arguments": {
      "service": "google-searchconsole",
      "method": "query_search_analytics"
    }
  }
}

2. Call method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "call_google-searchconsole",
    "arguments": {
      "method": "query_search_analytics",
      "params": {
        "siteUrl": "<siteUrl>"
      }
    }
  }
}
GETlist_sitemaps/sites/:siteUrl/sitemaps

List the sitemaps submitted for a site.

Request

Path Parameters

NameTypeRequiredDescription
siteUrlstringYesThe URL of the site. For domain properties use 'sc-domain:example.com'.

Query Parameters

NameTypeRequiredDescription
sitemapIndexstringNoA URL of a sitemap index file to filter results to sitemaps referenced by that index.

Response

sitemapobject

Examples

1. Describe method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "describe_method",
    "arguments": {
      "service": "google-searchconsole",
      "method": "list_sitemaps"
    }
  }
}

2. Call method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "call_google-searchconsole",
    "arguments": {
      "method": "list_sitemaps",
      "params": {
        "siteUrl": "<siteUrl>"
      }
    }
  }
}
GETget_sitemap/sites/:siteUrl/sitemaps/:feedpath

Get information about a specific sitemap.

Request

Path Parameters

NameTypeRequiredDescription
siteUrlstringYesThe URL of the site. For domain properties use 'sc-domain:example.com'.
feedpathstringYesThe URL of the sitemap to retrieve.

Response

pathobject
typeobject
lastSubmittedobject
lastDownloadedobject
isPendingobject
isSitemapsIndexobject
warningsobject
errorsobject
contentsobject

Examples

1. Describe method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "describe_method",
    "arguments": {
      "service": "google-searchconsole",
      "method": "get_sitemap"
    }
  }
}

2. Call method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "call_google-searchconsole",
    "arguments": {
      "method": "get_sitemap",
      "params": {
        "siteUrl": "<siteUrl>",
        "feedpath": "<feedpath>"
      }
    }
  }
}
POSTinspect_url/url-inspection/inspect

Inspect a URL to get its index status, AMP status, mobile usability, and rich results status. Requires the full URL and site URL.

Request

Query Parameters

NameTypeRequiredDescription
inspectionUrlstringNoThe fully-qualified URL to inspect (required).
siteUrlstringNoThe URL of the property as defined in Search Console. For domain properties use 'sc-domain:example.com' (required).
languageCodestringNoIETF BCP-47 language code for translated issue messages.

Response

inspectionResultobject

Examples

1. Describe method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "describe_method",
    "arguments": {
      "service": "google-searchconsole",
      "method": "inspect_url"
    }
  }
}

2. Call method

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "call_google-searchconsole",
    "arguments": {
      "method": "inspect_url",
      "params": {}
    }
  }
}