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 Sites API

The sites API from Automattic — 25 operation(s) for sites.

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

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

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

Requests are made against 3 base URLs: https://public-api.wordpress.com/rest/v1.1, https://public-api.wordpress.com/rest/v1.2, https://public-api.wordpress.com/rest/v1.3.

30 operations 25 paths 1 schemas 22 GET8 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
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 Sites 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 30

Across 25 paths, the API surfaces 30 operations — 22 GET, 8 POST. Each is listed below with its method, path, parameters, and response codes.

sites 30
GET
/me/sites
Get a list of the current user's sites.
getMeSites 12 params → 200400401403404
GET
/me/sites/compact
Not in use
getMeSitesCompact 12 params → 200400401403404
GET
/me/sites/features
Get a list of the current user's sites features
getMeSitesFeatures 6 params → 200400401403404
GET
/me/sites/plugins
Get a list of the current user's sites plugins
getMeSitesPlugins 6 params → 200400401403404
GET
/sites/{site}
Get information about a site.
getSitesBySite 7 params → 200400401403404
GET
/sites/{site}/automated-transfers/status
Returns the current status of Automated Transfer for a site.
getSitesBySiteAutomatedTransfersStatus 7 params → 200400401403404
GET
/sites/{site}/embeds
Get a list of embeds available on a site. Note: The current user must have publishing access.
getSitesBySiteEmbeds 7 params → 200400401403404
GET
/sites/{site}/embeds/render
Get a rendered embed for a site. Note: The current user must have publishing access.
getSitesBySiteEmbedsRender 8 params → 200400401403404
GET
/sites/{site}/headers/mine
Get the custom header options for a site.
getSitesBySiteHeadersMine 7 params → 200400401403404
POST
/sites/{site}/headers/mine
Set the custom header options for a site.
postSitesBySiteHeadersMine 7 params body → 200400401403404
GET
/sites/{site}/headers/{theme_slug}
Get the custom header options for a site with a particular theme.
getSitesBySiteHeadersByThemeSlug 8 params → 200400401403404
GET
/sites/{site}/page-templates
Get a list of page templates supported by a site.
getSitesBySitePageTemplates 6 params → 200400401403404
GET
/sites/{site}/post-counts/{post_type}
Get number of posts in the post type groups by post status
getSitesBySitePostCountsByPostType 8 params → 200400401403404
GET
/sites/{site}/post-types
Get a list of post types available for a site.
getSitesBySitePostTypes 8 params → 200400401403404
POST
/sites/{site}/search
Search within a site using an Elasticsearch Query API.
postSitesBySiteSearch 7 params body → 200400401403404
GET
/sites/{site}/search
Search within a site as you type
getSitesBySiteSearch 22 params → 200400401403404
GET
/sites/{site}/shortcodes
Get a list of shortcodes available on a site. Note: The current user must have publishing access.
getSitesBySiteShortcodes 7 params → 200400401403404
GET
/sites/{site}/shortcodes/render
Get a rendered shortcode for a site. Note: The current user must have publishing access.
getSitesBySiteShortcodesRender 8 params → 200400401403404
GET
/sites/{site}/widgets
Retrieve the active and inactive widgets for a site.
getSitesBySiteWidgets 7 params → 200400401403404
POST
/sites/{site}/widgets/new
Activate a widget on a site.
postSitesBySiteWidgetsNew 7 params body → 200400401403404
GET
/sites/{site}/widgets/widget:{id}
Retrieve a widget on a site by its ID.
getSitesBySiteWidgetsWidgetId 8 params → 200400401403404
POST
/sites/{site}/widgets/widget:{id}
Update a widget on a site by its ID.
postSitesBySiteWidgetsWidgetId 8 params body → 200400401403404
POST
/sites/{site}/widgets/widget:{id}/delete
Deactivate a widget on a site by its ID. Will delete if already deactivated.
postSitesBySiteWidgetsWidgetIdDelete 8 params → 200400401403404
POST
/sites/{site}/wordads/approve
Request streamlined approval to join the WordAds program.
postSitesBySiteWordadsApprove 7 params → 200400401403404
GET
/sites/{site}/wordads/earnings
Get detailed WordAds earnings information about a site.
getSitesBySiteWordadsEarnings 7 params → 200400401403404
GET
/sites/{site}/wordads/settings
Get detailed WordAds settings information about a site.
getSitesBySiteWordadsSettings 7 params → 200400401403404
POST
/sites/{site}/wordads/settings
Update WordAds settings for a site.
postSitesBySiteWordadsSettings 7 params body → 200400401403404
GET
/sites/{site}/wordads/stats
Get WordAds stats for a site
getSitesBySiteWordadsStats 10 params → 200400401403404
GET
/sites/{site}/wordads/tos
Get WordAds TOS information about a site.
getSitesBySiteWordadsTos 7 params → 200400401403404
POST
/sites/{site}/wordads/tos
Update WordAds TOS setting for a site.
postSitesBySiteWordadsTos 7 params body → 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-sites-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 Sites 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.