# How to create nutrition app with ocr scanner?

**URL:** <https://community.thunkable.com/t/how-to-create-nutrition-app-with-ocr-scanner/1113955>\
**Category:** Questions about Thunkable X\
**Created:** [February 21, 2021, 5:28pm UTC](https://community.thunkable.com/t/how-to-create-nutrition-app-with-ocr-scanner/1113955 "2021-02-21T17:28:00Z")\
**Posts on this page:** 1\
**Showing post:** 34

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 28, 2021, 4:34pm UTC](https://community.thunkable.com/t/how-to-create-nutrition-app-with-ocr-scanner/1113955/34 "2021-02-28T16:34:09Z")

</div>

Looking pretty good so far!

You’ll want to use the barcode scanner’s “value” block in your Web API Get call. Do this by assigning a variable to the green “value” block. Then, join the new variable to the URL text.

According to [this page](https://world.openfoodfacts.org/data), the format for the barcode url is:

```auto
https://world.openfoodfacts.org/api/v0/product/[barcode].json

```

So you can join “[https://world.openfoodfacts.org/api/v0/product/](https://world.openfoodfacts.org/api/v0/product/)” with the new variable and then with “.json”

Just out of curiosity, I tried this with a product I have: [https://world.openfoodfacts.org/api/v0/product/856904000376.json](https://world.openfoodfacts.org/api/v0/product/856904000376.json).

When I put the results in the JSON formatter page, I get this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/e/4e52f404ec9699c2ae7fc88dd41abfc10f585ef7.png)

If, for example, you wanted to get the “nutrition\_data\_per” field (value of 100g), you would take the “nutrition\_data\_per” property of the “product” property of the object. That’s working my way back up from that field in the formatted list of properties.

---

_[View the full topic](https://community.thunkable.com/t/how-to-create-nutrition-app-with-ocr-scanner/1113955)._
