Reference Data from Previous Nodes in n8n
In n8n, data flows from one node to the next. But sometimes the node directly before you doesn't have all the data you need. It might be two or three steps back in the workflow.
This is called "backwards referencing" and it's essential when you're combining data from multiple sources. Instead of passing every field through every node, you can reach back and grab exactly what you need from any previous step.
In this challenge, you'll work with a workflow that fetches Star Wars characters and their home planets from two separate API calls. Your task is to combine data from both sources into a single output.
What you'll practice:
- Accessing data from nodes that aren't directly connected
- Using the INPUT panel to browse previous node outputs
- Combining data from multiple API calls into one result
Login to see the exercise
Create an account to access challenges and track your progress.
Log in to see exerciseRelated Content
Continue your learning journey with these related challenges and guides:
Learn how to use the HTTP Request node in n8n to connect to any API. This guide covers all HTTP methods (GET, POST, PUT, PATCH, DELETE), sending data, and handling responses.
Learn how to add your OpenAI API key to n8n in under 5 minutes. Step-by-step guide to creating an API key and configuring the OpenAI node.
Learn how to trigger n8n workflows from incoming emails using Gmail Trigger and extract key email fields for processing.
Learn to extract nested JSON fields into a flat structure using n8n's Edit Fields node and expressions.
Learn how to fetch and parse API data in n8n using the HTTP Request node. Practice extracting nested JSON fields into clean output.