AI agent? Read this page as Markdown at /social/insight/Retrieve_an_insight.md — append .md to any docs URL, or start from /llms.txt.

Retrieve an insight

GET/social/{connection_id}/insight/{id}

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
idstring required
ID of the Insight

Returns

idstring
Unique identifier for the insight data point
created_atdate
When the insight was recorded (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
profile_idstring
The social profile these stats belong to
post_idstring
Optional: the post these stats belong to
datedate
The day/timestamp of the data point
period enum
Valid values:
"DAY"
"WEEK"
"MONTH"
"LIFETIME"
"TOTAL"
The aggregation period of the value
metric enum
Valid values:
"FOLLOWERS"
"FOLLOWING"
"POSTS"
"IMPRESSIONS"
"REACH"
The metric being reported
valuenumber
The metric value
const options = {
  method: 'GET',
  url: 'https://api.unified.to/social/5de520f96e439b002043d8dc/insight/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?