Database (default: SQLite):
I didnât link a database.
n8n EXECUTIONS_PROCESS setting (default: own, main):
I donât know what is this!
Running n8n via (Docker, npm, n8n cloud, desktop app):
I use it on my machine and I run it using the command prompt by installing node.js and npm and starting it via tunnel
Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.
```
<your workflow>
```
That implies to any JSON output you would like to share with us.
Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!
I believe you need to segregate the items with Split Out node. As you did not provide the full input (your sample of JSON is actually broken) Iâm not sure how that looks like to be sure.
If I understood you right, the array of objects looks something like this
Thank you @ihortom and I am sorry for the broken JSON.
This is the right JSON:
{
"contents": [
{
"index": 1,
"type": "video",
"video": {
"author": {
"canonicalBaseUrl": "/channel/UCNL1ZadSjHpjm4q9j2sVtOA",
"channelId": "UCNL1ZadSjHpjm4q9j2sVtOA",
"title": "Lady Gaga"
},
"isLiveNow": false,
"lengthSeconds": 253,
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/kPa7bsKwL-c/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLD_P-QKwzQUAf6bJlsC6-L2wJn-Sw",
"width": 168
},
{
"height": 110,
"url": "https://i.ytimg.com/vi/kPa7bsKwL-c/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLByaN7md6ZmoEzuumhHAKvci04EfQ",
"width": 196
},
{
"height": 138,
"url": "https://i.ytimg.com/vi/kPa7bsKwL-c/hqdefault.jpg?sqp=-oaymwEcCPYBEIoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCH5uDEIZu_jXSckPyCcwxvc_FDDQ",
"width": 246
},
{
"height": 188,
"url": "https://i.ytimg.com/vi/kPa7bsKwL-c/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAQiJs48T0874m4PwpyLlb_MVZ0zg",
"width": 336
}
],
"title": "Lady Gaga, Bruno Mars - Die With A Smile (Official Music Video)",
"videoId": "kPa7bsKwL-c"
}
},
other objects in the "contents" array ...
]
}
This is the response of the first HTTP node. I want the second HTTP node executed for each item in the âcontentsâ array.
The second HTTP request should take the value of the âvideoIdâ of each item in the âcontentsâ array and use it as a query parameter, so I need to reference this âvideoIdâ in the second HTTP node in a way that makes it run for each item.
I guess you mean that I have to add a Split Out node between my first HTTP node (that returns an object containing an array) and my second HTTP node (that should be executed for each item in the array), I can do it but still canât recognize how to reference the âvideoIdâ key of the array items of the first node in the query parameter field of the second node?
I am sorry for the incomplete information in my main topic
Exactly right. The Split Out node would have to be split on the property contents. Than videoId could be referenced in the 2nd HTTP Request node with the expression {{ $json.video.videoId }}.
Ok, I guess that n8n will handel excuting the second node for each item, but I used a Loop node beacuse I found that I need to add a pause before the second node because I only can call the endpoint once per second, and it works now, thank you for helping.