Docs
get_results
How published posts did, over an optional publishedAt range (from/to) and channel/platform filter. `groupBy`: `post` (default; each post, by `pieceId` too, up to `limit`): its latest metrics (impressions, views, likes, comments, shares, saves, clicks as the platform reports them), `fetchedAt` and every fetch; metricsAvailable: false where the platform reports none (`note` says why, not a stuck fetch); `entered`: a person typed them in. Roll-ups, also by `campaign` label: `campaign` (per label; content with several counts in each, none is `campaign: null`, `overall` counts each post once), `format` (per format within each channel account, `bestFormat` per channel), `posting_time` (by hour 0–23, day 0 = Monday … 6 = Sunday, and day × hour, in the workspace's time zone or `timeZone`, IANA; `bestHour`/`bestDay`), `content` (a row per content item over its channels, top 40 by `metric` total, `more` counts the rest; `source: entered`: a person typed them in). `metric` (default `engagements`: likes + comments + shares + saves as each platform reports them) drives the ranking. Totals and averages count only posts that reported the metric (`reportedBy`), never all posts; `unavailable` posts' platform reports nothing, `notFetched` ones aren't checked yet (1 hour, 24 hours and 7 days after going live). A best pick needs two groups with data and no tie; on a small sample it is a hint. Reads at most 5,000 posts (`scope.truncated`). Or `account`: each channel account's own growth over the last `days` (7, 30 or 90; default 30; not from/to/campaign): followers, following and posts with their `change`, the platform's daily reach and views with `totals`, and a daily `series` (a day without a read is missing, not zero); `support: none`: no account read there (`note` says why), `latest: null`: none yet; read once a day.
How published posts did, over an optional publishedAt range (from/to) and channel/platform filter. groupBy: post (default; each post, by pieceId too, up to limit): its latest metrics (impressions, views, likes, comments, shares, saves, clicks as the platform reports them), fetchedAt and every fetch; metricsAvailable: false where the platform reports none (note says why, not a stuck fetch); entered: a person typed them in. Roll-ups, also by campaign label: campaign (per label; content with several counts in each, none is campaign: null, overall counts each post once), format (per format within each channel account, bestFormat per channel), posting_time (by hour 0–23, day 0 = Monday … 6 = Sunday, and day × hour, in the workspace's time zone or timeZone, IANA; bestHour/bestDay), content (a row per content item over its channels, top 40 by metric total, more counts the rest; source: entered: a person typed them in). metric (default engagements: likes + comments + shares + saves as each platform reports them) drives the ranking. Totals and averages count only posts that reported the metric (reportedBy), never all posts; unavailable posts' platform reports nothing, notFetched ones aren't checked yet (1 hour, 24 hours and 7 days after going live). A best pick needs two groups with data and no tie; on a small sample it is a hint. Reads at most 5,000 posts (scope.truncated). Or account: each channel account's own growth over the last days (7, 30 or 90; default 30; not from/to/campaign): followers, following and posts with their change, the platform's daily reach and views with totals, and a daily series (a day without a read is missing, not zero); support: none: no account read there (note says why), latest: null: none yet; read once a day.
Access and cost
- Kind: query
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false
Input schema
{
"properties": {
"workspaceId": {
"format": "uuid",
"type": "string"
},
"from": {
"format": "date-time",
"type": "string"
},
"to": {
"format": "date-time",
"type": "string"
},
"channelAccountId": {
"format": "uuid",
"type": "string"
},
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"campaign": {
"maxLength": 60,
"minLength": 1,
"type": "string"
},
"groupBy": {
"default": "post",
"enum": [
"post",
"campaign",
"format",
"posting_time",
"account",
"content"
],
"type": "string"
},
"pieceId": {
"format": "uuid",
"type": "string"
},
"limit": {
"maximum": 200,
"minimum": 1,
"type": "integer"
},
"metric": {
"default": "engagements",
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"timeZone": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"days": {
"anyOf": [
{
"const": 7,
"type": "number"
},
{
"const": 30,
"type": "number"
},
{
"const": 90,
"type": "number"
}
]
}
},
"required": [
"workspaceId"
],
"type": "object"
}Output schema
{
"oneOf": [
{
"additionalProperties": false,
"properties": {
"posts": {
"items": {
"additionalProperties": false,
"properties": {
"postId": {
"format": "uuid",
"type": "string"
},
"pieceId": {
"format": "uuid",
"type": "string"
},
"pieceTitle": {
"type": "string"
},
"channelAccountId": {
"format": "uuid",
"type": "string"
},
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"handle": {
"type": [
"string",
"null"
]
},
"publishedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"permalink": {
"type": [
"string",
"null"
]
},
"metricsAvailable": {
"type": "boolean"
},
"note": {
"type": [
"string",
"null"
]
},
"entered": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"metrics": {
"additionalProperties": false,
"properties": {
"impressions": {
"minimum": 0,
"type": "number"
},
"views": {
"minimum": 0,
"type": "number"
},
"likes": {
"minimum": 0,
"type": "number"
},
"comments": {
"minimum": 0,
"type": "number"
},
"shares": {
"minimum": 0,
"type": "number"
},
"saves": {
"minimum": 0,
"type": "number"
},
"clicks": {
"minimum": 0,
"type": "number"
}
},
"type": "object"
},
"enteredAt": {
"format": "date-time",
"type": "string"
},
"enteredBy": {
"additionalProperties": false,
"properties": {
"accountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
}
},
"required": [
"accountId",
"name"
],
"type": "object"
}
},
"required": [
"id",
"metrics",
"enteredAt",
"enteredBy"
],
"type": "object"
},
{
"type": "null"
}
]
},
"metrics": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"impressions": {
"minimum": 0,
"type": "number"
},
"views": {
"minimum": 0,
"type": "number"
},
"likes": {
"minimum": 0,
"type": "number"
},
"comments": {
"minimum": 0,
"type": "number"
},
"shares": {
"minimum": 0,
"type": "number"
},
"saves": {
"minimum": 0,
"type": "number"
},
"clicks": {
"minimum": 0,
"type": "number"
}
},
"type": "object"
},
{
"type": "null"
}
]
},
"fetchedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"snapshots": {
"items": {
"additionalProperties": false,
"properties": {
"fetchedAt": {
"format": "date-time",
"type": "string"
},
"metrics": {
"additionalProperties": false,
"properties": {
"impressions": {
"minimum": 0,
"type": "number"
},
"views": {
"minimum": 0,
"type": "number"
},
"likes": {
"minimum": 0,
"type": "number"
},
"comments": {
"minimum": 0,
"type": "number"
},
"shares": {
"minimum": 0,
"type": "number"
},
"saves": {
"minimum": 0,
"type": "number"
},
"clicks": {
"minimum": 0,
"type": "number"
}
},
"type": "object"
}
},
"required": [
"fetchedAt",
"metrics"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"postId",
"pieceId",
"pieceTitle",
"channelAccountId",
"platform",
"handle",
"publishedAt",
"permalink",
"metricsAvailable",
"note",
"entered",
"metrics",
"fetchedAt",
"snapshots"
],
"type": "object"
},
"type": "array"
},
"groupBy": {
"const": "post",
"type": "string"
}
},
"required": [
"posts",
"groupBy"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"scope": {
"additionalProperties": false,
"properties": {
"from": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"to": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"channelAccountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"platform": {
"anyOf": [
{
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
{
"type": "null"
}
]
},
"campaign": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
},
"newestFetchAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"oldestFetchAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"from",
"to",
"channelAccountId",
"platform",
"campaign",
"truncated",
"newestFetchAt",
"oldestFetchAt"
],
"type": "object"
},
"overall": {
"additionalProperties": false,
"properties": {
"posts": {
"minimum": 0,
"type": "integer"
},
"unavailable": {
"minimum": 0,
"type": "integer"
},
"notFetched": {
"minimum": 0,
"type": "integer"
},
"metric": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"total": {
"minimum": 0,
"type": "number"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"metric",
"total",
"reportedBy",
"average"
],
"type": "object"
},
"totals": {
"items": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"total": {
"minimum": 0,
"type": "number"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"metric",
"total",
"reportedBy",
"average"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"posts",
"unavailable",
"notFetched",
"metric",
"totals"
],
"type": "object"
},
"campaigns": {
"items": {
"additionalProperties": false,
"properties": {
"campaign": {
"type": [
"string",
"null"
]
},
"pieces": {
"minimum": 0,
"type": "integer"
},
"results": {
"additionalProperties": false,
"properties": {
"posts": {
"minimum": 0,
"type": "integer"
},
"unavailable": {
"minimum": 0,
"type": "integer"
},
"notFetched": {
"minimum": 0,
"type": "integer"
},
"metric": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"total": {
"minimum": 0,
"type": "number"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"metric",
"total",
"reportedBy",
"average"
],
"type": "object"
},
"totals": {
"items": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"total": {
"minimum": 0,
"type": "number"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"metric",
"total",
"reportedBy",
"average"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"posts",
"unavailable",
"notFetched",
"metric",
"totals"
],
"type": "object"
},
"best": {
"type": "boolean"
}
},
"required": [
"campaign",
"pieces",
"results",
"best"
],
"type": "object"
},
"type": "array"
},
"groupBy": {
"const": "campaign",
"type": "string"
}
},
"required": [
"metric",
"scope",
"overall",
"campaigns",
"groupBy"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"scope": {
"additionalProperties": false,
"properties": {
"from": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"to": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"channelAccountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"platform": {
"anyOf": [
{
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
{
"type": "null"
}
]
},
"campaign": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
},
"newestFetchAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"oldestFetchAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"from",
"to",
"channelAccountId",
"platform",
"campaign",
"truncated",
"newestFetchAt",
"oldestFetchAt"
],
"type": "object"
},
"channels": {
"items": {
"additionalProperties": false,
"properties": {
"channelAccountId": {
"format": "uuid",
"type": "string"
},
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"channelLabel": {
"type": "string"
},
"handle": {
"type": [
"string",
"null"
]
},
"bestFormat": {
"type": [
"string",
"null"
]
},
"formats": {
"items": {
"additionalProperties": false,
"properties": {
"format": {
"type": "string"
},
"formatLabel": {
"type": "string"
},
"results": {
"additionalProperties": false,
"properties": {
"posts": {
"minimum": 0,
"type": "integer"
},
"unavailable": {
"minimum": 0,
"type": "integer"
},
"notFetched": {
"minimum": 0,
"type": "integer"
},
"metric": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"total": {
"minimum": 0,
"type": "number"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"metric",
"total",
"reportedBy",
"average"
],
"type": "object"
},
"totals": {
"items": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"total": {
"minimum": 0,
"type": "number"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"metric",
"total",
"reportedBy",
"average"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"posts",
"unavailable",
"notFetched",
"metric",
"totals"
],
"type": "object"
},
"best": {
"type": "boolean"
}
},
"required": [
"format",
"formatLabel",
"results",
"best"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"channelAccountId",
"platform",
"channelLabel",
"handle",
"bestFormat",
"formats"
],
"type": "object"
},
"type": "array"
},
"groupBy": {
"const": "format",
"type": "string"
}
},
"required": [
"metric",
"scope",
"channels",
"groupBy"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"timeZone": {
"type": "string"
},
"scope": {
"additionalProperties": false,
"properties": {
"from": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"to": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"channelAccountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"platform": {
"anyOf": [
{
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
{
"type": "null"
}
]
},
"campaign": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
},
"newestFetchAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"oldestFetchAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"from",
"to",
"channelAccountId",
"platform",
"campaign",
"truncated",
"newestFetchAt",
"oldestFetchAt"
],
"type": "object"
},
"overall": {
"additionalProperties": false,
"properties": {
"posts": {
"minimum": 0,
"type": "integer"
},
"unavailable": {
"minimum": 0,
"type": "integer"
},
"notFetched": {
"minimum": 0,
"type": "integer"
},
"metric": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"total": {
"minimum": 0,
"type": "number"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"metric",
"total",
"reportedBy",
"average"
],
"type": "object"
},
"totals": {
"items": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"total": {
"minimum": 0,
"type": "number"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"metric",
"total",
"reportedBy",
"average"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"posts",
"unavailable",
"notFetched",
"metric",
"totals"
],
"type": "object"
},
"byHour": {
"items": {
"additionalProperties": false,
"properties": {
"posts": {
"minimum": 0,
"type": "integer"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"total": {
"minimum": 0,
"type": "number"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
},
"hour": {
"maximum": 23,
"minimum": 0,
"type": "integer"
}
},
"required": [
"posts",
"reportedBy",
"total",
"average",
"hour"
],
"type": "object"
},
"type": "array"
},
"byDay": {
"items": {
"additionalProperties": false,
"properties": {
"posts": {
"minimum": 0,
"type": "integer"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"total": {
"minimum": 0,
"type": "number"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
},
"dayOfWeek": {
"maximum": 6,
"minimum": 0,
"type": "integer"
}
},
"required": [
"posts",
"reportedBy",
"total",
"average",
"dayOfWeek"
],
"type": "object"
},
"type": "array"
},
"cells": {
"items": {
"additionalProperties": false,
"properties": {
"posts": {
"minimum": 0,
"type": "integer"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"total": {
"minimum": 0,
"type": "number"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
},
"dayOfWeek": {
"maximum": 6,
"minimum": 0,
"type": "integer"
},
"hour": {
"maximum": 23,
"minimum": 0,
"type": "integer"
}
},
"required": [
"posts",
"reportedBy",
"total",
"average",
"dayOfWeek",
"hour"
],
"type": "object"
},
"type": "array"
},
"bestHour": {
"anyOf": [
{
"maximum": 23,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"bestDay": {
"anyOf": [
{
"maximum": 6,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"groupBy": {
"const": "posting_time",
"type": "string"
}
},
"required": [
"metric",
"timeZone",
"scope",
"overall",
"byHour",
"byDay",
"cells",
"bestHour",
"bestDay",
"groupBy"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"scope": {
"additionalProperties": false,
"properties": {
"days": {
"anyOf": [
{
"const": 7,
"type": "number"
},
{
"const": 30,
"type": "number"
},
{
"const": 90,
"type": "number"
}
]
},
"from": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"type": "string"
},
"to": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"type": "string"
},
"channelAccountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"platform": {
"anyOf": [
{
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"days",
"from",
"to",
"channelAccountId",
"platform"
],
"type": "object"
},
"accounts": {
"items": {
"additionalProperties": false,
"properties": {
"channelAccountId": {
"format": "uuid",
"type": "string"
},
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"handle": {
"type": [
"string",
"null"
]
},
"displayName": {
"type": [
"string",
"null"
]
},
"status": {
"enum": [
"active",
"reconnect_required",
"disconnected"
],
"type": "string"
},
"support": {
"enum": [
"read",
"none"
],
"type": "string"
},
"reported": {
"items": {
"enum": [
"followers",
"following",
"posts",
"reach",
"views"
],
"type": "string"
},
"type": "array"
},
"note": {
"type": "string"
},
"latest": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"followers": {
"minimum": 0,
"type": "integer"
},
"following": {
"minimum": 0,
"type": "integer"
},
"posts": {
"minimum": 0,
"type": "integer"
},
"reach": {
"minimum": 0,
"type": "integer"
},
"views": {
"minimum": 0,
"type": "integer"
},
"day": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"type": "string"
},
"fetchedAt": {
"format": "date-time",
"type": "string"
}
},
"required": [
"day",
"fetchedAt"
],
"type": "object"
},
{
"type": "null"
}
]
},
"change": {
"additionalProperties": false,
"properties": {
"followers": {
"type": "integer"
},
"following": {
"type": "integer"
},
"posts": {
"type": "integer"
},
"since": {
"anyOf": [
{
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"since"
],
"type": "object"
},
"totals": {
"additionalProperties": false,
"properties": {
"reach": {
"minimum": 0,
"type": "integer"
},
"views": {
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"series": {
"items": {
"additionalProperties": false,
"properties": {
"followers": {
"minimum": 0,
"type": "integer"
},
"following": {
"minimum": 0,
"type": "integer"
},
"posts": {
"minimum": 0,
"type": "integer"
},
"reach": {
"minimum": 0,
"type": "integer"
},
"views": {
"minimum": 0,
"type": "integer"
},
"day": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"type": "string"
}
},
"required": [
"day"
],
"type": "object"
},
"type": "array"
},
"notices": {
"items": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
},
"type": "array"
},
"lastError": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"at": {
"format": "date-time",
"type": "string"
}
},
"required": [
"code",
"message",
"at"
],
"type": "object"
},
{
"type": "null"
}
]
}
},
"required": [
"channelAccountId",
"platform",
"handle",
"displayName",
"status",
"support",
"reported",
"note",
"latest",
"change",
"totals",
"series",
"notices",
"lastError"
],
"type": "object"
},
"type": "array"
},
"groupBy": {
"const": "account",
"type": "string"
}
},
"required": [
"scope",
"accounts",
"groupBy"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"scope": {
"additionalProperties": false,
"properties": {
"from": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"to": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"channelAccountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"platform": {
"anyOf": [
{
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
{
"type": "null"
}
]
},
"campaign": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
},
"newestFetchAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"oldestFetchAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"from",
"to",
"channelAccountId",
"platform",
"campaign",
"truncated",
"newestFetchAt",
"oldestFetchAt"
],
"type": "object"
},
"contents": {
"items": {
"additionalProperties": false,
"properties": {
"pieceId": {
"format": "uuid",
"type": "string"
},
"pieceTitle": {
"type": "string"
},
"campaignLabels": {
"items": {
"maxLength": 60,
"minLength": 1,
"type": "string"
},
"type": "array"
},
"firstPublishedAt": {
"format": "date-time",
"type": "string"
},
"lastReadAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"results": {
"additionalProperties": false,
"properties": {
"posts": {
"minimum": 0,
"type": "integer"
},
"unavailable": {
"minimum": 0,
"type": "integer"
},
"notFetched": {
"minimum": 0,
"type": "integer"
},
"entered": {
"minimum": 0,
"type": "integer"
},
"metric": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"total": {
"minimum": 0,
"type": "number"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
},
"entered": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"metric",
"total",
"reportedBy",
"average",
"entered"
],
"type": "object"
},
"totals": {
"items": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks",
"engagements"
],
"type": "string"
},
"total": {
"minimum": 0,
"type": "number"
},
"reportedBy": {
"minimum": 0,
"type": "integer"
},
"average": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
},
"entered": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"metric",
"total",
"reportedBy",
"average",
"entered"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"posts",
"unavailable",
"notFetched",
"entered",
"metric",
"totals"
],
"type": "object"
},
"channels": {
"items": {
"additionalProperties": false,
"properties": {
"postId": {
"format": "uuid",
"type": "string"
},
"channelAccountId": {
"format": "uuid",
"type": "string"
},
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"source": {
"anyOf": [
{
"enum": [
"api",
"entered"
],
"type": "string"
},
{
"type": "null"
}
]
},
"metrics": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"impressions": {
"minimum": 0,
"type": "number"
},
"views": {
"minimum": 0,
"type": "number"
},
"likes": {
"minimum": 0,
"type": "number"
},
"comments": {
"minimum": 0,
"type": "number"
},
"shares": {
"minimum": 0,
"type": "number"
},
"saves": {
"minimum": 0,
"type": "number"
},
"clicks": {
"minimum": 0,
"type": "number"
}
},
"type": "object"
},
{
"type": "null"
}
]
},
"channelLabel": {
"type": "string"
},
"handle": {
"type": [
"string",
"null"
]
},
"format": {
"type": "string"
},
"formatLabel": {
"type": "string"
},
"publishedAt": {
"format": "date-time",
"type": "string"
},
"permalink": {
"type": [
"string",
"null"
]
},
"metricsAvailable": {
"type": "boolean"
},
"note": {
"type": [
"string",
"null"
]
},
"fetchedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"entered": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"metrics": {
"additionalProperties": false,
"properties": {
"impressions": {
"minimum": 0,
"type": "number"
},
"views": {
"minimum": 0,
"type": "number"
},
"likes": {
"minimum": 0,
"type": "number"
},
"comments": {
"minimum": 0,
"type": "number"
},
"shares": {
"minimum": 0,
"type": "number"
},
"saves": {
"minimum": 0,
"type": "number"
},
"clicks": {
"minimum": 0,
"type": "number"
}
},
"type": "object"
},
"enteredAt": {
"format": "date-time",
"type": "string"
},
"enteredBy": {
"additionalProperties": false,
"properties": {
"accountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
}
},
"required": [
"accountId",
"name"
],
"type": "object"
}
},
"required": [
"id",
"metrics",
"enteredAt",
"enteredBy"
],
"type": "object"
},
{
"type": "null"
}
]
},
"manualFields": {
"items": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks"
],
"type": "string"
},
"label": {
"type": "string"
}
},
"required": [
"metric",
"label"
],
"type": "object"
},
"type": "array"
},
"history": {
"items": {
"additionalProperties": false,
"properties": {
"at": {
"format": "date-time",
"type": "string"
},
"source": {
"enum": [
"api",
"entered"
],
"type": "string"
},
"metrics": {
"additionalProperties": false,
"properties": {
"impressions": {
"minimum": 0,
"type": "number"
},
"views": {
"minimum": 0,
"type": "number"
},
"likes": {
"minimum": 0,
"type": "number"
},
"comments": {
"minimum": 0,
"type": "number"
},
"shares": {
"minimum": 0,
"type": "number"
},
"saves": {
"minimum": 0,
"type": "number"
},
"clicks": {
"minimum": 0,
"type": "number"
}
},
"type": "object"
},
"enteredBy": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"accountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
}
},
"required": [
"accountId",
"name"
],
"type": "object"
},
{
"type": "null"
}
]
}
},
"required": [
"at",
"source",
"metrics",
"enteredBy"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"postId",
"channelAccountId",
"platform",
"source",
"metrics"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"pieceId",
"pieceTitle",
"campaignLabels",
"firstPublishedAt",
"lastReadAt",
"results",
"channels"
],
"type": "object"
},
"type": "array"
},
"more": {
"minimum": 0,
"type": "integer"
},
"groupBy": {
"const": "content",
"type": "string"
}
},
"required": [
"metric",
"scope",
"contents",
"more",
"groupBy"
],
"type": "object"
}
]
}Errors
[]Annotations
{
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true,
"title": "Get results"
}