GETapi.synup.com/api/v4/social-post-ideas/observances
Observances
Returns the observances (holidays, awareness days, etc.) for a given month, optionally scoped to a social profile and narrowed to a specific day. Each item includes whether ideas are ready and any generated post idea preview.
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Query
| Name | Type | Required | Description |
|---|---|---|---|
month | integer | required | Month number (1-12). |
date | integer | optional | Day of the month to narrow to. |
socialProfileId | string | optional | Social profile ID to scope relevance/ideas to. |
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/observances?month=&date=&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/observances?month=&date=&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/observances?month=&date=&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/observances?month=&date=&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": {
"observances": [
{
"id": 0,
"title": "string",
"description": "string",
"date": "string",
"imageUrl": "string",
"isMonthLong": true,
"isRelevant": true,
"ideasReady": true,
"postIdeaId": "string",
"postImageUrl": "string",
"postTitle": "string",
"postType": "string",
"postContent": "string",
"postImagePrompt": "string"
}
]
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | optional | |
data.observances | array of object | optional | |
data.observances[].id | integer | optional | |
data.observances[].title | string | optional | |
data.observances[].description | string | optional | |
data.observances[].date | string | optional | |
data.observances[].imageUrl | string | optional | |
data.observances[].isMonthLong | boolean | optional | |
data.observances[].isRelevant | boolean | optional | |
data.observances[].ideasReady | boolean | optional | |
data.observances[].postIdeaId | string | optional | |
data.observances[].postImageUrl | string | optional | |
data.observances[].postTitle | string | optional | |
data.observances[].postType | string | optional | |
data.observances[].postContent | string | optional | |
data.observances[].postImagePrompt | string | optional |