WordPress
Управление контентом WordPress
WordPress — ведущая в мире open-source CMS, на которой работают сайты, блоги и онлайн-магазины самого разного масштаба. WordPress даёт гибкую платформу для публикации и управления контентом с обширной поддержкой плагинов и тем.
Интеграция WordPress в AACFlow позволяет:
- Управление постами: создавайте, обновляйте, удаляйте, получайте и просматривайте список постов блога с полным контролем над контентом, статусом, категориями и тегами
- Управление страницами: создавайте, обновляйте, удаляйте, получайте и просматривайте список статических страниц
- Работа с медиа: загружайте, получайте, просматривайте и удаляйте медиафайлы — изображения, видео и документы
- Модерация комментариев: создавайте, просматривайте, обновляйте и удаляйте комментарии к постам и страницам
- Организация контента: создавайте и получайте категории и теги для таксономии контента
- Управление пользователями: получайте текущего пользователя, список пользователей и подробные данные о них
- Поиск контента: ищите по всем типам контента сайта WordPress
Интеграция WordPress в AACFlow позволяет вашим AI-агентам автоматизировать публикацию контента и управление сайтом в рамках автоматизированных воркфлоу. Агенты могут создавать и публиковать посты, управлять медиа-активами, модерировать комментарии и организовывать контент — поддерживая сайт актуальным и упорядоченным без ручных действий.
Интегрируйте с WordPress to create, update, и manage posts, pages, media, comments, categories, tags, и users. Supports WordPress.com sites via OAuth и self-hosted WordPress sites using Application Passwords authentication.
Создать новый blog post in WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
title | string | Да | Post title |
content | string | Нет | Post content (HTML or plain text) |
status | string | Нет | Post status: publish, draft, pending, private, or future |
excerpt | string | Нет | Post excerpt |
categories | string | Нет | Comma-separated category IDs |
tags | string | Нет | Comma-separated tag IDs |
featuredMedia | number | Нет | Featured image media ID |
slug | string | Нет | URL slug for the post |
| Параметр | Тип | Описание |
|---|
post | object | The created post |
↳ id | number | Post ID |
↳ date | string | Post creation date |
↳ modified | string | Post modification date |
↳ slug | string | Post slug |
↳ status | string | Post status |
↳ type | string | Post type |
↳ link | string | Post URL |
↳ title | object | Post title object |
↳ content | object | Post content object |
↳ excerpt | object | Post excerpt object |
↳ author | number | Author ID |
↳ featured_media | number | Featured media ID |
↳ categories | array | Category IDs |
↳ tags | array | Tag IDs |
Обновитьn existing blog post in WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
postId | number | Да | The ID of the post to update |
title | string | Нет | Post title |
content | string | Нет | Post content (HTML or plain text) |
status | string | Нет | Post status: publish, draft, pending, private, or future |
excerpt | string | Нет | Post excerpt |
categories | string | Нет | Comma-separated category IDs |
tags | string | Нет | Comma-separated tag IDs |
featuredMedia | number | Нет | Featured image media ID |
slug | string | Нет | URL slug for the post |
| Параметр | Тип | Описание |
|---|
post | object | The updated post |
↳ id | number | Post ID |
↳ date | string | Post creation date |
↳ modified | string | Post modification date |
↳ slug | string | Post slug |
↳ status | string | Post status |
↳ type | string | Post type |
↳ link | string | Post URL |
↳ title | object | Post title object |
↳ content | object | Post content object |
↳ excerpt | object | Post excerpt object |
↳ author | number | Author ID |
↳ featured_media | number | Featured media ID |
↳ categories | array | Category IDs |
↳ tags | array | Tag IDs |
Удалить blog post from WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
postId | number | Да | The ID of the post to delete |
force | boolean | Нет | Bypass trash and force delete permanently |
| Параметр | Тип | Описание |
|---|
deleted | boolean | Произошла ли post was deleted |
post | object | The deleted post |
↳ id | number | Post ID |
↳ date | string | Post creation date |
↳ modified | string | Post modification date |
↳ slug | string | Post slug |
↳ status | string | Post status |
↳ type | string | Post type |
↳ link | string | Post URL |
↳ title | object | Post title object |
↳ content | object | Post content object |
↳ excerpt | object | Post excerpt object |
↳ author | number | Author ID |
↳ featured_media | number | Featured media ID |
↳ categories | array | Category IDs |
↳ tags | array | Tag IDs |
Получить a single blog post from WordPress.com от ID
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
postId | number | Да | The ID of the post to retrieve |
| Параметр | Тип | Описание |
|---|
post | object | The retrieved post |
↳ id | number | Post ID |
↳ date | string | Post creation date |
↳ modified | string | Post modification date |
↳ slug | string | Post slug |
↳ status | string | Post status |
↳ type | string | Post type |
↳ link | string | Post URL |
↳ title | object | Post title object |
↳ content | object | Post content object |
↳ excerpt | object | Post excerpt object |
↳ author | number | Author ID |
↳ featured_media | number | Featured media ID |
↳ categories | array | Category IDs |
↳ tags | array | Tag IDs |
Список blog posts from WordPress.com с optional filters
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
perPage | number | Нет | Number of posts per page (e.g., 10, 25, 50). Default: 10, max: 100 |
page | number | Нет | Page number for постраничная выборка (e.g., 1, 2, 3) |
status | string | Нет | Post status filter: publish, draft, pending, private |
author | number | Нет | Filter by author ID (e.g., 1, 42) |
categories | string | Нет | Comma-separated category IDs to filter by (e.g., "1,2,3") |
tags | string | Нет | Comma-separated tag IDs to filter by (e.g., "5,10,15") |
search | string | Нет | Search term to filter posts (e.g., "tutorial", "announcement") |
orderBy | string | Нет | Order by field: date, id, title, slug, modified |
order | string | Нет | Order direction: asc or desc |
| Параметр | Тип | Описание |
|---|
posts | array | List of posts |
↳ id | number | Post ID |
↳ date | string | Post creation date |
↳ modified | string | Post modification date |
↳ slug | string | Post slug |
↳ status | string | Post status |
↳ type | string | Post type |
↳ link | string | Post URL |
↳ title | object | Post title object |
↳ content | object | Post content object |
↳ excerpt | object | Post excerpt object |
↳ author | number | Author ID |
↳ featured_media | number | Featured media ID |
↳ categories | array | Category IDs |
↳ tags | array | Tag IDs |
total | number | Total number of posts |
totalPages | number | Total number of pages |
Создать новый page in WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
title | string | Да | Page title |
content | string | Нет | Page content (HTML or plain text) |
status | string | Нет | Page status: publish, draft, pending, private |
excerpt | string | Нет | Page excerpt |
parent | number | Нет | Parent page ID for hierarchical pages |
menuOrder | number | Нет | Order in page menu |
featuredMedia | number | Нет | Featured image media ID |
slug | string | Нет | URL slug for the page |
| Параметр | Тип | Описание |
|---|
page | object | The created page |
↳ id | number | Page ID |
↳ date | string | Page creation date |
↳ modified | string | Page modification date |
↳ slug | string | Page slug |
↳ status | string | Page status |
↳ type | string | Content type |
↳ link | string | Page URL |
↳ title | object | Page title object |
↳ content | object | Page content object |
↳ excerpt | object | Page excerpt object |
↳ author | number | Author ID |
↳ featured_media | number | Featured media ID |
↳ parent | number | Parent page ID |
↳ menu_order | number | Menu order |
Обновитьn existing page in WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
pageId | number | Да | The ID of the page to update |
title | string | Нет | Page title |
content | string | Нет | Page content (HTML or plain text) |
status | string | Нет | Page status: publish, draft, pending, private |
excerpt | string | Нет | Page excerpt |
parent | number | Нет | Parent page ID for hierarchical pages |
menuOrder | number | Нет | Order in page menu |
featuredMedia | number | Нет | Featured image media ID |
slug | string | Нет | URL slug for the page |
| Параметр | Тип | Описание |
|---|
page | object | The updated page |
↳ id | number | Page ID |
↳ date | string | Page creation date |
↳ modified | string | Page modification date |
↳ slug | string | Page slug |
↳ status | string | Page status |
↳ type | string | Content type |
↳ link | string | Page URL |
↳ title | object | Page title object |
↳ content | object | Page content object |
↳ excerpt | object | Page excerpt object |
↳ author | number | Author ID |
↳ featured_media | number | Featured media ID |
↳ parent | number | Parent page ID |
↳ menu_order | number | Menu order |
Удалить page from WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
pageId | number | Да | The ID of the page to delete |
force | boolean | Нет | Bypass trash and force delete permanently |
| Параметр | Тип | Описание |
|---|
deleted | boolean | Произошла ли page was deleted |
page | object | The deleted page |
↳ id | number | Page ID |
↳ date | string | Page creation date |
↳ modified | string | Page modification date |
↳ slug | string | Page slug |
↳ status | string | Page status |
↳ type | string | Content type |
↳ link | string | Page URL |
↳ title | object | Page title object |
↳ content | object | Page content object |
↳ excerpt | object | Page excerpt object |
↳ author | number | Author ID |
↳ featured_media | number | Featured media ID |
↳ parent | number | Parent page ID |
↳ menu_order | number | Menu order |
Получить a single page from WordPress.com от ID
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
pageId | number | Да | The ID of the page to retrieve |
| Параметр | Тип | Описание |
|---|
page | object | The retrieved page |
↳ id | number | Page ID |
↳ date | string | Page creation date |
↳ modified | string | Page modification date |
↳ slug | string | Page slug |
↳ status | string | Page status |
↳ type | string | Content type |
↳ link | string | Page URL |
↳ title | object | Page title object |
↳ content | object | Page content object |
↳ excerpt | object | Page excerpt object |
↳ author | number | Author ID |
↳ featured_media | number | Featured media ID |
↳ parent | number | Parent page ID |
↳ menu_order | number | Menu order |
Список pages from WordPress.com с optional filters
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
perPage | number | Нет | Number of pages per request (e.g., 10, 25, 50). Default: 10, max: 100 |
page | number | Нет | Page number for постраничная выборка (e.g., 1, 2, 3) |
status | string | Нет | Page status filter: publish, draft, pending, private |
parent | number | Нет | Filter by parent page ID (e.g., 123) |
search | string | Нет | Search term to filter pages (e.g., "about", "contact") |
orderBy | string | Нет | Order by field: date, id, title, slug, modified, menu_order |
order | string | Нет | Order direction: asc or desc |
| Параметр | Тип | Описание |
|---|
pages | array | List of pages |
↳ id | number | Page ID |
↳ date | string | Page creation date |
↳ modified | string | Page modification date |
↳ slug | string | Page slug |
↳ status | string | Page status |
↳ type | string | Content type |
↳ link | string | Page URL |
↳ title | object | Page title object |
↳ content | object | Page content object |
↳ excerpt | object | Page excerpt object |
↳ author | number | Author ID |
↳ featured_media | number | Featured media ID |
↳ parent | number | Parent page ID |
↳ menu_order | number | Menu order |
total | number | Total number of pages |
totalPages | number | Total number of result pages |
Загрузить a media file (image, video, document) to WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
file | file | Нет | File to upload (UserFile object) |
filename | string | Нет | Optional filename override (e.g., image.jpg) |
title | string | Нет | Media title |
caption | string | Нет | Media caption |
altText | string | Нет | Alternative text for accessibility |
description | string | Нет | Media description |
| Параметр | Тип | Описание |
|---|
media | object | The uploaded media item |
↳ id | number | Media ID |
↳ date | string | Upload date |
↳ slug | string | Media slug |
↳ type | string | Content type |
↳ link | string | Media page URL |
↳ title | object | Media title object |
↳ caption | object | Media caption object |
↳ alt_text | string | Alt text |
↳ media_type | string | Media type (image, video, etc.) |
↳ mime_type | string | MIME type |
↳ source_url | string | Direct URL to the media file |
↳ media_details | object | Media details (dimensions, etc.) |
Получить a single media item from WordPress.com от ID
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
mediaId | number | Да | The ID of the media item to retrieve |
| Параметр | Тип | Описание |
|---|
media | object | The retrieved media item |
↳ id | number | Media ID |
↳ date | string | Upload date |
↳ slug | string | Media slug |
↳ type | string | Content type |
↳ link | string | Media page URL |
↳ title | object | Media title object |
↳ caption | object | Media caption object |
↳ alt_text | string | Alt text |
↳ media_type | string | Media type (image, video, etc.) |
↳ mime_type | string | MIME type |
↳ source_url | string | Direct URL to the media file |
↳ media_details | object | Media details (dimensions, etc.) |
Список media items from the WordPress.com media library
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
perPage | number | Нет | Number of media items per request (e.g., 10, 25, 50). Default: 10, max: 100 |
page | number | Нет | Page number for постраничная выборка (e.g., 1, 2, 3) |
search | string | Нет | Search term to filter media (e.g., "logo", "banner") |
mediaType | string | Нет | Filter by media type: image, video, audio, application |
mimeType | string | Нет | Filter by specific MIME type (e.g., image/jpeg, image/png) |
orderBy | string | Нет | Order by field: date, id, title, slug |
order | string | Нет | Order direction: asc or desc |
| Параметр | Тип | Описание |
|---|
media | array | List of media items |
↳ id | number | Media ID |
↳ date | string | Upload date |
↳ slug | string | Media slug |
↳ type | string | Content type |
↳ link | string | Media page URL |
↳ title | object | Media title object |
↳ caption | object | Media caption object |
↳ alt_text | string | Alt text |
↳ media_type | string | Media type (image, video, etc.) |
↳ mime_type | string | MIME type |
↳ source_url | string | Direct URL to the media file |
↳ media_details | object | Media details (dimensions, etc.) |
total | number | Total number of media items |
totalPages | number | Total number of result pages |
Удалить media item from WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
mediaId | number | Да | The ID of the media item to delete |
force | boolean | Нет | Force delete (media has no trash, so deletion is permanent) |
| Параметр | Тип | Описание |
|---|
deleted | boolean | Произошла ли media was deleted |
media | object | The deleted media item |
↳ id | number | Media ID |
↳ date | string | Upload date |
↳ slug | string | Media slug |
↳ type | string | Content type |
↳ link | string | Media page URL |
↳ title | object | Media title object |
↳ caption | object | Media caption object |
↳ alt_text | string | Alt text |
↳ media_type | string | Media type (image, video, etc.) |
↳ mime_type | string | MIME type |
↳ source_url | string | Direct URL to the media file |
↳ media_details | object | Media details (dimensions, etc.) |
Создать новый comment on a WordPress.com post
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
postId | number | Да | The ID of the post to comment on |
content | string | Да | Comment content |
parent | number | Нет | Parent comment ID for replies |
authorName | string | Нет | Comment author display name |
authorEmail | string | Нет | Comment author email |
authorUrl | string | Нет | Comment author URL |
| Параметр | Тип | Описание |
|---|
comment | object | The created comment |
↳ id | number | Comment ID |
↳ post | number | Post ID |
↳ parent | number | Parent comment ID |
↳ author | number | Author user ID |
↳ author_name | string | Author display name |
↳ author_email | string | Author email |
↳ author_url | string | Author URL |
↳ date | string | Comment date |
↳ content | object | Comment content object |
↳ link | string | Comment permalink |
↳ status | string | Comment status |
Список comments from WordPress.com с optional filters
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
perPage | number | Нет | Number of comments per request (e.g., 10, 25, 50). Default: 10, max: 100 |
page | number | Нет | Page number for постраничная выборка (e.g., 1, 2, 3) |
postId | number | Нет | Filter by post ID (e.g., 123, 456) |
status | string | Нет | Filter by comment status: approved, hold, spam, trash |
search | string | Нет | Search term to filter comments (e.g., "question", "feedback") |
orderBy | string | Нет | Order by field: date, id, parent |
order | string | Нет | Order direction: asc or desc |
| Параметр | Тип | Описание |
|---|
comments | array | List of comments |
↳ id | number | Comment ID |
↳ post | number | Post ID |
↳ parent | number | Parent comment ID |
↳ author | number | Author user ID |
↳ author_name | string | Author display name |
↳ author_email | string | Author email |
↳ author_url | string | Author URL |
↳ date | string | Comment date |
↳ content | object | Comment content object |
↳ link | string | Comment permalink |
↳ status | string | Comment status |
total | number | Total number of comments |
totalPages | number | Total number of result pages |
Обновить comment in WordPress.com (content или status)
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
commentId | number | Да | The ID of the comment to update |
content | string | Нет | Updated comment content |
status | string | Нет | Comment status: approved, hold, spam, trash |
| Параметр | Тип | Описание |
|---|
comment | object | The updated comment |
↳ id | number | Comment ID |
↳ post | number | Post ID |
↳ parent | number | Parent comment ID |
↳ author | number | Author user ID |
↳ author_name | string | Author display name |
↳ author_email | string | Author email |
↳ author_url | string | Author URL |
↳ date | string | Comment date |
↳ content | object | Comment content object |
↳ link | string | Comment permalink |
↳ status | string | Comment status |
Удалить comment from WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
commentId | number | Да | The ID of the comment to delete |
force | boolean | Нет | Bypass trash and force delete permanently |
| Параметр | Тип | Описание |
|---|
deleted | boolean | Произошла ли comment was deleted |
comment | object | The deleted comment |
↳ id | number | Comment ID |
↳ post | number | Post ID |
↳ parent | number | Parent comment ID |
↳ author | number | Author user ID |
↳ author_name | string | Author display name |
↳ author_email | string | Author email |
↳ author_url | string | Author URL |
↳ date | string | Comment date |
↳ content | object | Comment content object |
↳ link | string | Comment permalink |
↳ status | string | Comment status |
Создать новый category in WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
name | string | Да | Category name |
description | string | Нет | Category description |
parent | number | Нет | Parent category ID for hierarchical categories |
slug | string | Нет | URL slug for the category |
| Параметр | Тип | Описание |
|---|
category | object | The created category |
↳ id | number | Category ID |
↳ count | number | Number of posts in this category |
↳ description | string | Category description |
↳ link | string | Category archive URL |
↳ name | string | Category name |
↳ slug | string | Category slug |
↳ taxonomy | string | Taxonomy name |
↳ parent | number | Parent category ID |
Список categories from WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
perPage | number | Нет | Number of categories per request (e.g., 10, 25, 50). Default: 10, max: 100 |
page | number | Нет | Page number for постраничная выборка (e.g., 1, 2, 3) |
search | string | Нет | Search term to filter categories (e.g., "news", "technology") |
order | string | Нет | Order direction: asc or desc |
| Параметр | Тип | Описание |
|---|
categories | array | List of categories |
↳ id | number | Category ID |
↳ count | number | Number of posts in this category |
↳ description | string | Category description |
↳ link | string | Category archive URL |
↳ name | string | Category name |
↳ slug | string | Category slug |
↳ taxonomy | string | Taxonomy name |
↳ parent | number | Parent category ID |
total | number | Total number of categories |
totalPages | number | Total number of result pages |
Создать новый tag in WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
name | string | Да | Tag name |
description | string | Нет | Tag description |
slug | string | Нет | URL slug for the tag |
| Параметр | Тип | Описание |
|---|
tag | object | The created tag |
↳ id | number | Tag ID |
↳ count | number | Number of posts with this tag |
↳ description | string | Tag description |
↳ link | string | Tag archive URL |
↳ name | string | Tag name |
↳ slug | string | Tag slug |
↳ taxonomy | string | Taxonomy name |
Список tags from WordPress.com
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
perPage | number | Нет | Number of tags per request (e.g., 10, 25, 50). Default: 10, max: 100 |
page | number | Нет | Page number for постраничная выборка (e.g., 1, 2, 3) |
search | string | Нет | Search term to filter tags (e.g., "javascript", "tutorial") |
order | string | Нет | Order direction: asc or desc |
| Параметр | Тип | Описание |
|---|
tags | array | List of tags |
↳ id | number | Tag ID |
↳ count | number | Number of posts with this tag |
↳ description | string | Tag description |
↳ link | string | Tag archive URL |
↳ name | string | Tag name |
↳ slug | string | Tag slug |
↳ taxonomy | string | Taxonomy name |
total | number | Total number of tags |
totalPages | number | Total number of result pages |
Получить информацию о the currently authenticated WordPress.com user
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
| Параметр | Тип | Описание |
|---|
user | object | The current user |
↳ id | number | User ID |
↳ username | string | Username |
↳ name | string | Display name |
↳ first_name | string | First name |
↳ last_name | string | Last name |
↳ email | string | Email address |
↳ url | string | User website URL |
↳ description | string | User bio |
↳ link | string | Author archive URL |
↳ slug | string | User slug |
↳ roles | array | User roles |
↳ avatar_urls | object | Avatar URLs at different sizes |
Список users from WordPress.com (requires admin privileges)
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
perPage | number | Нет | Number of users per request (e.g., 10, 25, 50). Default: 10, max: 100 |
page | number | Нет | Page number for постраничная выборка (e.g., 1, 2, 3) |
search | string | Нет | Search term to filter users (e.g., "john", "admin") |
roles | string | Нет | Comma-separated role names to filter by (e.g., "administrator,editor") |
order | string | Нет | Order direction: asc or desc |
| Параметр | Тип | Описание |
|---|
users | array | List of users |
↳ id | number | User ID |
↳ username | string | Username |
↳ name | string | Display name |
↳ first_name | string | First name |
↳ last_name | string | Last name |
↳ email | string | Email address |
↳ url | string | User website URL |
↳ description | string | User bio |
↳ link | string | Author archive URL |
↳ slug | string | User slug |
↳ roles | array | User roles |
↳ avatar_urls | object | Avatar URLs at different sizes |
total | number | Total number of users |
totalPages | number | Total number of result pages |
Получить a specific user from WordPress.com от ID
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
userId | number | Да | The ID of the user to retrieve |
| Параметр | Тип | Описание |
|---|
user | object | The retrieved user |
↳ id | number | User ID |
↳ username | string | Username |
↳ name | string | Display name |
↳ first_name | string | First name |
↳ last_name | string | Last name |
↳ email | string | Email address |
↳ url | string | User website URL |
↳ description | string | User bio |
↳ link | string | Author archive URL |
↳ slug | string | User slug |
↳ roles | array | User roles |
↳ avatar_urls | object | Avatar URLs at different sizes |
Поиск across all content types in WordPress.com (posts, pages, media)
| Параметр | Тип | Обязательный | Описание |
|---|
siteId | string | Да | WordPress.com site ID or domain (e.g., 12345678 or mysite.wordpress.com) |
query | string | Да | Search query |
perPage | number | Нет | Number of results per request (default: 10, max: 100) |
page | number | Нет | Page number for постраничная выборка |
type | string | Нет | Filter by content type: post, page, attachment |
subtype | string | Нет | Filter by post type slug (e.g., post, page) |
| Параметр | Тип | Описание |
|---|
results | array | Search results |
↳ id | number | Content ID |
↳ title | string | Content title |
↳ url | string | Content URL |
↳ type | string | Content type (post, page, attachment) |
↳ subtype | string | Post type slug |
total | number | Total number of results |
totalPages | number | Total number of result pages |