# Web API not working ,shows null for image classification api

**URL:** <https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425>\
**Category:** Web API's\
**Tags:** beginner, help, airtable\
**Created:** [August 10, 2024, 7:45am UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425 "2024-08-10T07:45:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aravanagababu595owj3](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@aravanagababu595owj3](https://community.thunkable.com/u/aravanagababu595owj3)\
**Post date:** [August 10, 2024, 7:45am UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/1 "2024-08-10T07:45:09Z")

</div>

I have a API where it post image and receive text. It’s like image classification

 ![Screenshot 2024-08-10 at 12.57.58 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/0/10e38cc3307acb77863631e101cce91239994108.jpeg)  
APi so I build the blocks, but the no output occurs, actually, I tested the APi it works fine, but in the blocks, it’s not working. It’s showing null data, please help me

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [August 12, 2024, 1:37pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/2 "2024-08-12T13:37:37Z")

</div>

Your URL is not correct–the `image file from device` cannot be used with a URL.

---

<div class="post-metadata">

**Author:** ![aravanagababu595owj3](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@aravanagababu595owj3](https://community.thunkable.com/u/aravanagababu595owj3)\
**Post date:** [August 12, 2024, 2:02pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/3 "2024-08-12T14:02:43Z")

</div>

Could you plz explain in detail  
I am beginner to Thunkable

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [August 12, 2024, 2:13pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/4 "2024-08-12T14:13:11Z")

</div>

Remove this from your set API URL block

 ![Web API not working screenshot](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b7e116867178406ca521edf76c9ab2261fe31f70.jpeg)

---

<div class="post-metadata">

**Author:** ![aravanagababu595owj3](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@aravanagababu595owj3](https://community.thunkable.com/u/aravanagababu595owj3)\
**Post date:** [August 12, 2024, 2:39pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/5 "2024-08-12T14:39:09Z")

</div>

![17234731118431988076158320773644](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/017b4f436bb5cc5c73f11fdcc54213caea3fd24f.jpeg)  
Actually this my updated blocks ,but this also not working,the output is null or plz try again ,I have watched all thunkable tutorials ,and updated this but no use ,  
api : [https://project-vitamind.onrender.com/predict/](https://project-vitamind.onrender.com/predict/)

This is my api it takes input as img and gives output in json  
Plz help

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [August 12, 2024, 3:04pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/6 "2024-08-12T15:04:24Z")

</div>

Can you link to the documentation for connecting to this API? I can tell you already that there are some current known issues using multipart/form-data as the body type.

---

<div class="post-metadata">

**Author:** ![aravanagababu595owj3](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@aravanagababu595owj3](https://community.thunkable.com/u/aravanagababu595owj3)\
**Post date:** [August 12, 2024, 3:30pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/7 "2024-08-12T15:30:36Z")

</div>

This api made by own  
Methods: post  
Status:200  
End point : /predict/  
There no documention brother Processing: 17234765760365414758796674512800.jpg…

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [August 12, 2024, 3:55pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/8 "2024-08-12T15:55:20Z")

</div>

What is the green response block showing? If you are getting a successful call but the output is not correct, there is an issue with parsing the JSON. I would suggest this tutorial [API JSON Tutorial (Video)](https://community.thunkable.com/t/api-json-tutorial-video/1140575).

Let’s get the response first and we can work easier toward figuring out how to drill into the data needed.

---

<div class="post-metadata">

**Author:** ![aravanagababu595owj3](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@aravanagababu595owj3](https://community.thunkable.com/u/aravanagababu595owj3)\
**Post date:** [August 12, 2024, 4:30pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/9 "2024-08-12T16:30:13Z")

</div>

![1723479809744501679534268419122](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/6/96a80afc8d14d036a841ff809fd3c471b4f045a4.jpeg)  
 ![17234798424847487747201316344006](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/c/2c5010b79e06590667a9d295d37f0c9d10cc369b.jpeg)  
This is the output came after json parsing ,i think the output is going to error block - load failed

---

<div class="post-metadata">

**Author:** ![aravanagababu595owj3](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@aravanagababu595owj3](https://community.thunkable.com/u/aravanagababu595owj3)\
**Post date:** [August 13, 2024, 2:35pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/10 "2024-08-13T14:35:57Z")

</div>

Bro plz reply same issue as above ,after Json parsing also not working

---

<div class="post-metadata">

**Author:** ![tomj20373drj9gy](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@tomj20373drj9gy](https://community.thunkable.com/u/tomj20373drj9gy)\
**Post date:** [August 13, 2024, 4:28pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/11 "2024-08-13T16:28:27Z")

</div>

![17235664430694775627633741312979](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/0/809bf7277b55214679ad2f13d302c0059608130b.jpeg)  
I Have an API which takes input as image and give output as Json , after watching all tutorials on YouTube how to Parse Json the output is coming load failed ,can anyone find the issue?  
 ![17235661369473039568596582881330](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/2/02079068fe6857940afab5d51c232e87116094d6.jpeg)

---

<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:** [August 13, 2024, 6:58pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/12 "2024-08-13T18:58:05Z")

</div>

Hello @aravanagababu595owj3 @tomj20373drj9gy  
I have merged the community posts since they are talking about the same topic.

You can find more information on how to send an image through an API on these community posts: [WEB API Firebase Storage It does not upload the file to the server - Questions about Thunkable / Web API’s - Community](https://community.thunkable.com/t/web-api-firebase-storage-it-does-not-upload-the-file-to-the-server/2369895)

[WhisperAPI not working - Questions about Thunkable / Web API’s - Community](https://community.thunkable.com/t/whisperapi-not-working/2656439)

---

<div class="post-metadata">

**Author:** ![tomj20373drj9gy](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@tomj20373drj9gy](https://community.thunkable.com/u/tomj20373drj9gy)\
**Post date:** [August 14, 2024, 3:38am UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/13 "2024-08-14T03:38:09Z")

</div>

Actually I have a dought that thunkable can directly send images to server or not through api where my api only accepts image format.

For clarification I have send image and backend responding, and sending message to thunkable but output in thunkable coming as load failed…

 ![17236066527378661371391061884640](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/c/2cb9777310ba5b8fabb8ae45961303fa972b2da5.jpeg)

---

<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:** [August 15, 2024, 10:51am UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/14 "2024-08-15T10:51:38Z")

</div>

Hello @tomj20373drj9gy  
Thank you for sharing more information.

It is possible to send an image via Thunkable. The way the image is sent is causing the issue.

Have you tried to send it as a base64 or as a URL?

If these formats don’t work for you, you could use a web viewer instead of the Web API component to make the API call.

---

<div class="post-metadata">

**Author:** ![aravanagababu595owj3](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@aravanagababu595owj3](https://community.thunkable.com/u/aravanagababu595owj3)\
**Post date:** [August 15, 2024, 11:06am UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/15 "2024-08-15T11:06:59Z")

</div>

I am using cloudinary api to convert them into url but my model takes url in only json format but cloudinary is giving img in url not json  
Could u plz give solution to it

 ![17237199521808970260809308651313](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/1/6145a235ed1299c839ac75f0b456c2b5ee928a03.jpeg)

---

<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:** [August 15, 2024, 12:03pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/16 "2024-08-15T12:03:36Z")

</div>

Hi @aravanagababu595owj3  
For the API body, you will need to create a JSON using the “generate json from object” and “create object” blocks  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/1/e12fb89cced8dec37f34198da2ac32f916aa63fa.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/2/c269fda9056abb49b7338340c084124648be26e5.png)

---

<div class="post-metadata">

**Author:** ![aravanagababu595owj3](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@aravanagababu595owj3](https://community.thunkable.com/u/aravanagababu595owj3)\
**Post date:** [August 16, 2024, 3:54am UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/17 "2024-08-16T03:54:31Z")

</div>

![17237803241144853191899207932081](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/8/a86659b877fccc182fa9bd077b0637be816b8406.jpeg)  
 ![17237803534745828417067446714238](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/6/86d806ea6de3d32ee7db9dfcb055c910dfc532a2.jpeg)  
 ![17237803750971336119409846967390](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/9/398c48627a11ad3d4e7637e808400c07ca124780.jpeg)  
From cloudnary the url is not coming in json format it seems after change also.

---

<div class="post-metadata">

**Author:** ![ramlord704ak26pw](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@ramlord704ak26pw](https://community.thunkable.com/u/ramlord704ak26pw)\
**Post date:** [August 16, 2024, 3:56pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/18 "2024-08-16T15:56:52Z")

</div>

I also have similar issue, could any one slove this

---

<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:** [August 16, 2024, 8:27pm UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/19 "2024-08-16T20:27:39Z")

</div>

Hello @aravanagababu595owj3  
Based on your last screenshot, you have a “get” API call, have you tried to make it “post”?  
Also, on the API body, the field name needs to be set based on your API.

Hello @ramlord704ak26pw , welcome to Thunkable! 🎉

Do you use the same API URL?  
Does it accept a JSON as an input?

Be sure to check out [How to ask Great Questions v2.0](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983/1), the [Community Guidelines](https://community.thunkable.com/t/community-guidelines/78/8), and our [Getting Started Guide](https://docs.thunkable.com/getting-started/get-started) to make the best of your Thunkable Community experience!

---

<div class="post-metadata">

**Author:** ![aravanagababu595owj3](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@aravanagababu595owj3](https://community.thunkable.com/u/aravanagababu595owj3)\
**Post date:** [August 17, 2024, 4:24am UTC](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425/20 "2024-08-17T04:24:40Z")

</div>

Yes api takes input only in json format,but cloudinary not giving output in json format  
I have tried post method also same issue

[Next page](https://community.thunkable.com/t/web-api-not-working-shows-null-for-image-classification-api/3134425.md?page=2)
