Automattic Stats API

The stats API from Automattic — 43 operation(s) for stats.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 43

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /sites/{site}/stats Get a site's stats · Get a site's stats #
Ask an LLM
“What are the overall stats for my site?”
“Can I get a summary of my site's performance?”
Tell an agent
Get the stats for site {site}.
Show overall performance metrics for {site}.
GET /sites/{site}/stats/archives View a site's archive stats · View a site's archives #
Ask an LLM
“How many archive views has my site had?”
“Can I see archive stats for a specific date range?”
Tell an agent
Show archive stats for site {site}.
Get archive views for {site} from {start_date} to {date}.
GET /sites/{site}/stats/clicks View a site's outbound clicks · View a site's outbound clicks #
Ask an LLM
“How many outbound clicks has my site received?”
“Can I see outbound click stats for a period?”
Tell an agent
Show outbound clicks for site {site}.
Get outbound click stats for {site} over {num} {period}.
GET /sites/{site}/stats/clicks/emails/summary Total email clicks per post · View the total number of email clicks for each post #
Ask an LLM
“How many email clicks has each post on my site received?”
“Can I see total email clicks per post?”
Tell an agent
Show total email clicks per post for site {site}.
Get email click totals for {site} over {quantity} {period}.
GET /sites/{site}/stats/clicks/emails/{post_id} Email clicks by period for a post · View chart stats related to email clicks by period #
Ask an LLM
“How have email clicks on one post changed over time?”
“Can I chart email clicks for a single post by period?”
Tell an agent
Show email click stats by period for post {post_id} on site {site}.
Chart email clicks for {post_id} on {site} over {quantity} {period}.
GET /sites/{site}/stats/clicks/emails/{post_id}/client Email clicks by client for a post · View email clicks by client #
Ask an LLM
“Which email clients have opened my post's links?”
“Can I see email click stats by client for one post?”
Tell an agent
Show email clicks by client for post {post_id} on site {site}.
List email clients that opened links in {post_id} on {site}.
GET /sites/{site}/stats/clicks/emails/{post_id}/country Email clicks by country for a post · View email clicks by country #
Ask an LLM
“Which countries have opened my post's links by email?”
“Can I see email click stats by country for one post?”
Tell an agent
Show email clicks by country for post {post_id} on site {site}.
List countries that opened links in {post_id} on {site}.
GET /sites/{site}/stats/clicks/emails/{post_id}/device Email clicks by device for a post · View email clicks by device #
Ask an LLM
“Which devices have opened my post's links by email?”
“Can I see email click stats by device for one post?”
Tell an agent
Show email clicks by device for post {post_id} on site {site}.
List devices that opened links in {post_id} on {site}.
GET /sites/{site}/stats/clicks/emails/{post_id}/rate Email click rate for a post · View email clicks rate by post. Returns mock data #
Ask an LLM
“What is the email click rate for one of my posts?”
“Can I see mock email click rate stats for a post?”
Tell an agent
Show the email click rate for post {post_id} on site {site}.
Get mock email click rate stats for {post_id} on {site}.
GET /sites/{site}/stats/comment-followers View a site's comment followers · View a site's comment followers #
Ask an LLM
“Who is following the comments on my site?”
“Can I see comment followers for a page?”
Tell an agent
Show comment followers for site {site}.
Get comment followers for {site} on page {page}.
GET /sites/{site}/stats/comments Top comment authors and most-commented posts · View a site's top comment authors and most-commented posts #
Ask an LLM
“Who are my site's top comment authors?”
“Which posts get the most comments?”
Tell an agent
Show top comment authors and most-commented posts for site {site}.
List the most-commented posts on {site}.
GET /sites/{site}/stats/country-views Views by country · View a site's views by country #
Ask an LLM
“Which countries have viewed my site most?”
“Can I see views by country for a period?”
Tell an agent
Show views by country for site {site}.
Get views by country for {site} over {num} {period}.
GET /sites/{site}/stats/devices/{device_property_name} Device property stats · Fetch site's Device properties statistics #
Ask an LLM
“What share of my site's traffic comes from mobile devices?”
“Can I see browser or platform stats for my site?”
Tell an agent
Show {device_property_name} stats for site {site}.
Get {device_property_name} stats for {site} over {days} days.
GET /sites/{site}/stats/emails/summary Email opens and clicks per post · View the total number of email opens and clicks for each post #
Ask an LLM
“How many email opens and clicks has each post had?”
“Can I sort email stats by clicks?”
Tell an agent
Show email opens and clicks per post for site {site}.
Get email stats for {site} sorted by {sort_field} {sort_order}.
GET /sites/{site}/stats/file-downloads File downloads · View a site's file downloads #
Ask an LLM
“Which files on my site have been downloaded most?”
“Can I see file download stats for a period?”
Tell an agent
Show file downloads for site {site}.
Get file download stats for {site} over {num} {period}.
GET /sites/{site}/stats/followers View a site's followers · View a site's followers #
Ask an LLM
“Who follows my site?”
“Can I search followers by email address?”
Tell an agent
Show followers for site {site}.
Find email followers on {site} matching {search}.
GET /sites/{site}/stats/highlights Highlight metrics for the last seven days · View highlight metrics from the last seven days #
Ask an LLM
“What are the highlight metrics for my site over the last seven days?”
“Can I see a summary of recent site highlights?”
Tell an agent
Show highlight metrics for the last seven days for site {site}.
Get recent highlights for {site}.
GET /sites/{site}/stats/location-views/{geo_mode} View views by country, region or city · View a site's views by country, region and city #
Ask an LLM
“Which countries send the most traffic to my site?”
“Can I see views by region or city instead of country?”
Tell an agent
Show views for site {site} by {geo_mode}.
List the top {max} countries for site {site} by {geo_mode}.
GET /sites/{site}/stats/opens/emails/summary View total email opens per post · View the total number of email opens for each post #
Ask an LLM
“How many times have my newsletter emails been opened?”
“What's the total email open count for each post?”
Tell an agent
Show total email opens for each post on site {site}.
Summarize email opens for site {site} over the last {quantity} {period}.
GET /sites/{site}/stats/opens/emails/{post_id} View email opens stats for a post · View multiple stats related to email opens by post #
Ask an LLM
“How have my newsletter emails performed on a specific post?”
“Can I see email opens for one post over time?”
Tell an agent
Show email opens stats for post {post_id} on site {site}.
Break down email opens for post {post_id} on site {site} by {stats_fields}.
GET /sites/{site}/stats/opens/emails/{post_id}/client View email opens by client · View email opens stats by client #
Ask an LLM
“Which email clients open my newsletters most?”
“What share of opens come from mobile versus desktop email apps?”
Tell an agent
Show email opens for post {post_id} on site {site} by client.
Compare email client opens for post {post_id} on site {site}.
GET /sites/{site}/stats/opens/emails/{post_id}/country View email opens by country · View email opens stats by country #
Ask an LLM
“Which countries open my newsletters most?”
“Can I see email opens for a post broken down by country?”
Tell an agent
Show email opens for post {post_id} on site {site} by country.
List the top countries for post {post_id} on site {site}.
GET /sites/{site}/stats/opens/emails/{post_id}/device View email opens by device · View email opens stats by device #
Ask an LLM
“Are most of my email opens coming from mobile or desktop?”
“What devices do readers use to open my newsletters?”
Tell an agent
Show email opens for post {post_id} on site {site} by device.
Compare mobile and desktop opens for post {post_id} on site {site}.
GET /sites/{site}/stats/opens/emails/{post_id}/rate View email open rate for a post · View email opens rate by post #
Ask an LLM
“What's the email open rate for one of my posts?”
“Is my newsletter open rate good for a single post?”
Tell an agent
Show the email open rate for post {post_id} on site {site}.
Calculate the open rate of post {post_id} on site {site}.
GET /sites/{site}/stats/post/{post_id} View a post's views · View a post's views #
Ask an LLM
“How many views has a particular post received?”
“What's the view count for one blog post?”
Tell an agent
Show views for post {post_id} on site {site}.
Get the view count of post {post_id} on site {site}.
GET /sites/{site}/stats/publicize View publicize follower counts · View a site's publicize follower counts #
Ask an LLM
“How many followers do my publicize shares have?”
“What are my publicize follower counts across networks?”
Tell an agent
Show publicize follower counts for site {site}.
Get follower counts for publicize shares on site {site}.
GET /sites/{site}/stats/referrers View a site's referrers · View a site's referrers #
Ask an LLM
“Which sites are sending traffic to my blog?”
“What referrers are driving visits to my site?”
Tell an agent
Show referrers for site {site}.
List the top {max} referrers to site {site}.
GET /sites/{site}/stats/referrers/spam List referrers marked as spam · List referrers marked as spam #
Ask an LLM
“Which referrers have been marked as spam on my site?”
“What spam referrers does the referrer spam list show?”
Tell an agent
List referrers marked as spam for site {site}.
Show the spam referrer list on site {site}.
POST /sites/{site}/stats/referrers/spam/delete Unreport a referrer as spam · Unreport a referrer as spam #
Ask an LLM
“How do I take a referrer off the spam list?”
“Can I unmark a referrer as spam?”
Tell an agent destructive · confirm first
Unreport {domain} as spam for site {site}.
Remove {domain} from the spam referrer list on site {site}.
POST /sites/{site}/stats/referrers/spam/new Report a referrer as spam · Report a referrer as spam #
Ask an LLM
“How do I mark a referrer as spam?”
“Can I report a spammy referrer to the spam list?”
Tell an agent destructive · confirm first
Report {domain} as spam for site {site}.
Mark {domain} as a spam referrer on site {site}.
GET /sites/{site}/stats/search-terms View search terms that found the site · View search terms used to find the site #
Ask an LLM
“What search terms are people using to find my site?”
“Which keywords bring traffic to my blog?”
Tell an agent
Show search terms that found site {site}.
List the top {max} keywords people used to find site {site}.
GET /sites/{site}/stats/streak Get calendar heatmap data · Get stats for Calendar Heatmap. Returns data with each post timestamp #
Ask an LLM
“How do I get the calendar heatmap data for my site?”
“Can I get a day-by-day post count for the calendar heatmap?”
Tell an agent
Get calendar heatmap data for site {site}.
Show each post timestamp for site {site} on the calendar heatmap.
GET /sites/{site}/stats/summary View summarized views, visitors, likes and comments · View a site's summarized views, visitors, likes and comments #
Ask an LLM
“What are my site's total views, visitors, likes and comments?”
“Can I get a quick summary of site activity for a period?”
Tell an agent
Show a summary of views, visitors, likes and comments for site {site}.
Summarize site {site} activity over the last {num} {period}.
GET /sites/{site}/stats/tags View views by tag and category · View a site's views by tags and categories #
Ask an LLM
“Which tags and categories get the most views?”
“Can I see views broken down by tag or category?”
Tell an agent
Show views by tag and category for site {site}.
List the top {max} tags for site {site}.
GET /sites/{site}/stats/top-authors View a site's top authors · View a site's top authors #
Ask an LLM
“Who are the top authors on my site?”
“Which authors have written the most posts?”
Tell an agent
Show the top authors on site {site}.
List the top {max} authors for site {site}.
GET /sites/{site}/stats/top-posts View top posts and pages by views · View a site's top posts and pages by views #
Ask an LLM
“Which posts and pages get the most views?”
“Can I see my top posts and pages ranked by views?”
Tell an agent
Show my top posts and pages by views for site {site}.
List the top {max} posts on site {site}.
GET /sites/{site}/stats/utm/{utm_param_name} Get a UTM parameter's stats for a site · Fetch site's UTM param statistics #
Ask an LLM
“How many visits did a particular UTM source bring to my site?”
“Can I break down a UTM parameter's stats by day?”
Tell an agent
Get {utm_param_name} stats for site {site}.
Show daily {utm_param_name} stats for site {site} over the last {days} days.
GET /sites/{site}/stats/utm/{utm_param_name}/top_posts Get the top posts for a UTM value · Fetch top posts for a given UTM parameter value #
Ask an LLM
“Which posts get the most traffic from a specific UTM source?”
“Can I see the top posts for each value of a UTM parameter?”
Tell an agent
Get the top posts for {utm_param_name} values {utm_param_values} on site {site}.
Show the top {max} posts driving {utm_param_name} traffic for site {site}.
GET /sites/{site}/stats/video-plays View a site's video plays · View a site's video plays #
Ask an LLM
“How many plays has each video on my site had?”
“Can I get video plays broken down by day or week?”
Tell an agent
Show video plays for site {site}.
Get {period} video plays for site {site} over {num} periods.
GET /sites/{site}/stats/video/{post_id} View a single video's stats · View the details of a single video #
Ask an LLM
“How many views and plays has a specific video had?”
“Can I see a video's watch time and retention rate?”
Tell an agent
Show {statType} stats for video {post_id} on site {site}.
Get the {period} view and play history of video {post_id} on site {site}.
GET /sites/{site}/stats/views/posts Get views for each post · View the total number of views for each post #
Ask an LLM
“Which posts on my site have the most views?”
“Can I see post-level views for a specific date range?”
Tell an agent
Show total views for each post on site {site}.
Get views for posts {post_ids} on site {site} over {num} days.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/automattic:automattic-stats-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

automattic-stats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API v1.1 Stats API
  version: v1.1
  description: 'The WordPress.com REST API, operated by Automattic. Derived by API Evangelist from Automattic''s own self-describing help document at https://public-api.wordpress.com/rest/v1.1/help (Accept: application/json), which publishes every endpoint''s method, path, description, path/query/body parameters and response fields. Security schemes come from https://public-api.wordpress.com/.well-known/openid-configuration. The error envelope was observed live.'
  termsOfService: https://wordpress.com/tos/
  contact:
    name: WordPress.com Developer Resources
    url: https://developer.wordpress.com/docs/api/
  x-derived-from: https://public-api.wordpress.com/rest/v1.1/help
  x-derived-by: API Evangelist enrichment pipeline
servers:
- url: https://public-api.wordpress.com/rest/v1.1
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (176 KB total) ---
# Full source: https://artifacts.apis.io/automattic/openapi/automattic-stats-api-openapi.yml