How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Automattic Stats API

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

Automattic Stats API is one of 385 APIs that Automattic publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Stats. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and a getting-started guide.

This API exposes 43 operations across 43 paths, and defines 1 schema. It is described by OpenAPI 3.2.0, at version v1.1.

Requests are made against a single base URL, https://public-api.wordpress.com/rest/v1.1.

43 operations 43 paths 1 schemas 41 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v1.1
Base URL
https://public-api.wordpress.com/rest/v1.1
Authentication
OAuth 2.0, HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 2

Automattic Stats API declares 2 security schemes for authenticating requests. It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 21 scopes. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • oauth2 — WordPress.com OAuth 2.1 (see /.well-known/openid-configuration).
  • bearerAuth — Authorization: Bearer

Paths & Operations 43

Across 43 paths, the API surfaces 43 operations — 41 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

stats 43
GET
/sites/{site}/stats
Get a site's stats
getSitesBySiteStats 7 params → 200400401403404
GET
/sites/{site}/stats/archives
View a site's archives
getSitesBySiteStatsArchives 16 params → 200400401403404
GET
/sites/{site}/stats/clicks
View a site's outbound clicks
getSitesBySiteStatsClicks 14 params → 200400401403404
GET
/sites/{site}/stats/clicks/emails/summary
View the total number of email clicks for each post.
getSitesBySiteStatsClicksEmailsSummary 10 params → 200400401403404
GET
/sites/{site}/stats/clicks/emails/{post_id}
View chart stats related to email clicks by period.
getSitesBySiteStatsClicksEmailsByPostId 11 params → 200400401403404
GET
/sites/{site}/stats/clicks/emails/{post_id}/client
View email clicks by client.
getSitesBySiteStatsClicksEmailsByPostIdClient 8 params → 200400401403404
GET
/sites/{site}/stats/clicks/emails/{post_id}/country
View email clicks by country.
getSitesBySiteStatsClicksEmailsByPostIdCountry 8 params → 200400401403404
GET
/sites/{site}/stats/clicks/emails/{post_id}/device
View email clicks by device.
getSitesBySiteStatsClicksEmailsByPostIdDevice 8 params → 200400401403404
GET
/sites/{site}/stats/clicks/emails/{post_id}/link
View email clicks by link.
getSitesBySiteStatsClicksEmailsByPostIdLink 8 params → 200400401403404
GET
/sites/{site}/stats/clicks/emails/{post_id}/rate
View email clicks rate by post. Returns mock data.
getSitesBySiteStatsClicksEmailsByPostIdRate 8 params → 200400401403404
GET
/sites/{site}/stats/clicks/emails/{post_id}/user-content-link
View email clicks by user content link.
getSitesBySiteStatsClicksEmailsByPostIdUserContentLink 8 params → 200400401403404
GET
/sites/{site}/stats/comment-followers
View a site's comment followers
getSitesBySiteStatsCommentFollowers 9 params → 200400401403404
GET
/sites/{site}/stats/comments
View a site's top comment authors and most-commented posts
getSitesBySiteStatsComments 7 params → 200400401403404
GET
/sites/{site}/stats/country-views
View a site's views by country
getSitesBySiteStatsCountryViews 14 params → 200400401403404
GET
/sites/{site}/stats/devices/{device_property_name}
Fetch site's Device properties statistics.
getSitesBySiteStatsDevicesByDevicePropertyName 12 params → 200400401403404
GET
/sites/{site}/stats/emails/summary
View the total number of email opens and clicks for each post.
getSitesBySiteStatsEmailsSummary 10 params → 200400401403404
GET
/sites/{site}/stats/file-downloads
View a site's file downloads
getSitesBySiteStatsFileDownloads 14 params → 200400401403404
GET
/sites/{site}/stats/followers
View a site's followers
getSitesBySiteStatsFollowers 12 params → 200400401403404
GET
/sites/{site}/stats/highlights
View highlight metrics from the last seven days.
getSitesBySiteStatsHighlights 7 params → 200400401403404
GET
/sites/{site}/stats/location-views/{geo_mode}
View a site's views by country, region and city
getSitesBySiteStatsLocationViewsByGeoMode 16 params → 200400401403404
GET
/sites/{site}/stats/opens/emails/summary
View the total number of email opens for each post.
getSitesBySiteStatsOpensEmailsSummary 10 params → 200400401403404
GET
/sites/{site}/stats/opens/emails/{post_id}
View multiple stats related to email opens by post.
getSitesBySiteStatsOpensEmailsByPostId 12 params → 200400401403404
GET
/sites/{site}/stats/opens/emails/{post_id}/client
View email opens stats by client.
getSitesBySiteStatsOpensEmailsByPostIdClient 8 params → 200400401403404
GET
/sites/{site}/stats/opens/emails/{post_id}/country
View email opens stats by country.
getSitesBySiteStatsOpensEmailsByPostIdCountry 8 params → 200400401403404
GET
/sites/{site}/stats/opens/emails/{post_id}/device
View email opens stats by device.
getSitesBySiteStatsOpensEmailsByPostIdDevice 8 params → 200400401403404
GET
/sites/{site}/stats/opens/emails/{post_id}/rate
View email opens rate by post.
getSitesBySiteStatsOpensEmailsByPostIdRate 8 params → 200400401403404
GET
/sites/{site}/stats/post/{post_id}
View a post's views
getSitesBySiteStatsPostByPostId 8 params → 200400401403404
GET
/sites/{site}/stats/publicize
View a site's publicize follower counts
getSitesBySiteStatsPublicize 7 params → 200400401403404
GET
/sites/{site}/stats/referrers
View a site's referrers
getSitesBySiteStatsReferrers 14 params → 200400401403404
GET
/sites/{site}/stats/referrers/spam
List referrers marked as spam
getSitesBySiteStatsReferrersSpam 7 params → 200400401403404
POST
/sites/{site}/stats/referrers/spam/delete
Unreport a referrer as spam
postSitesBySiteStatsReferrersSpamDelete 7 params → 200400401403404
POST
/sites/{site}/stats/referrers/spam/new
Report a referrer as spam
postSitesBySiteStatsReferrersSpamNew 7 params → 200400401403404
GET
/sites/{site}/stats/search-terms
View search terms used to find the site
getSitesBySiteStatsSearchTerms 14 params → 200400401403404
GET
/sites/{site}/stats/streak
Get stats for Calendar Heatmap. Returns data with each post timestamp.
getSitesBySiteStatsStreak 10 params → 200400401403404
GET
/sites/{site}/stats/summary
View a site's summarized views, visitors, likes and comments
getSitesBySiteStatsSummary 11 params → 200400401403404
GET
/sites/{site}/stats/tags
View a site's views by tags and categories
getSitesBySiteStatsTags 8 params → 200400401403404
GET
/sites/{site}/stats/top-authors
View a site's top authors
getSitesBySiteStatsTopAuthors 14 params → 200400401403404
GET
/sites/{site}/stats/top-posts
View a site's top posts and pages by views
getSitesBySiteStatsTopPosts 16 params → 200400401403404
GET
/sites/{site}/stats/utm/{utm_param_name}
Fetch site's UTM param statistics.
getSitesBySiteStatsUtmByUtmParamName 14 params → 200400401403404
GET
/sites/{site}/stats/utm/{utm_param_name}/top_posts
Fetch top posts for a given UTM parameter value.
getSitesBySiteStatsUtmByUtmParamNameTopPosts 13 params → 200400401403404
GET
/sites/{site}/stats/video-plays
View a site's video plays
getSitesBySiteStatsVideoPlays 16 params → 200400401403404
GET
/sites/{site}/stats/video/{post_id}
View the details of a single video
getSitesBySiteStatsVideoByPostId 14 params → 200400401403404
GET
/sites/{site}/stats/views/posts
View the total number of views for each post.
getSitesBySiteStatsViewsPosts 11 params → 200400401403404

Schemas 1

The contract defines 1 schema that model the data the API accepts and returns. The most detailed is Error (2 properties). Each schema is shown below with its type and property counts.

Error
object
WordPress.com REST API error envelope (observed live).
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

automattic-stats-api-openapi.yml Raw ↑

Other APIs Automattic publishes across the network.

WordPress.com MCP Server
WordPress VIP Platform API
Automattic A8c Lore API
Automattic A8cmentorship API
Automattic Abilities API
Automattic Activity API
Automattic Activity Log Events API
Automattic Activitypub API
Automattic Adflow API
Automattic Admin Bar API
Automattic Admin Color API
Automattic Admin Menu API
Where this information came from

This is an independent, third-party profile of Automattic Stats API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.