get-top-posts
Retrieve a WordPress site's most viewed posts and pages within a specified time period using authenticated API access. Ideal for analyzing site traffic and content performance.
Instructions
View a site's top posts and pages by views
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | No | Maximum number of posts to return | |
password | Yes | WordPress application password | |
period | No | Time period for stats | |
siteId | Yes | WordPress site ID | |
siteUrl | Yes | WordPress site URL | |
username | Yes | WordPress username |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"limit": {
"description": "Maximum number of posts to return",
"maximum": 100,
"minimum": 1,
"type": "number"
},
"password": {
"description": "WordPress application password",
"type": "string"
},
"period": {
"description": "Time period for stats",
"enum": [
"day",
"week",
"month",
"year"
],
"type": "string"
},
"siteId": {
"description": "WordPress site ID",
"type": "number"
},
"siteUrl": {
"description": "WordPress site URL",
"format": "uri",
"type": "string"
},
"username": {
"description": "WordPress username",
"type": "string"
}
},
"required": [
"siteUrl",
"username",
"password",
"siteId"
],
"type": "object"
}