Hi Daniele,
There should not be any problem if you add the dynamic content within the parameter as mentioned by you. I have tested the same in local and found the output shown in the screenshot.
{
"url":"https://your-api/{{dc:post:id}}?_fields=id,date,link,title,excerpt"
}
And you need to get the URL in your code like the example code given below.
add_filter('cs_looper_custom_apiurl', function($result, $args) {
$api_endpoint=$args['url'];
echo $api_endpoint;
//YOU CAN CALL the API ENDPOINT HERE
}, 10, 2);
Now you can call URL as API endpoint, to get the output you are expecting. You can also use the way shown by my colleague in that case you need to construct the API endpoints with multiple parameters coming through the JSON.
add_filter('cs_looper_custom_apiurl', function($result, $args) {
$api_endpoint=$args['url']."/".$args['post_id']."?_fields=".$args['title'];
echo $api_endpoint;
//YOU CAN CALL the API ENDPOINT HERE
}, 10, 2);
I would suggest you go through the following article and videos on the Looper.
Hope this helps.
Thanks