Get site metrics
get_site_metricsSummarize daily metrics for a website over the last N days: site totals per source and metric with total, average (total divided by days), latest value and latestDate. Sources include gsc, ga4, uptime, chatgpt_ads (impressions, clicks, spend in EUR, conversions) and google_ads (impressions, clicks, spend in the ad account currency, conversions, conversion_value). The uptime metric ssl_days_left counts the days until the newest certificate issued for the site's host name expires, looked up once a day in Certificate Transparency logs; it does not show which certificate the server serves. Also returns pagespeed (latest PageSpeed lab results per page and device: performance, lcpMs, cls, tbtMs, inpMs, with measuredOn, status and httpStatus; status page_error means the home page answered with HTTP error httpStatus, so no new score was stored) and crux (latest CrUX p75 field data per device: lcpMs, inpMs, cls).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to include (default 30). | |
| site_id | Yes | The site id, as returned by list_sites. |