{
  "slug": "merge-airtable-and-shopify",
  "title": "Merge Airtable and Shopify into One API Response",
  "metaTitle": "Merge Airtable and Shopify into One - RealComposer",
  "metaDescription": "Merge airtable and shopify into one api response. Merge Airtable and Shopify in one Frontend / Web call with parallel Worker steps.",
  "headline": "Parallel Airtable fetch merged before Frontend / Web hydrates",
  "category": "aggregation",
  "categoryLabel": "Multi-API Aggregation",
  "urgency": 9,
  "clientPlatform": "Frontend / Web",
  "upstreamServices": [
    "Airtable",
    "Shopify"
  ],
  "searchIntentQuery": "merge airtable and shopify into one api response",
  "directAnswerSummary": "Instead of Frontend / Web firing serial fetches to Airtable and Shopify, one pipeline hits https://api.airtable.com/v0/{{query.baseId}}/{{query.tableName}}?maxRecords=5 (and sibling steps) in parallel and returns mapped JSON.",
  "problem": {
    "title": "Waterfall latency from multiple Airtable and Shopify requests",
    "explanation": "Frontend / Web widgets often await Airtable and Shopify sequentially, multiplying TLS handshakes on cellular networks and amplifying failure rates.",
    "risks": [
      "Race conditions between parallel manual fetches",
      "Higher mobile data usage from redundant JSON",
      "Timeouts when any upstream exceeds cellular RTT"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Bind vault keys to the Worker",
      "description": "Add AIRTABLE_PAT, SHOPIFY_ACCESS_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Target the real upstream URL",
      "description": "Point step airtable at https://api.airtable.com/v0/{{query.baseId}}/{{query.tableName}}?maxRecords=5 with GET. Add output mapping fields that mirror the JSON contract your screen already expects. Leave cache TTL at 0 when each response is user-specific (include userId or record id in query params before enabling cache)."
    },
    {
      "stepNumber": 3,
      "title": "Call from Frontend / Web",
      "description": "Call https://realcomposer.com/v1/workspace/merge-airtable-and-shopify with a restricted rc_live_ client token. Frontend / Web never sends upstream secrets.",
      "codeSnippet": "const res = await fetch('https://realcomposer.com/v1/workspace/merge-airtable-and-shopify', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n});"
    }
  ],
  "pipelineConfig": {
    "name": "Merge Airtable and Shopify into One API Response",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "airtable",
        "upstreamUrlTemplate": "https://api.airtable.com/v0/{{query.baseId}}/{{query.tableName}}?maxRecords=5",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.AIRTABLE_PAT}}"
        },
        "timeoutMs": 3000
      },
      {
        "stepKey": "shopify",
        "upstreamUrlTemplate": "https://{{secrets.SHOPIFY_STORE}}.myshopify.com/admin/api/2026-10/products.json?limit=5",
        "httpMethod": "GET",
        "headersTemplate": {
          "X-Shopify-Access-Token": "{{secrets.SHOPIFY_ACCESS_TOKEN}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "airtable.recordId",
          "sourcePath": "records.0.id",
          "type": "string",
          "sourceStep": "airtable"
        },
        {
          "targetPath": "airtable.fields",
          "sourcePath": "records.0.fields",
          "type": "object",
          "sourceStep": "airtable"
        },
        {
          "targetPath": "shopify.productId",
          "sourcePath": "products.0.id",
          "type": "number",
          "sourceStep": "shopify"
        },
        {
          "targetPath": "shopify.title",
          "sourcePath": "products.0.title",
          "type": "string",
          "sourceStep": "shopify"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_merge-ai",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "merge-airtable-and-shopify"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "airtable_recordId": "sample",
    "airtable_fields": "sample",
    "shopify_productId": "sample",
    "shopify_title": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/merge-airtable-and-shopify\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Which Airtable credential belongs in the vault for this pipeline?",
      "answer": "Yes for merge-airtable-and-shopify. Ship only an rc_live_ client token in Frontend / Web; RealComposer injects AIRTABLE_PAT on https://api.airtable.com/v0/{{query.baseId}}/{{query.tableName}}?maxRecords=5."
    },
    {
      "question": "What cache key does RealComposer use?",
      "answer": "merge-airtable-and-shopify POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Rotate vault secrets for merge-airtable-and-shopify anytime; clients keep the same rc_live_ token."
    }
  ],
  "relatedRecipeSlugs": [
    "fix-cors-error-flutterflow",
    "appsmith-secure-api-proxy",
    "call-airtable-from-flutterflow-securely"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/merge-airtable-and-shopify",
    "markdown": "https://realcomposer.com/recipes/merge-airtable-and-shopify.md",
    "json": "https://realcomposer.com/recipes/merge-airtable-and-shopify.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=merge-airtable-and-shopify&via=agent"
  }
}