Merge outputs of two Https Requests

I am making a call to github api to fetch all organizations using Http Request node.
Api url: http://domain/api/v3/organizations
From the output of above Api call, I pass the organization name to second api call (this is done through second Http Request node] using api http://domain/api/v3/orgs/{{ $json.login }}/members to fetch all members of all organizations.
But the second api call output does not contain the organization name and I am not able to map which user is from which org.

Can you please help me?

Hey @senthil hope all is good.

You are likely going to end up with a structure like this

or

to have all data at the end of the workflow

Hi @jabbson ,
Thanks for your response. Merge will not work for my usecase as it will generate records of node 1 + node 2.
My requirement is, if node 2 gives 50 records (Assuming there are 10 records against each value in node 1) for the execution of 5 records from node 1, the final merge should be 50 records only.

Is there a any other way to get this?

See if this example is somewhat close to what you are trying to achieve:

I pinned some data to illustrate how to combine the data from the first and second requests. The first request returns 2 orgs: org1 and org2, for each we make the second request, which return 10 usernames each, at the end we get the list of objects where each object contains both the username and the org it belongs to.

Thanks @jabbson. This worked. In fact I already got this solution and working now. Thanks again.