Posta icon

Posta

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

Analytics → Get Posts

AI-generated

Summary

Fetches analytics for Posta posts, optionally filtered by social account IDs and sorted by engagements or impressions. Choose a result limit or enable Return All to retrieve every page.

Inputs

  • Social Account IDs — Optional comma-separated account IDs to filter the posts.
  • Return All — When enabled, fetches all results using paginated requests; otherwise returns up to the configured limit.
  • Limit — Maximum number of results when Return All is disabled; defaults to 20 and accepts values from 1 to 100.
  • Sort By — Sort by engagements or impressions; defaults to engagements.
  • Sort Order — Sort descending or ascending; defaults to descending.

Output shape

A list of n8n items, one per post analytics record.

With Return All disabled, records come from the API response's items array, or an empty list if it is absent. With Return All enabled, the node follows pagination and returns the collected records.

Examples

Example 1: Fetch the 20 most-engaged posts for selected accounts

Leave Return All disabled, set Social Account IDs to comma-separated account IDs, and use the default Engagements sort with Descending order.

Example 2: Fetch all posts sorted by impressions

Enable Return All and set Sort By to Impressions; choose the desired Sort Order.

Links

Discussion