Dear Make-Community,
I am facing a problem regarding the procession of an API response I’ve integrated in Make via a HTTP request. The response of the request looks like the following example:
[
{
"statusCode": 200,
"headers": [...],
"cookieHeaders": [...],
"data": {
"data": {
"search": {...},
"fetch": {
"article-8456875": {
"data": {
"title": "test",
"description":"this is a test."
}
},
"article-8456807": {
"data": {
"title": "test2",
"description": "this is a second test",
}
}
}
}
}
}
]
Here’s what I want to achieve:
I want to iterate the response i a way that every article “article-xxxxxxxx” is treated equally and the title and description for each article can be processed in a following module separately.
Here’s what I’ve already tried:
a simple iterator does not work at all because of the structure of the HTTP response. That’s why I’ve tried using the toArray() function within the Iterator:
Its output consists of two bundles:
In the following modules unfortunately only “Value”, “Bundle order position” and “Total number of bundles” are available for further mapping, I can’t go any level deeper than “value”.
Is there any solution to achieve my goal of iterating each article, so I can get its title and description to further process/map it?
Tank you so much for your help!
Best regards,
Sascha