Get site visits timeseries is a WordPress ability from Jetpack — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get site visits timeseries

Read-only
Jetpack Backup & Site Management jetpack-stats/get-visits

Return a site-level timeseries of views, visitors, likes, and comments to answer whether traffic is trending up or down.

Requires the Jetpack plugin on WordPress 6.9+. Abilities are registered by several bundled Jetpack packages (automattic/jetpack-backup, jetpack-connection, jetpack-forms, jetpack-stats) plus the main plugin's own registrars for Related Posts, Shortlinks, Sitemaps, Newsletter/Subscriptions, and Monitor. Permission requirements vary by ability — most gate on 'manage_options', 'jetpack_admin_page', or 'view_stats', while Forms abilities use 'edit_pages'. Backup abilities only register when a Backup product/plan is active; Sitemaps, Monitor, and Newsletter abilities only register when their respective module is turned on.

What it does

This ability returns a timeseries of chosen site-level metrics at a chosen granularity (day, week, month, or year), covering a configurable number of data points ending on a given date. The fields parameter selects which metrics appear in each row (views, visitors, likes, comments; defaults to views and visitors), and every row always includes every requested field, zero-filled when the underlying data is missing rather than omitting the key.

See it in action

You ask your AI assistant

"Show me my site's daily views and visitors for the last 30 days."

Inputs

Name Type Required Description
unit string No Granularity of each data point: day, week, month, or year. Defaults to day.
quantity integer No How many data points to return (1-90). Defaults to 30.
date string No End date in YYYY-MM-DD format. Defaults to today.
fields array No Which metrics to include per row: views, visitors, likes, comments. Defaults to views and visitors.

Returns

An object with unit, quantity, date, fields, and series (an array of rows, each with date and the requested metric fields, zero-filled when missing).

Permission

The current user must have the 'view_stats' capability.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.