GETapi.synup.com/api/v4/social-post-ideas/post-idea-counts
Post idea counts
Returns social post-idea counts for a brand, broken down by bucket: AI- generated (ai), user-created (mine), series (series), and the total (all).
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Query
| Name | Type | Required | Description |
|---|---|---|---|
socialProfileId | string | required | Social profile ID. |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Synup-Version | string | required | API version date (YYYY-MM-DD). |
Request
Request
curl -X GET 'https://api.synup.com/api/v4/social-post-ideas/post-idea-counts?socialProfileId=' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json'const res = await fetch('https://api.synup.com/api/v4/social-post-ideas/post-idea-counts?socialProfileId=', {
method: 'GET',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
});
const data = await res.json();import requests
res = requests.get(
"https://api.synup.com/api/v4/social-post-ideas/post-idea-counts?socialProfileId=",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
)
data = res.json()req, _ := http.NewRequest("GET", "https://api.synup.com/api/v4/social-post-ideas/post-idea-counts?socialProfileId=", nil)
req.Header.Set("Authorization", "API YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)Responses
| Status | Description |
|---|---|
200 | Successful response |
401 | Unauthorized - Invalid or missing API key |
Example response (generated from the schema)
{
"data": {
"postIdeaCounts": {
"ai": 0,
"mine": 0,
"series": 0,
"all": 0
}
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | optional | |
data.postIdeaCounts | object | optional | |
data.postIdeaCounts.ai | integer | optional | |
data.postIdeaCounts.mine | integer | optional | |
data.postIdeaCounts.series | integer | optional | |
data.postIdeaCounts.all | integer | optional |