Social performance
GET
/api/v1/social/performance
const url = 'https://digize.com/api/v1/social/performance';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/social/performance \ --header 'x-api-key: <x-api-key>'Reach, engagement and clicks for each post that went out in the last 90 days, by network, and each account’s followers and daily figures.
Needs the social:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
posts
required
Array<object>
object
postId
required
string
targetId
required
string
accountId
required
string
accountName
required
string
network
required
string
text
required
string
url
required
string | null
metrics
required
accounts
required
Array<object>
object
id
required
string
network
required
string
externalId
required
string
kind
required
string
name
required
string
handle
required
string | null
avatarUrl
required
string | null
parentId
required
string | null
followers
required
number | null
error
required
Why the last sync or post couldn’t reach it.
string | null
addedBy
required
string
addedAt
required
string format: date-time
days
required
Array<object>
object
accountId
required
string
day
required
string
followers
required
number | null
impressions
required
number | null
reach
required
number | null
engagements
required
number | null
clicks
required
number | null
Example
{ "posts": [ { "network": "facebook" } ], "accounts": [ { "network": "facebook", "kind": "page" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}