Posta icon

Posta

Manage social media posts, media, accounts, analytics, and webhooks via the Posta API

Analytics → Get Trends

AI-generated

Summary

Retrieve Posta analytics trend data for charts over a selected period and metric, optionally filtered by social account IDs.

Inputs

  • period — Time period: 7 days (7d), 30 days (30d), 90 days (90d), or 12 months (12m). Defaults to 30d.
  • socialAccountIds — Optional comma-separated account IDs to filter by. Passed unchanged to the API when nonempty; omitted when blank.
  • metric — Metric to retrieve: impressions, engagements, or engagement_rate. Defaults to engagements.

Output shape

The API's JSON response, returned as one n8n item if it is an object or one item per element if it is an array.

Response fields are not defined in the source. Makes one GET /analytics/trends request per input item without pagination or extracting nested data. With Continue On Fail enabled, failed requests return an item containing an error message.

Links

Discussion