Google Search Console Search Analytics resource.
REST: POST sites/{siteUrl}/searchAnalytics/query
Docs: https://developers.google.com/webmaster-tools/v1/searchanalytics/query
Summary
Functions
POST sites/{siteUrl}/searchAnalytics/query.
Types
@type result() :: {:ok, term()} | {:error, Noizu.Google.Error.t()}
Functions
POST sites/{siteUrl}/searchAnalytics/query.
Request body (map)
Required:
:startDate/"startDate"—YYYY-MM-DD:endDate/"endDate"—YYYY-MM-DD
Common optional fields: dimensions, rowLimit, startRow, dimensionFilterGroups,
aggregationType, dataState, type (web/image/video/news/discover/googleNews).
Example
Noizu.Google.Api.SearchConsole.SearchAnalytics.query(
"https://example.com/",
%{
startDate: "2026-01-01",
endDate: "2026-01-31",
dimensions: ["query", "page"],
rowLimit: 25
},
client: client
)