{
  "slug": "merge-notion-and-google-calendar",
  "title": "Merge Notion Database with Google Calendar API",
  "metaTitle": "Merge Notion Database with Google - RealComposer",
  "metaDescription": "Merge notion database with google calendar api. Merge Notion in one Frontend / Web call with parallel Worker steps. RealComposer edge vault and client toke",
  "headline": "One edge call merges Notion for Frontend / Web",
  "category": "aggregation",
  "categoryLabel": "Multi-API Aggregation",
  "urgency": 8,
  "clientPlatform": "Frontend / Web",
  "upstreamServices": [
    "Notion"
  ],
  "searchIntentQuery": "merge notion database with google calendar api",
  "directAnswerSummary": "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.",
  "problem": {
    "title": "Serial Notion calls slow Frontend / Web pages",
    "explanation": "Each extra Notion hop adds hundreds of milliseconds and another OAuth refresh path your UI must manage.",
    "risks": [
      "One slow upstream blocking an entire page",
      "Partial failures leaving UI in inconsistent states",
      "Duplicate auth refresh logic per service"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Add vault secrets for this pipeline",
      "description": "Store NOTION_API_KEY in the vault. Frontend / Web never embeds the raw secret, only a revocable rc_live_ client token."
    },
    {
      "stepNumber": 2,
      "title": "Set headers, mapping, and cache TTL",
      "description": "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."
    },
    {
      "stepNumber": 3,
      "title": "Call from Frontend / Web",
      "description": "Call https://realcomposer.com/v1/workspace/merge-notion-and-google-calendar with a restricted rc_live_ client token. Frontend / Web never sends upstream secrets.",
      "codeSnippet": "const res = await fetch('https://realcomposer.com/v1/workspace/merge-notion-and-google-calendar', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n});"
    }
  ],
  "pipelineConfig": {
    "name": "Merge Notion Database with Google Calendar API",
    "method": "POST",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "notion",
        "upstreamUrlTemplate": "https://api.notion.com/v1/databases/{{query.databaseId}}/query",
        "httpMethod": "POST",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.NOTION_API_KEY}}",
          "Notion-Version": "2022-06-28",
          "Content-Type": "application/json"
        },
        "timeoutMs": 10000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "pageId",
          "sourcePath": "results.0.id",
          "type": "string",
          "sourceStep": "notion"
        },
        {
          "targetPath": "title",
          "sourcePath": "results.0.properties.Name.title.0.plain_text",
          "type": "string",
          "sourceStep": "notion"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "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"
      }
    }
  },
  "sampleSlimmedOutput": {
    "pageId": "sample",
    "title": "sample"
  },
  "curlSnippet": "curl -X POST \"https://realcomposer.com/v1/workspace/merge-notion-and-google-calendar\" \\\n  -H \"Authorization: Bearer rc_live_client_token\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\":\"example\"}'",
  "faqs": [
    {
      "question": "Which Notion credential belongs in the vault for this pipeline?",
      "answer": "Log request IDs for merge-notion-and-google-calendar, not raw Notion payloads, because upstream bodies may include PII."
    },
    {
      "question": "What cache key does RealComposer use?",
      "answer": "Cache key for merge-notion-and-google-calendar: internal edge-cache path plus sorted query. Identical params hit; vary userId per user."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Rotate vault secrets for merge-notion-and-google-calendar anytime; clients keep the same rc_live_ token."
    }
  ],
  "relatedRecipeSlugs": [
    "anthropic-claude-api-frontend-proxy",
    "cache-google-places-api-reduce-bills",
    "api-composition-tool-low-code"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/merge-notion-and-google-calendar",
    "markdown": "https://realcomposer.com/recipes/merge-notion-and-google-calendar.md",
    "json": "https://realcomposer.com/recipes/merge-notion-and-google-calendar.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=merge-notion-and-google-calendar&via=agent"
  }
}