Back to WordPress
Connect Knoon AI with WordPress to automate AI workflows.
List media items from WordPress media library.
wordpressXmlRpcDefaultDefaultGetMediaLibrary
BETA
Permissions
There are no items to display.
Optional permissions
There are no items to display.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| search | mustache | Optional search query. | No |
| mediaType | string | Optional media type. | No |
| mimeType | mustache | Optional mime type. Example: image/jpeg. | No |
| parentId | mustache | Optional parent post ID. | No |
| limit | mustache | Rows per page (1-100). Defaults to 20. | No |
| page | mustache | Page number. Defaults to 1. | No |
Returns
| Name | Type | Description |
|---|---|---|
| mediaId | string | WordPress media ID. |
| sourceUrl | string | Public media URL. |
| mimeType | string | Media MIME type. |
| fileName | string | Media file name. |
| title | string | Media title. |
| altText | string | Media alt text. |
| caption | string | Media caption. |