Перейти к основному содержанию

get_analytics_accounts

Retrieve metrics for a specific social media account (e.g., number of followers) over a given time range.

Parameters

  • project_id (integer, required): Project ID.
  • account_id (integer, required): Account ID.
  • date_from (string, required): Start date (YYYY-MM-DD).
  • date_to (string, required): End date (YYYY-MM-DD).
  • metrics (string, required): Comma-separated list of metrics (e.g., followers,subscribed).

Example Request

curl -X POST https://mcp.postmypost.io/v1/tools/call \
-H "Authorization: Bearer <your-api-token>" \
-H "Content-Type: application/json" \
-d '{
"name": "get_analytics_accounts",
"arguments": {
"project_id": 123,
"account_id": 1,
"date_from": "2025-01-01",
"date_to": "2025-01-31",
"metrics": "followers"
}
}'