Appending result of an earlier node to output of a paginated HTTP Request

I am running two HTTP Request nodes in succession. The first one gets a list of Campaigns. It feeds the output value {{$json.campaign_id}} into the URL of the following HTTP Request, which returns more data, making multiple API calls due to pagination limits.

To continue my workflow, I need to identify which results from the second HTTP Request node came from which campaign_id of the first HTTP Request node.

How can I do this?

Information on your n8n setup

  • n8n version: 1.72.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system:

Previous nodes are typically reached by using

$node["nodename"]

So in this case it would be

$node["Get Campaigns"]

if this is your answer then hit the ‘solution’ button :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.