Merge Notion Database with Google Calendar API
One edge call merges Notion for Frontend / Web
To merge notion database with google calendar api, configure parallel steps for Notion. Frontend / Web performs one authorized GET/POST to RealComposer and receives a merged payload.
Serial Notion calls slow Frontend / Web pages
Each extra Notion hop adds hundreds of milliseconds and another OAuth refresh path your UI must manage.
- One slow upstream blocking an entire page
- Partial failures leaving UI in inconsistent states
- Duplicate auth refresh logic per service
How RealComposer Solves This at the Edge
Add vault secrets for this pipeline
Store NOTION_API_KEY in the vault. Frontend / Web never embeds the raw secret, only a revocable rc_live_ client token.
Set headers, mapping, and cache TTL
Point step notion at https://api.notion.com/v1/databases/{{query.databaseId}}/query with POST. Add output mapping fields that mirror the JSON contract your screen already expects. POST pipelines set cache TTL to 0 because RealComposer only stores GET responses at the edge.
Call from Frontend / Web
Call https://realcomposer.com/v1/workspace/merge-notion-and-google-calendar with a restricted rc_live_ client token. Frontend / Web never sends upstream secrets.
const res = await fetch('https://realcomposer.com/v1/workspace/merge-notion-and-google-calendar', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
{
"requestId": "req_merge-no",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "merge-notion-and-google-calendar"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"pageId": "sample",
"title": "sample"
}
Recipe Specs
- HTTP method
- POST
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 2
- Payload
- 251 B to 36 B (-86%)
curl -X POST "https://realcomposer.com/v1/workspace/merge-notion-and-google-calendar" \
-H "Authorization: Bearer rc_live_client_token" \
-H "Content-Type: application/json" \
-d '{"model":"example"}'Developer Questions & Troubleshooting
Which Notion credential belongs in the vault for this pipeline?
Log request IDs for merge-notion-and-google-calendar, not raw Notion payloads, because upstream bodies may include PII.
What cache key does RealComposer use?
Cache key for merge-notion-and-google-calendar: internal edge-cache path plus sorted query. Identical params hit; vary userId per user.
What happens if an upstream step times out?
Rotate vault secrets for merge-notion-and-google-calendar anytime; clients keep the same rc_live_ token.
Sources & Definitions Used in This Answer
Deploy this Frontend / Web + Notion Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.