Analytics
Account, audience, organization and post analytics. Every method returns the raw GraphQL data with the outer wrapper removed. Methods marked untested are mutations that were never called live, because they spend money, start a checkout or change account data.
analytics.accountOverview(opts?)
Get the account overview with metrics for the range and the previous range. from and to are dates or ms and default to the last 28 days. Pass hourly: true for hourly buckets.
analytics.audience(opts?)
Get audience demographics and the active-hours heatmap. from and to are dates or ms and default to the last 28 days.
analytics.profilePreview(restId, fromTime, toTime, opts?)
Get the analytics preview shown on a profile.
analytics.orgOrganic(restId, fromTime, toTime, opts?)
Get a Verified Organization's organic analytics.
analytics.orgAffiliates(opts?)
List affiliates for the organic analytics filter.
analytics.orgAds(restId, fromTime, toTime, opts?)
Get a Verified Organization's ads analytics.
analytics.tweetActivity(restId, fromTime, toTime, opts?)
Get a post's activity between two times.
analytics.tweet(restId, opts?)
Get a post's analytics.
analytics.tweetStored(restId, opts?)
Get a post's stored analytics.
analytics.post(restId, opts?)
Get the post shown on the post analytics page.
analytics.postAudience(restId, fromTimeIncl, toTimeExcl, dimensions, opts?)
Get a post's audience breakdown.
analytics.postFirst48Hours(restId, requestedMetrics, fromTime, toTime, opts?)
Get a post's metrics over its first 48 hours.
analytics.postLast48Hours(restId, requestedMetrics, fromTime, toTime, opts?)
Get a post's organic metrics over the last 48 hours.
analytics.postTotals(restId, requestedMetrics, fromTime, toTime, opts?)
Get a post's metric totals.
analytics.postRealtime(restId, fromTimestamp, toTimestamp, opts?)
Get a post's realtime metrics.