Aide API Open food facts

Hello,
I need your help, I can't find the code snippet to get a data from the Open food facts API. I would like to have only the data : "sugars_100g" when we scan an article
ex link : https://world.openfoodfacts.org/api/v0/product/3387390406719.json
Here I would like to have : 24,9
Do you have the solution ?
Thanks !

1 Like

Welcome to the community. You can work with dictionary blocks and web component and get value like this

2 Likes

Thank you very much for your very quick answer :slight_smile:
I take the opportunity to ask you, do you know how I can divide this result by 6? (I made a button for the conversion with a label for the answer)

1 Like

Try something like this using math blocks

1 Like

Thank you very much! :star_struck:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.