{"library":"wpcom","type":"library","category":null,"description":"The official JavaScript library for the WordPress.com REST API, version 7.1.1. It provides a comprehensive client for interacting with WordPress.com sites, including posts, media, comments, and user data. Built with modern JavaScript, it ships TypeScript definitions and supports both ESM (ES Modules) and CommonJS. Released actively alongside the WordPress.com platform, it is the recommended client for WordPress.com API integration, offering methods that return Promises and support for OAuth2 authentication. Its key differentiator is direct support and maintenance by Automattic, ensuring compatibility with WordPress.com's REST API endpoints.","language":"javascript","status":"active","version":"7.1.1","tags":["javascript","wordpress","wordpress.com","browser","rest","api","library","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install wpcom","imports":["import WPCOM from 'wpcom'","const WPCOM = require('wpcom').default","import WPCOM from 'wpcom';\nconst wp = new WPCOM( '<your-token>' );\nconst site = wp.site( 'site-id' );","import WPCOM from 'wpcom';\nconst req = WPCOM.Request;"]},{"cmd":"yarn add wpcom","imports":[]},{"cmd":"pnpm add wpcom","imports":[]}],"homepage":"https://github.com/Automattic/wp-calypso","github":"https://github.com/Automattic/wp-calypso","docs":null,"changelog":null,"pypi":null,"npm":"wpcom","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}