GETapi.synup.com/api/v4/local-post-ideas/observances-with-ideas
Local observances with ideas
Returns the observances for a month for a location, each joined with its generated post idea (if any) — including whether ideas are ready and the idea's title/content/image.
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Query
| Name | Type | Required | Description |
|---|---|---|---|
locationId | string | required | Relay-encoded location ID. |
month | integer | required | Month number (1-12). |
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/local-post-ideas/observances-with-ideas?locationId=&month=' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json'const res = await fetch('https://api.synup.com/api/v4/local-post-ideas/observances-with-ideas?locationId=&month=', {
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/local-post-ideas/observances-with-ideas?locationId=&month=",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
)
data = res.json()req, _ := http.NewRequest("GET", "https://api.synup.com/api/v4/local-post-ideas/observances-with-ideas?locationId=&month=", 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": {
"localObservancesWithIdeas": [
{
"id": 0,
"title": "string",
"description": "string",
"date": "string",
"imageUrl": "string",
"isMonthLong": true,
"ideasReady": true,
"isRelevant": true,
"postIdeaId": "string",
"postImageUrl": "string",
"postTitle": "string",
"postType": "string",
"postContent": "string",
"postImagePrompt": "string"
}
]
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | optional | |
data.localObservancesWithIdeas | array of object | optional | |
data.localObservancesWithIdeas[].id | integer | optional | |
data.localObservancesWithIdeas[].title | string | optional | |
data.localObservancesWithIdeas[].description | string | optional | |
data.localObservancesWithIdeas[].date | string | optional | |
data.localObservancesWithIdeas[].imageUrl | string | optional | |
data.localObservancesWithIdeas[].isMonthLong | boolean | optional | |
data.localObservancesWithIdeas[].ideasReady | boolean | optional | |
data.localObservancesWithIdeas[].isRelevant | boolean | optional | |
data.localObservancesWithIdeas[].postIdeaId | string | optional | |
data.localObservancesWithIdeas[].postImageUrl | string | optional | |
data.localObservancesWithIdeas[].postTitle | string | optional | |
data.localObservancesWithIdeas[].postType | string | optional | |
data.localObservancesWithIdeas[].postContent | string | optional | |
data.localObservancesWithIdeas[].postImagePrompt | string | optional |