# Open OCR API code needs fixing

**URL:** <https://community.thunkable.com/t/open-ocr-api-code-needs-fixing/1116107>\
**Category:** Questions about Thunkable X\
**Created:** [February 22, 2021, 1:55pm UTC](https://community.thunkable.com/t/open-ocr-api-code-needs-fixing/1116107 "2021-02-22T13:55:36Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [February 26, 2021, 4:44am UTC](https://community.thunkable.com/t/open-ocr-api-code-needs-fixing/1116107/21 "2021-02-26T04:44:29Z")

</div>

Do you want me to initialize variable ocr text to CREATE OBJECT? It’s currently initialized to blank.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/f/cf588fce1e29c1a502a68e578bf4c514ce50b9d1.png)

---

<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 26, 2021, 6:15am UTC](https://community.thunkable.com/t/open-ocr-api-code-needs-fixing/1116107/22 "2021-02-26T06:15:35Z")

</div>

I don’t know what purpose that would serve. I’d recommend at this point separating out the media component from the API component. So, if you already have something uploaded to Cloudinary from this project, grab the url for that image from the Cloudinary site (or from your project preview, if you wish). Then, replace the mediaURL block with that url so that it’s not being generated every time. Then you can remove all of the blocks except for the Web API URL and Web API Get blocks and focus on why those aren’t working. I’d want to figure out what the response looks like (in a label).

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [February 26, 2021, 6:31am UTC](https://community.thunkable.com/t/open-ocr-api-code-needs-fixing/1116107/23 "2021-02-26T06:31:22Z")

</div>

Sure, thanks.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:29pm UTC](https://community.thunkable.com/t/open-ocr-api-code-needs-fixing/1116107/24 "2024-11-08T13:29:17Z")

</div>



[Previous page](https://community.thunkable.com/t/open-ocr-api-code-needs-fixing/1116107.md?page=1)
