Automattic Wpcom API

The Wpcom API from Automattic — 3 operation(s) for wpcom.

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 4

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 /wpcom/v2/ai-plugin/sites List sites with the AI plugin · Get the list of sites #
Ask an LLM
“Which of my sites have the AI plugin enabled?”
“Can I search my sites for one by name?”
Tell an agent
List all my sites.
Find sites matching {search}.
GET /wpcom/v2/sites/{site_id}/ai-plugin/posts List a site's AI-generated posts · Get the list of posts for a site #
Ask an LLM
“What AI-generated posts exist on my site?”
“Can I search a site's AI posts by keyword?”
Tell an agent
List AI posts on site {site_id}.
Find AI posts on {site_id} matching {search}.
POST /wpcom/v2/sites/{site_id}/ai-plugin/posts Create an AI-generated blog post · Create a post #
Ask an LLM
“How do I generate a blog post with the AI plugin?”
“Can I write an AI post with a title and content?”
Tell an agent
Create an AI post on site {site_id} titled {title}.
Write an AI post on {site_id} with content {content}.
GET /wpcom/v2/sites/{site_id}/ai-plugin/posts/{post_id} Get an AI-generated post · Get a post #
Ask an LLM
“Can I read one AI-generated post by its ID?”
“What does a specific AI post on my site say?”
Tell an agent
Get AI post {post_id} on site {site_id}.
Show the content of AI post {post_id} from {site_id}.

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-wpcom-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-wpcom-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Jetpack AI-Plugin Wpcom API
  description: List and create blog posts on your Jetpack and WordPress.com sites.
  version: v1
servers:
- url: https://public-api.wordpress.com
tags:
- name: Wpcom
paths:
  /wpcom/v2/ai-plugin/sites:
    get:
      operationId: getSites
      summary: Get the list of sites
      parameters:
      - name: search
        in: query
        description: Limit results to those matching a string.
        schema:
          type: string
      - name: page
        in: query
        description: The page number of the results to return.
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getSitesResponse'
      tags:
      - Wpcom
  /wpcom/v2/sites/{site_id}/ai-plugin/posts:
    get:
      operationId: getPosts
      summary: Get the list of posts for a site
      parameters:
      - name: site_id
        in: path
        description: The site ID
        required: true
        schema:
          type: integer
      - name: page
        in: query
        description: The page number of the results to return.
        schema:
          type: integer
          default: 1
      - name: search
        in: query
        description: Limit results to those matching a string.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getPostsResponse'
      tags:
      - Wpcom
    post:
      operationId: createPost
      summary: Create a post
      parameters:
      - name: site_id
        in: path
        description: The site ID
        required: true
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequestPost'
      responses:
        '201':
          description: CREATED
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsePost'
      tags:
      - Wpcom
  /wpcom/v2/sites/{site_id}/ai-plugin/posts/{post_id}:
    get:
      operationId: getPost
      summary: Get a post
      parameters:
      - name: site_id
        in: path
        description: The site ID
        required: true
        schema:
          type: integer
      - name: post_id
        in: path
        description: The post ID
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsePost'
      tags:
      - Wpcom
components:
  schemas:
    Site:
      type: object
      description: A site
      properties:
        id:
          type: integer
        name:
          type: string
        url:
          type: string
        is_default:
          type: boolean
          description: Whether this is the default site. Use this site for all requests that don't specify a site ID.
    ResponsePost:
      type: object
      description: A post
      properties:
        id:
          type: integer
        date:
          type: string
        status:
          type: string
        type:
          type: string
        link:
          type: string
        title:
          type: string
        content:
          type: string
          description: The content in Markdown format
        _links:
          type: object
          properties:
            edit:
              type: string
            preview:
              type: string
    getSitesResponse:
      type: object
      properties:
        sites:
          type: array
          items:
            $ref: '#/components/schemas/Site'
        total_pages:
          type: integer
          description: The total number of pages worth of sites
    RequestPost:
      type: object
      description: A post
      properties:
        title:
          type: string
        content:
          type: string
    getPostsResponse:
      type: object
      properties:
        posts:
          type: array
          items:
            $ref: '#/components/schemas/ResponsePost'
        total_pages:
          type: integer
          description: The total number of pages worth of posts