Automattic Comments API

The comments API from Automattic — 14 operation(s) for comments.

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 20

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}/comment-counts Count a site's comments by status · Get comment counts for each available status #
Ask an LLM
“How many comments are approved, pending or spam on my site?”
“Can I get comment counts for just one post?”
Tell an agent
Get comment counts for site {site}.
Show comment counts for site {site} on post {post_id}.
GET /sites/{site}/comment-history/{comment_ID} See the audit history of a comment · Get the audit history for given comment #
Ask an LLM
“Who edited a comment and when?”
“Can I audit the changes made to a single comment?”
Tell an agent
Show the audit history of comment {comment_ID} on site {site}.
List every edit made to comment {comment_ID} on {site}.
GET /sites/{site}/comments/ List recent comments on a site · Get a list of recent comments #
Ask an LLM
“What are the latest comments on my site?”
“Can I list only approved comments on a site?”
Tell an agent
List recent comments on site {site}.
Show {number} {status} comments on site {site}.
GET /sites/{site}/comments/{comment_ID} Get one comment · Get a single comment #
Ask an LLM
“What does a specific comment say?”
“Can I fetch a single comment by its ID?”
Tell an agent
Get comment {comment_ID} on site {site}.
Show the text of comment {comment_ID} from {site}.
POST /sites/{site}/comments/{comment_ID} Edit a comment · Edit a comment #
Ask an LLM
“How do I change the text of an existing comment?”
“Can I approve or mark a comment as spam?”
Tell an agent
Edit comment {comment_ID} on site {site} to say {content}.
Set the status of comment {comment_ID} on {site} to {status}.
POST /sites/{site}/comments/{comment_ID}/delete Delete a comment via the action endpoint · Delete a comment #
Ask an LLM
“How do I delete a comment using the delete action on the comment endpoint?”
“Can I use the action endpoint to remove a single comment by ID?”
Tell an agent destructive · confirm first
Delete comment {comment_ID} on site {site} using the action endpoint.
Run the delete action on comment {comment_ID} for site {site}.
GET /sites/{site}/comments/{comment_ID}/likes/ List likes on a comment · Get the likes for a comment #
Ask an LLM
“How many likes has a comment received?”
“Who has liked a particular comment?”
Tell an agent
Show the likes on comment {comment_ID} of site {site}.
List every user who liked comment {comment_ID} on {site}.
GET /sites/{site}/comments/{comment_ID}/likes/mine/ Check my like on a comment · Get your like status for a comment #
Ask an LLM
“Have I already liked this comment?”
“Is my like on a comment still recorded?”
Tell an agent
Check whether I like comment {comment_ID} on site {site}.
Show my like status for comment {comment_ID} from {site}.
POST /sites/{site}/comments/{comment_ID}/likes/mine/delete Remove my like from a comment · Remove your like from a comment #
Ask an LLM
“How do I take back a like I gave on a comment?”
“Can I unlike a comment?”
Tell an agent destructive · confirm first
Remove my like from comment {comment_ID} on site {site}.
Unlike comment {comment_ID} for {site}.
POST /sites/{site}/comments/{comment_ID}/likes/new Like a comment · Like a comment #
Ask an LLM
“How do I like a comment on my site?”
“Can I upvote a comment with a like?”
Tell an agent
Like comment {comment_ID} on site {site}.
Give a thumbs-up to comment {comment_ID} from {site}.
POST /sites/{site}/comments/{comment_ID}/replies/new Reply to a comment · Create a comment as a reply to another comment #
Ask an LLM
“How do I reply to a comment on a post?”
“Can I post a reply as a nested comment?”
Tell an agent
Reply {content} to comment {comment_ID} on site {site}.
Post a reply to comment {comment_ID} on {site}.
GET /sites/{site}/posts/{post_ID}/replies/ List comments on a post · Get a list of recent comments on a post #
Ask an LLM
“What comments have been left on a particular post?”
“Can I list only approved comments on one post?”
Tell an agent
List comments on post {post_ID} of site {site}.
Show {number} {status} comments on post {post_ID} from {site}.
POST /sites/{site}/posts/{post_ID}/replies/new Comment on a post · Create a comment on a post #
Ask an LLM
“How do I post a comment on a post?”
“Can I leave a comment on a WordPress post through the API?”
Tell an agent
Comment {content} on post {post_ID} of site {site}.
Post a comment on {site}'s post {post_ID}.
GET /wp/v2/sites/{wpcom_site}/comments List comments on a WordPress.com site · GET /wp/v2/sites/{wpcom_site}/comments #
Ask an LLM
“How do I list comments on a WordPress.com site?”
“Can I filter WordPress.com comments by status or author?”
Tell an agent
List comments on WordPress.com site {wpcom_site}.
Show {status} comments on {wpcom_site} by author {author}.
POST /wp/v2/sites/{wpcom_site}/comments Comment on a WordPress.com post · POST /wp/v2/sites/{wpcom_site}/comments #
Ask an LLM
“How do I post a comment on a WordPress.com site?”
“Can I set the author name and email when commenting on WordPress.com?”
Tell an agent
Comment {content} on WordPress.com site {wpcom_site}.
Post a comment on {wpcom_site} as {author_name} with email {author_email}.
GET /wp/v2/sites/{wpcom_site}/comments/{id} Get a WordPress.com comment · GET /wp/v2/sites/{wpcom_site}/comments/{id} #
Ask an LLM
“What does a specific comment on a WordPress.com site say?”
“Can I fetch a WordPress.com comment by its ID?”
Tell an agent
Get comment {id} on WordPress.com site {wpcom_site}.
Show WordPress.com comment {id} from {wpcom_site}.
POST /wp/v2/sites/{wpcom_site}/comments/{id} Edit a WordPress.com comment (legacy POST) · POST /wp/v2/sites/{wpcom_site}/comments/{id} #
Ask an LLM
“Is there an older POST method for editing a WordPress.com comment?”
“Can I change a WordPress.com comment using the legacy comment edit endpoint?”
Tell an agent
Edit WordPress.com comment {id} on {wpcom_site} with the legacy POST endpoint.
Use the legacy comment edit POST to change comment {id} on {wpcom_site}.
PUT /wp/v2/sites/{wpcom_site}/comments/{id} Replace a WordPress.com comment · PUT /wp/v2/sites/{wpcom_site}/comments/{id} #
Ask an LLM
“How do I overwrite a comment on a WordPress.com site?”
“Can I fully replace a WordPress.com comment with new text?”
Tell an agent
Replace comment {id} on WordPress.com site {wpcom_site} with {content}.
Overwrite WordPress.com comment {id} on {wpcom_site} entirely.
PATCH /wp/v2/sites/{wpcom_site}/comments/{id} Update a WordPress.com comment · PATCH /wp/v2/sites/{wpcom_site}/comments/{id} #
Ask an LLM
“How do I change just the text of a WordPress.com comment?”
“Can I approve a WordPress.com comment without resending the whole comment?”
Tell an agent
Patch comment {id} on WordPress.com site {wpcom_site} to say {content}.
Update WordPress.com comment {id} on {wpcom_site} to status {status}.
DELETE /wp/v2/sites/{wpcom_site}/comments/{id} Delete a WordPress.com comment · DELETE /wp/v2/sites/{wpcom_site}/comments/{id} #
Ask an LLM
“How do I delete a comment from a WordPress.com site?”
“Can I force-delete a WordPress.com comment?”
Tell an agent destructive · confirm first
Delete comment {id} from WordPress.com site {wpcom_site}.
Force-delete WordPress.com comment {id} on {wpcom_site} with force {force}.

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-comments-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-comments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Automattic Comments API
  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 comments 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-wp-v2-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
security:
- bearerAuth: []
tags:


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