# Using Thunkable with Rapid API

**URL:** <https://community.thunkable.com/t/using-thunkable-with-rapid-api/588002>\
**Category:** Questions about Thunkable X\
**Created:** [May 24, 2020, 8:55am UTC](https://community.thunkable.com/t/using-thunkable-with-rapid-api/588002 "2020-05-24T08:55:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![edward.grossbaum64](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@edward.grossbaum64](https://community.thunkable.com/u/edward.grossbaum64)\
**Post date:** [May 24, 2020, 8:55am UTC](https://community.thunkable.com/t/using-thunkable-with-rapid-api/588002/1 "2020-05-24T08:55:34Z")

</div>

Hi, I’m trying to get Thunkable to work with RapidAPI but I’m stuck with a basic issue.

What I’m trying to do in the app for example, is have a textbox which people can key the ticker code eg. MSFT (Microsoft), and return a specific piece of information.

The API endpoint I’m trying to utilise is [rapidapi.com/integraatio/api/morningstar1?endpoint=apiendpoint\_7ff3e10c-0e52-4d41-a62a-d29d51a0d678](http://rapidapi.com/integraatio/api/morningstar1?endpoint=apiendpoint_7ff3e10c-0e52-4d41-a62a-d29d51a0d678)

Where I’m stuck and where I’m not familiar with is how the query in the API works. I understand I need to first get the URL, which is [https://morningstar1.p.rapidapi.com/keyratios/statistics](https://morningstar1.p.rapidapi.com/keyratios/statistics). Then combine it with queries of the ticker code (MSFT) and I believe the MIC code (XNAS).

I’m stuck as I’m not sure how to combine both MSFT and XNAS into the URL so that the overall URL is correct. Believe there is a need to have “?” or something to the effect? Have provided the screenshots below for reference of what I see and what I’m trying to build for the blocks and where I’m stuck.

**Thunkable**

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

**RapidAPI**

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

---

<div class="post-metadata">

**Author:** ![edward.grossbaum64](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@edward.grossbaum64](https://community.thunkable.com/u/edward.grossbaum64)\
**Post date:** [May 28, 2020, 3:39am UTC](https://community.thunkable.com/t/using-thunkable-with-rapid-api/588002/2 "2020-05-28T03:39:45Z")

</div>

Anybody?

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [May 28, 2020, 4:24am UTC](https://community.thunkable.com/t/using-thunkable-with-rapid-api/588002/4 "2020-05-28T04:24:15Z")

</div>

would you like share your solution?

---

<div class="post-metadata">

**Author:** ![edward.grossbaum64](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@edward.grossbaum64](https://community.thunkable.com/u/edward.grossbaum64)\
**Post date:** [May 28, 2020, 5:12am UTC](https://community.thunkable.com/t/using-thunkable-with-rapid-api/588002/5 "2020-05-28T05:12:09Z")

</div>

yes, please share. Would be most grateful!

---

<div class="post-metadata">

**Author:** ![manny.juan](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@manny.juan](https://community.thunkable.com/u/manny.juan)\
**Post date:** [May 28, 2020, 7:31am UTC](https://community.thunkable.com/t/using-thunkable-with-rapid-api/588002/6 "2020-05-28T07:31:31Z")

</div>

i figured it out myself. i used the rapidapi version of openweathermap as an example.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/0/80f5f44acbb6ed922a52e841f13b4bd23c9adc5e.png)

note that the header parameters section calls for 2 parameters: x-rapidapi-host and x-rapidapi-key. these will go to the webapi headers block.

the minimum required query parameter is q (the place being queried) and its value. this will go to the webapi parameters block.

the url in the unirest statement will go to the webapi url block.

 ![rapid2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/e/9ec85aa14f489d12de726a735e8a63c139f7a239.png)

note that i added an APPID parameter and its value in the query section (It’s required by openweather.api).

i had already figured out what the json response looks like by reading the api docs from openweather so it wasn’t hard to code the json processing portion.

if you’re interested what the block looks like if you query openweather directly (you have to register first to obtain an APPID), this is how it’s done in “native” mode (without going through rapidapi)

 ![rapid1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/a/4a6e8c6563d65e19dab8fb3cfcd0c69385aef2d4.png)

---

<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, 11:28am UTC](https://community.thunkable.com/t/using-thunkable-with-rapid-api/588002/7 "2024-11-08T11:28:57Z")

</div>


