Actions13
- Post Actions
- Analytics Actions
- AI Actions
- Account Actions
- Workspace Actions
- Media Actions
Analytics → Get
AI-generatedSummary
Retrieve posting analytics data from SocialRails filtered by time period, platform, and optionally for a specific post.
Inputs
- analyticsOptions — Collection of filters including 'Period' to specify the time range (7, 30, 90, or 365 days), 'Platform' to select a social media platform (or all), and an optional 'Post ID' to get analytics for a specific post.
Output shape
A single JSON object or array containing the analytics data returned by the API, unwrapped from any enclosing 'data' field.
The results may represent aggregate analytics for the chosen period and platform, or detailed analytics for a single post if 'Post ID' is specified. The response shape depends on the API's returned data and may be a list or single object.
Examples
Example 1: Get analytics for all platforms over the past 7 days
Set 'Period' to '7 Days' and 'Platform' to 'All' (default).
Example 2: Get analytics for a specific post on Twitter over the past 30 days
Set 'Period' to '30 Days', 'Platform' to 'Twitter / X', and specify the 'Post ID'.