CMS

WordPress.com

WordPress.com hosts blogs and websites, and its REST API also reaches self-hosted WordPress sites connected through Jetpack.

Authentication

  • OAuth 2.0

Actions

Generic API request. Call any WordPress.com API endpoint on this connection, for the case where no shipped action covers it yet. The connection supplies the base URL, the authentication and the egress route, so only the path, query and body are yours to fill.

  • Create postCreate a post on a site from a title and HTML content, with status, date, excerpt, slug, categories, tags, featured image and format.
  • Delete postDestructiveDelete a post.
  • Get meGet the WordPress.com account the connection is signed in as: user ID, username, display name, email, primary site and site count.
  • Get postGet one post with its title, content, excerpt, status, dates, author, categories, tags and featured image.
  • Get siteGet one site's profile: ID, title, tagline, URL, whether it is private or a Jetpack site, and its post and subscriber counts.
  • Get site stats summaryGet a site's traffic totals — views, unique visitors, likes, comments and reblogs — for a day, week, month or year ending on a given date, plus its follower count.
  • List categoriesList a site's categories with their IDs, names, slugs and post counts, optionally searched by name or slug and sorted by name or post count.
  • List commentsList a site's comments across all posts, newest first, filtered by moderation status (approved, the moderation queue, spam, trash) and type.
  • List mediaList a site's media library — images, documents, audio and video — with each item's ID, URL, MIME type, title and dimensions, filtered by the post it is attached to, MIME type, search text or upload date.
  • List my sitesList every WordPress.com and Jetpack site the connection's user is a member of, with each site's ID, name and URL.
  • List postsList a site's posts, newest first by default, filtered by status, search text, category, tag, author or date and sorted by date, modification time, title, comment count or ID.
  • List tagsList a site's tags with their IDs, names, slugs and post counts, optionally searched by name or slug and sorted by name or post count.
  • Moderate commentApprove, unapprove, spam, unspam, trash or untrash a comment, optionally correcting its text in the same call.
  • Update postDestructiveEdit an existing post: change its title, content, excerpt, status, date, slug, categories, tags, featured image, format or sticky flag.

Product names, logos and brands are the property of their respective owners and are used here for identification only. Their use does not imply endorsement by, or affiliation with, those owners.