# API JSON Tutorial (Video)

**URL:** <https://community.thunkable.com/t/api-json-tutorial-video/1140575>\
**Category:** Tutorials and DIY Guides\
**Tags:** community, webapi, json, object, intermediate, tutorial\
**Created:** [March 3, 2021, 7:11pm UTC](https://community.thunkable.com/t/api-json-tutorial-video/1140575 "2021-03-03T19:11:43Z")\
**Posts on this page:** 1\
**Showing post:** 32

<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:** [January 12, 2022, 6:07am UTC](https://community.thunkable.com/t/api-json-tutorial-video/1140575/32 "2022-01-12T06:07:05Z")

</div>

If it’s not working using https:// in Thunkable then I’m not sure. I might be able to figure it out if I could test the API blocks myself.

Do you have an API key you can share with me privately?

**Edit:** I was able to get a key and test the URL in the browser. It works with http:// but not https://. With a secure https:// connection, it returns the error you’re getting.

I feel like there’s an issue where Thunkable sends all API requests as https://. I can’t quite remember and I didn’t find any topics where that’s explained. Maybe someone else can chime in here.

**Edit #2:** Found one reference to this:

> [@Web API http vs https](https://community.thunkable.com/t/web-api-http-vs-https/853891/4):
>
> Yes. same here. spent hours debugging my API until I realised through webview on broswer developer tools that thunkable have been sending HTTPS instead of HTTP. Is there no way to use HTTP on webAPI blocks? even when we clearly put HTTP as the URL?

Then again, this seems to indicate this issue has been addressed:

> <https://github.com/thunkable/thunkable-issues/issues/714>
>
> \### Platform
> X - Specifically the Live View (Web) version
> 
> \### Issue/Request …Origin
> Discovered as I develop. I'm building an app and api at the same time so poking a hole through my firewall for to get to my dev box which is running puma.  
> 
> \### Steps to Reproduce
> 1. Create an app to call any API on http (not https) 
> 2. Click Live Test
> 3. It won't work (generates Invalid HTTP format error)
> 4. Click Live Test, link phone
> 5. It will work on the phone
> 
> 
> \### Project Link
> App is private. 
> 
> \### Expected Behavior
> It works fine with Live Test using the phone which correctly interprets how to communicate with an http uri.
> 
> \### Actual Behavior
> If you have access to the server logs you'll see some message about Invalid HTTP Format. I did with attempts for both puma and thin. Here is the puma error:
> 
> 2020-10-22 10:14:52 -0600: HTTP parse error, malformed request (): #\<Puma::HttpParserError: Invalid HTTP format, parsing fails.\>

---

_[View the full topic](https://community.thunkable.com/t/api-json-tutorial-video/1140575)._
