Automattic Sites API

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

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 30

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 /me/sites List my sites · Get a list of the current user's sites #
Ask an LLM
“Which WordPress sites do I have access to on WordPress.com?”
“Can I list only my visible or only my hidden sites?”
Tell an agent
List my sites.
Show my {site_visibility} sites.
GET /me/sites/compact List my sites (compact) · Not in use #
Ask an LLM
“Is there a shorter list of my sites with only the most essential fields?”
“Can I get a compact site list for a mobile app?”
Tell an agent
Get a compact list of my sites.
Return only the essential fields for each of my sites.
GET /me/sites/features List the features my sites have · Get a list of the current user's sites features #
Ask an LLM
“What features are enabled on each of my sites?”
“Which site features does the current user have access to?”
Tell an agent
List the features available on my sites.
Show which site features I can use.
GET /me/sites/plugins List the plugins my sites have · Get a list of the current user's sites plugins #
Ask an LLM
“Which plugins are installed on each of my sites?”
“What plugins does the current user have access to on their sites?”
Tell an agent
List the plugins installed on my sites.
Show which plugins I can use on my sites.
GET /sites/{site} Get information about a site · Get information about a site #
Ask an LLM
“What information is available about a specific site?”
“Can I look up one site by its ID or domain?”
Tell an agent
Get information about site {site}.
Show details for site {site}.
GET /sites/{site}/automated-transfers/status Check automated transfer status for a site · Returns the current status of Automated Transfer for a site #
Ask an LLM
“Is automated transfer enabled for a site?”
“What is the current automated transfer status of a site?”
Tell an agent
Check the automated transfer status of site {site}.
Show whether automated transfer is on for site {site}.
GET /sites/{site}/embeds List embeds available on a site · Get a list of embeds available on a site. #
Ask an LLM
“Which embeds can I use on a site?”
“What embed options are available for a site?”
Tell an agent
List the embeds available on site {site}.
Show which embeds I can use on site {site}.
GET /sites/{site}/embeds/render Render an embed for a site · Get a rendered embed for a site. #
Ask an LLM
“Can I render a specific embed URL on a site?”
“What does an embed look like when rendered on a site?”
Tell an agent
Render embed {url} on site {site}.
Show how embed {url} looks on site {site}.
GET /sites/{site}/headers/mine Get a site's custom header options · Get the custom header options for a site #
Ask an LLM
“What custom header options does a site have?”
“Can I see the header settings for a site?”
Tell an agent
Get the custom header options for site {site}.
Show the header settings of site {site}.
POST /sites/{site}/headers/mine Set a site's custom header options · Set the custom header options for a site #
Ask an LLM
“Can I set a custom header image on a site?”
“Is it possible to reset a site's header to a random default image?”
Tell an agent
Set the header image of site {site} to {url}.
Reset the header of site {site} to a random default image.
GET /sites/{site}/headers/{theme_slug} Get a site's header for a theme · Get the custom header options for a site with a particular theme #
Ask an LLM
“What header does a site use with a particular theme?”
“Can I check the header settings for one theme on a site?”
Tell an agent
Get the header options for theme {theme} on site {site}.
Show how theme {theme} is styled on site {site}.
GET /sites/{site}/page-templates List page templates a site supports · Get a list of page templates supported by a site #
Ask an LLM
“Which page templates can a site use?”
“What page templates are supported by a site?”
Tell an agent
List the page templates supported by site {site}.
Show which page templates site {site} can use.
GET /sites/{site}/post-counts/{post_type} Count posts by status for a post type · Get number of posts in the post type groups by post status #
Ask an LLM
“How many posts of a given type are in each status?”
“Can I count posts by status for one post type on a site?”
Tell an agent
Count {post_type} posts by status on site {site}.
Show the number of {post_type} posts in each status for site {site}.
GET /sites/{site}/post-types List post types available on a site · Get a list of post types available for a site #
Ask an LLM
“Which post types can a site use?”
“Can I list only the queryable post types on a site?”
Tell an agent
List the post types available on site {site}.
Show only queryable post types on site {site}.
POST /sites/{site}/search Run an Elasticsearch query on a site · Search within a site using an Elasticsearch Query API #
Ask an LLM
“Can I run a full Elasticsearch query against a site's content?”
“Is there a way to sort and filter a site search with an Elasticsearch query?”
Tell an agent
Run Elasticsearch query {query} on site {site}.
Search site {site} with Elasticsearch query {query} sorted by {sort}.
GET /sites/{site}/search Search a site's content as you type · Search within a site as you type #
Ask an LLM
“Can I search a site's content while typing a query?”
“Is there a way to highlight matching fields in a site search?”
Tell an agent
Search site {site} for {query}.
Search site {site} for {query} and highlight {fields}.
GET /sites/{site}/shortcodes List shortcodes available on a site · Get a list of shortcodes available on a site. #
Ask an LLM
“Which shortcodes can I use on a site?”
“What shortcodes are available for a site?”
Tell an agent
List the shortcodes available on site {site}.
Show which shortcodes I can use on site {site}.
GET /sites/{site}/shortcodes/render Render a shortcode on a site · Get a rendered shortcode for a site. #
Ask an LLM
“Can I see how a shortcode renders on a site?”
“What does a shortcode look like when rendered on a site?”
Tell an agent
Render shortcode {shortcode} on site {site}.
Show how shortcode {shortcode} renders on site {site}.
GET /sites/{site}/widgets List active and inactive widgets on a site · Retrieve the active and inactive widgets for a site #
Ask an LLM
“Which widgets are active and which are inactive on a site?”
“Can I see the widget settings for a site?”
Tell an agent
List the active and inactive widgets on site {site}.
Show the widget settings for site {site}.
POST /sites/{site}/widgets/new Activate a widget on a site · Activate a widget on a site #
Ask an LLM
“How do I add a new widget to a WordPress.com site?”
“Can I place a widget in a specific sidebar and position?”
Tell an agent
Activate widget {id_base} on site {site}.
Add widget {id_base} to sidebar {sidebar} at position {position} on site {site}.
GET /sites/{site}/widgets/widget:{id} Get a widget on a site · Retrieve a widget on a site by its ID #
Ask an LLM
“What settings does a particular widget on my site have?”
“Can I look up one widget by its ID?”
Tell an agent
Get widget {id} on site {site}.
Show the settings of widget {id} on site {site}.
POST /sites/{site}/widgets/widget:{id} Update a widget on a site · Update a widget on a site by its ID #
Ask an LLM
“How do I move an existing widget to a different sidebar or position?”
“Can I change a widget's settings after it's placed?”
Tell an agent
Move widget {id} on site {site} to sidebar {sidebar}.
Set widget {id} on site {site} to position {position} with settings {settings}.
POST /sites/{site}/widgets/widget:{id}/delete Deactivate a widget on a site · Deactivate a widget on a site by its ID. Will delete if already deactivated #
Ask an LLM
“How do I remove a widget from my site?”
“Does deactivating a widget delete it if it's already off?”
Tell an agent destructive · confirm first
Deactivate widget {id} on site {site}.
Remove widget {id} from site {site} entirely.
POST /sites/{site}/wordads/approve Apply to join WordAds · Request streamlined approval to join the WordAds program #
Ask an LLM
“How do I apply for streamlined approval to join WordAds?”
“Can I request WordAds approval for my site?”
Tell an agent
Request WordAds approval for site {site}.
Apply for WordAds on site {site} with streamlined approval.
GET /sites/{site}/wordads/earnings Get WordAds earnings for a site · Get detailed WordAds earnings information about a site #
Ask an LLM
“How much has my site earned from WordAds?”
“Can I see detailed WordAds earnings for a site?”
Tell an agent
Get WordAds earnings for site {site}.
Show WordAds earnings history for site {site}.
GET /sites/{site}/wordads/settings Get WordAds settings for a site · Get detailed WordAds settings information about a site #
Ask an LLM
“What WordAds settings are configured on my site?”
“Can I check the WordAds display options for a site?”
Tell an agent
Get WordAds settings for site {site}.
Show WordAds display options on site {site}.
POST /sites/{site}/wordads/settings Update WordAds settings · Update WordAds settings for a site #
Ask an LLM
“How do I change the WordAds display options on my site?”
“Can I enable targeted advertising for California visitors?”
Tell an agent
Set WordAds display options {display_options} on site {site}.
Enable optimized ads on site {site} with PayPal {paypal}.
GET /sites/{site}/wordads/stats Get WordAds stats for a site · Get WordAds stats for a site #
Ask an LLM
“What are my WordAds stats for the last month?”
“Can I get WordAds stats for a specific date range?”
Tell an agent
Get WordAds stats for site {site} over {quantity} {unit}.
Show WordAds stats for site {site} up to {date}.
GET /sites/{site}/wordads/tos Get WordAds TOS for a site · Get WordAds TOS information about a site #
Ask an LLM
“What does my site's WordAds Terms of Service say?”
“Can I read the WordAds TOS for a site?”
Tell an agent
Get the WordAds TOS for site {site}.
Show the WordAds Terms of Service on site {site}.
POST /sites/{site}/wordads/tos Accept WordAds Terms of Service · Update WordAds TOS setting for a site #
Ask an LLM
“How do I accept the WordAds Terms of Service for my site?”
“Can I check the TOS checkbox for WordAds?”
Tell an agent
Accept the WordAds Terms of Service for site {site}.
Check the WordAds TOS box on site {site}.

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-sites-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-sites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Automattic Sites API
  contact:
    name: WordPress.com Developer Resources
    url: https://developer.wordpress.com/docs/api/
  termsOfService: https://wordpress.com/tos/
  x-derived-by: API Evangelist enrichment pipeline
  x-refined-note:
  - x-derived-from differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged sites across 3 of this provider''s published API definitions: automattic-wordpress-com-rest-v1-1-openapi.yml, automattic-wordpress-com-rest-v1-2-openapi.yml, automattic-wordpress-com-rest-v1-3-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://public-api.wordpress.com/rest/v1.1
- url: https://public-api.wordpress.com/rest/v1.2
- url: https://public-api.wordpress.com/rest/v1.3
security:
- bearerAuth: []
tags:


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