Merge output into one http request / hook

Hello,

whats the best practise to merge alle the outputs from two/multiple in to a hook?

I guess some JSON stuff?
Here are for example the two outputs:

[
    {
        "from": {
            "id": "7164476546xxxx",
            "username": "tylxxxxx"
        },
        "media": {
            "id": "18017491xxxxxx",
            "media_product_type": "REELS"
        },
        "id": "1786341xxxxx",
        "text": "Cool gemacht",
        "field": "comments"
    }
]
[
    {
        "caption": "🤳🚁 Hey Leute, xxxxxxt",
        "comments_count": 1,
        "id": "18017491xxxxx",
        "ig_id": "3136488848xxxxxx",
        "is_comment_enabled": true,
        "like_count": 8,
        "media_type": "VIDEO",
        "media_product_type": "REELS",
        "media_url": "https://scontent-lhr6-1.cdninstagram.com/o1/v/t16/f1/m82/61419B92A1F2E82B5FBFABD85179018F_video_dashinit.xxxxxxx",
        "owner": {
            "id": "17841459xxxxxx"
        },
        "permalink": "https://www.instagram.com/reel/Cuxxxxx",
        "shortcode": "CuHC_1aLp6c",
        "thumbnail_url": "https://scontent-lhr6-2.cdninstagram.com/v/t51.36329-15/356797750_3011850358949120_33xxxxxxxxxE",
        "timestamp": "2023-06-30T09:50:00.000Z",
        "username": "warsxxxx"
    }
]

How do you want to merge them? Could you provide an example of the desired output?

2 Likes

I wanna post the merge to an web hook.
Then I wanna use this Hook in a other scenario where I need all the information.

So I don’t really know how it should look like.

Then just use an Array Aggregator and select the first module and “Select All” fields

3 Likes

But I need booth sources, and I guess the content is not everytime the same.

If its always an array you get, you can use the merge() function

2 Likes