Home / Servers / Vercel API / aggregate_pageviews

Aggregates page views

An MCP tool from the Vercel API server, hosted on mcp.hjlabs.in.

Aggregates page views Counts pageviews on a project, within the requested date range. Results are either aggregated or broken down over time. Results can additionally be broken down by one dimension, and filtered by… [GET /v1/query/web-analytics/visits/aggregate]

Name on the gateway: vercel_api__aggregate_pageviews · read-only.

Parameters

NameTypeDescription
projectId requiredstringThe project identifier or the project name
by requiredarrayUp to two dimensions used to break down results. At most one time granularity…
since requirednumberTimestamp in milliseconds, or a valid Date string. Selects data from…
until requirednumberTimestamp in milliseconds, or a valid Date string. Selects data until…
limitintegerNumber of distinct results, default to 10. Other results are grouped into…
filterstringOData-compliant filter. Encode the value when sending it in a URL. Allows…
teamIdstringThe Team identifier to perform the request on behalf of.
slugstringThe Team slug to perform the request on behalf of.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "vercel_api__aggregate_pageviews",
  "arguments": {
    "projectId": "…",
    "by": [],
    "since": 0,
    "until": 0
  }
}

Or connect the Vercel API server directly, which lists 472 tools including this one:

Run in your terminal
claude mcp add --transport http hj-vercel-api https://mcp.hjlabs.in/mcp/vercel-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the aggregates page views tool with projectId set to ….

More from Vercel API