# \[Solved\] How do I set API Headers?

**URL:** <https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504>\
**Category:** Questions about Thunkable X\
**Tags:** solved, webapi\
**Created:** [March 14, 2023, 10:22pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504 "2023-03-14T22:22:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 14, 2023, 10:22pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/1 "2023-03-14T22:22:01Z")

</div>

Hi

Im new to this, but im basically trying to compile an app to help make my sons life easier after being diagnosed with Crohns.  
Im trying to scan a food barcode, check this with the API [Nutritionix - Nutrition Database API Documentation (msilverman) | RapidAPI](https://rapidapi.com/msilverman/api/nutritionix-nutrition-database/) and then highlight ingredients that are unsafe for him… but im falling down at the first hurdle with a null response, blocks are as below

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/7/97c5cef4188fdf9bc521354e41fca3413163dd75.png)

Any help massively appreciated

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [March 15, 2023, 5:07am UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/2 "2023-03-15T05:07:40Z")

</div>

Hello @matt_toyntond361, Welcome to our Community!

Try this,

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

The API Headers need to be in object type, you need to append `?upc=` in the URL and remove `.json` at the end. Try making an API call using the above blocks, and share the delimited list you see, so we can help you get the right attribute you want from the list of response properties of the API.

You can read some more stuff about handling APIs in Thunkable here -

> **[Web API](https://docs.thunkable.com/v/snap-to-place/web-api)**

Let me know if this helps. Cheers!

---

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 15, 2023, 9:34am UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/3 "2023-03-15T09:34:13Z")

</div>

Thanks for this , blocks now as below

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/0/508b6b567ea57e35506705e17b9a7e422cf1ea86.png)

returned result is a comma delim list of numbers 0, - 59

how can i see the full response

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [March 15, 2023, 10:28am UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/4 "2023-03-15T10:28:11Z")

</div>

@matt_toyntond361 - which property do you want to use from the JSON response?

Is something like this resource from @drted useful in understanding how to work with your data?

> [@JSON / Object Tutorial](https://community.thunkable.com/t/json-object-tutorial/1085666):
>
> Working with JSON data is a common Thunkable Discussion topic. Here I will try to answer the most common questions and provide solutions to the most common problems. This tutiorial has six parts: [Basic JSON](https://community.thunkable.com/t/json-object-tutorial/1085666/2)[JSON Errors](https://community.thunkable.com/t/json-object-tutorial/1085666/)[Intermediate JSON](https://community.thunkable.com/t/json-object-tutorial/1085666/4)[Advanced JSON](https://community.thunkable.com/t/json-object-tutorial/1085666/5)[Firebase Realtime DB and Cloud Variables](https://community.thunkable.com/t/json-object-tutorial/1085666/6)[Web API](https://community.thunkable.com/t/json-object-tutorial/1085666/7) The companion project with all examples can be [found here](https://x.thunkable.com/projectPage/601efcc715209c1fd57a3921).

---

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 15, 2023, 11:33am UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/5 "2023-03-15T11:33:22Z")

</div>

thanks again, i just really want to get to a position where im pulling barcode lookup in, then i can refine - looks like a v2 of the api is available so ive modified slightly but dont pull in what i was expecting it to - not too sure what im doing incorrectly here

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

 ![Screenshot 2023-03-15 at 11.31.45](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/87ad7f24d3190e77805fe7a13c852b464e8a743a.jpeg)

---

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 15, 2023, 11:39am UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/7 "2023-03-15T11:39:48Z")

</div>

Schoolboy error, typod on the URL , its now pulling in some info so just need to work out how to just disply ingredients ang highlight those know to cause issues for Chrohns

 ![Screenshot 2023-03-15 at 11.36.38](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/57d16aaf6e0bd50b038bcf054257426066800a84.jpeg)

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [March 15, 2023, 11:43am UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/8 "2023-03-15T11:43:08Z")

</div>

Alright. Can you do one thing, instead of displaying response in a label, put it into a text input, copy the JSON response you’re getting, put it into [https://jsonformatter.curiousconcept.com/](https://jsonformatter.curiousconcept.com/), and share the pic of how the formatted JSON looks? Would help us get a better idea of where the ingredients property is located.

(or you can just share the raw json text here, i’ll format it)

Thanks, Kartik

---

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 15, 2023, 12:29pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/9 "2023-03-15T12:29:11Z")

</div>

Full json being held for review but these are the fields that i needs to capture, picture is least important

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/2/e22afd13d1da396c83d99ffbf4dd9d70df6749e2.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/d/fd84c58cf1c09604519ba830dea8ff3d0f5d2537.png)

---

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 15, 2023, 1:32pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/10 "2023-03-15T13:32:10Z")

</div>

Ok i think i have it working now with an alternative URL and product , ive marked the below with \*\* for the fields i want to capture, photo less important but would be nice for reference

{  
“foods”:[  
{  
\*\* “food\_name”:“Rice Krispies”,  
\*\* “brand\_name”:“Kellogg’s”,  
“serving\_qty”:1,  
“serving\_unit”:“serving”,  
“serving\_weight\_grams”:30,  
“nf\_metric\_qty”:30,  
“nf\_metric\_uom”:“g”,  
“nf\_calories”:118.2300033569336,  
“nf\_total\_fat”:0.4000000059604645,  
“nf\_saturated\_fat”:0.10000000149011612,  
“nf\_cholesterol”:null,  
“nf\_sodium”:120,  
“nf\_total\_carbohydrate”:26,  
“nf\_dietary\_fiber”:0.8999999761581421,  
“nf\_sugars”:2.4000000953674316,  
“nf\_protein”:2.0999999046325684,  
“nf\_potassium”:null,  
“nf\_p”:null,  
“full\_nutrients”:[  
{  
“attr\_id”:203,  
“value”:2.1  
},  
{  
“attr\_id”:204,  
“value”:0.4  
},  
{  
“attr\_id”:205,  
“value”:26  
},  
{  
“attr\_id”:208,  
“value”:118.23  
},  
{  
“attr\_id”:269,  
“value”:2.4  
},  
{  
“attr\_id”:291,  
“value”:0.9  
},  
{  
“attr\_id”:307,  
“value”:120  
},  
{  
“attr\_id”:606,  
“value”:0.1  
}  
],  
“nix\_brand\_name”:“Kellogg’s”,  
“nix\_brand\_id”:“51db37b0176fe9790a8983d8”,  
“nix\_item\_name”:“Rice Krispies”,  
“nix\_item\_id”:“5755d1df4af43853405196a5”,  
“metadata”:{

```
  },
  "source":8,
  "ndb_no":null,
  "tags":null,
  "alt_measures":null,
  "lat":null,
  "lng":null,

```

\*\* “photo”:{  
“thumb”:“[https://nutritionix-api.s3.amazonaws.com/60cb54d3bc476c0006962fc1.jpeg](https://nutritionix-api.s3.amazonaws.com/60cb54d3bc476c0006962fc1.jpeg)”,  
“highres”:null,  
“is\_user\_uploaded”:false  
},  
“note”:null,  
“class\_code”:null,  
“brick\_code”:null,  
“tag\_id”:null,  
“updated\_at”:“2021-06-17T13:57:39+00:00”,  
\*\* “nf\_ingredient\_statement”:“rice, sugar, contains 2% or less of salt, malt flavoring, bht for freshness. vitamins and minerals: iron, vitamin c (ascorbic acid), vitamin e (alpha tocopherol acetate), niacinamide, vitamin a palmitate, vitamin b6 (pyridoxine hydrochloride), vitamin b2 (riboflavin), vitamin b1 (thiamin hydrochloride), folic acid, vitamin b12, vitamin d.”  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [March 15, 2023, 2:20pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/11 "2023-03-15T14:20:13Z")

</div>

Glad you got it working. Please mark the post you found helpful as " ✅ Solution" to mark this topic solved.

Good Luck on your app!  
Cheers, Kartik.

---

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 15, 2023, 3:43pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/12 "2023-03-15T15:43:32Z")

</div>

THanks for all your help

---

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 15, 2023, 4:31pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/13 "2023-03-15T16:31:03Z")

</div>

hi Kartik

Im sorry i dont suppose you can guide me through the API queries can you im sure ive done everything correctly but i just get a value of null returned… or should i create a new post ?

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

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/f/3f09c58269514e1eababbace4a0a9060cbaf9520.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:** [March 15, 2023, 4:39pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/14 "2023-03-15T16:39:20Z")

</div>

There are two problems with how you are trying to parse the JSON response:

1. When you get a property of an object, it will return a text string (so “food\_name” will return “Rice Krispies”, for example). You should not then convert that text string back to JSON. That will just add unnecessary symbols such as { } to your result. So remove the `generate JSON from object` block.

2. The square brackets [] in a JSON response indicate an array (list):

```auto
{
“foods”:[
{

```

So you’ll need to use List blocks to access that data or use property notation that includes list indexing. You also need to include the top property in the JSON path. So for example, to get “Rice Krispies” as a result, you’d need to get the property “**foods[1].food\_name**” where “foods” is the top property name and [1] is the list index for the first item in the “foods” array.

If your “foods” list contains more than one item, then you’d need to reference additional items using their index value (such as “foods[2].food\_name”) or use a loop to loop through them with the loop counter ‘j’ in place of the integer [2].

In case you’re interested, I have a video that explains JSON parsing here: [API JSON Tutorial (Video)](https://community.thunkable.com/t/api-json-tutorial-video/1140575)

---

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 15, 2023, 4:55pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/15 "2023-03-15T16:55:48Z")

</div>

THanks, yes ill watch that now as im a little confused 🙂

---

<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:** [March 15, 2023, 6:03pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/16 "2023-03-15T18:03:53Z")

</div>

I don’t talk about property notation in the video but I do mention it in the comments in that topic.

---

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 15, 2023, 6:13pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/17 "2023-03-15T18:13:26Z")

</div>

Tatang, very informative thanks so much, im not sure if im being dense but im still not getting a value, in the JSONformatter your using i see it breaks each array down for you, im not seeing that in mine and am struggling to understand which properties to pull…

Based on your video ive changed the blocks as below, and im sure that the error is the properties im selecting, would you mind having a look over that ?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/87e86ff81dfbada144fdc21e58dd0aa5666fa5a4.png)  
and this is the JSON after the URL and barcode are submitted

```auto
{
  "foods": [
    {
      "food_name": "Rice Krispies",
      "brand_name": "Kellogg's",
      "serving_qty": 1,
      "serving_unit": "serving",
      "serving_weight_grams": 30,
      "nf_metric_qty": 30,
      "nf_metric_uom": "g",
      "nf_calories": 118.2300033569336,
      "nf_total_fat": 0.4000000059604645,
      "nf_saturated_fat": 0.10000000149011612,
      "nf_cholesterol": null,
      "nf_sodium": 120,
      "nf_total_carbohydrate": 26,
      "nf_dietary_fiber": 0.8999999761581421,
      "nf_sugars": 2.4000000953674316,
      "nf_protein": 2.0999999046325684,
      "nf_potassium": null,
      "nf_p": null,
      "full_nutrients": [
        {
          "attr_id": 203,
          "value": 2.1
        },
        {
          "attr_id": 204,
          "value": 0.4
        },
        {
          "attr_id": 205,
          "value": 26
        },
        {
          "attr_id": 208,
          "value": 118.23
        },
        {
          "attr_id": 269,
          "value": 2.4
        },
        {
          "attr_id": 291,
          "value": 0.9
        },
        {
          "attr_id": 307,
          "value": 120
        },
        {
          "attr_id": 606,
          "value": 0.1
        }
      ],
      "nix_brand_name": "Kellogg's",
      "nix_brand_id": "51db37b0176fe9790a8983d8",
      "nix_item_name": "Rice Krispies",
      "nix_item_id": "5755d1df4af43853405196a5",
      "metadata": {},
      "source": 8,
      "ndb_no": null,
      "tags": null,
      "alt_measures": null,
      "lat": null,
      "lng": null,
      "photo": {
        "thumb": "https://nutritionix-api.s3.amazonaws.com/60cb54d3bc476c0006962fc1.jpeg",
        "highres": null,
        "is_user_uploaded": false
      },
      "note": null,
      "class_code": null,
      "brick_code": null,
      "tag_id": null,
      "updated_at": "2021-06-17T13:57:39+00:00",
      "nf_ingredient_statement": "rice, sugar, contains 2% or less of salt, malt flavoring, bht for freshness. vitamins and minerals: iron, vitamin c (ascorbic acid), vitamin e (alpha tocopherol acetate), niacinamide, vitamin a palmitate, vitamin b6 (pyridoxine hydrochloride), vitamin b2 (riboflavin), vitamin b1 (thiamin hydrochloride), folic acid, vitamin b12, vitamin d."
    }
  ]
}

```

---

<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:** [March 15, 2023, 7:07pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/18 "2023-03-15T19:07:47Z")

</div>

I formatted your JSON response text above using the \</\> button in the forums toolbar. Without that, it’s not valid JSON because the forums convert quotes to smart quotes and that breaks the formatting.

After doing that and pasting it into [Best JSON Viewer and JSON Beautifier Online](https://codebeautify.org/jsonviewer), I get this:

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

You can see that when I click on a property such as “food\_name”, it displays the path to that property at the top. In this case, it’s object → foods → 0 → food\_name. The 0 is the first item of the JSON array/list (0, 1, 2, 3, etc.). In Thunkable, lists start at 1 (1, 2, 3, etc.). So as I said, we use a List block or property notation. I find property notation much easier because it’s a single text string for _any_ property in the JSON response. But if you prefer to use List blocks, those will work as well.

The issue in your screenshot is that you’re taking the first list item (#1) of the property “nf\_ingredient\_statement” but if I click on that property on the JSON formatting website, the path to it is:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/017cefc9a0eeab8af300e9a29bae7d67f15dce8c.png)

So that tells me that “foods” is the list, **not** “nf\_ingredient\_statement.” Therefore, you have to take the first list item of the property “foods” and **not** take the list item of “nf\_ingredient\_statement”. If “nf\_ingredient\_statement” was an array/list, it would have a list size like [1] or [5] after it on that website but it doesn’t. So it’s not a list.

I would encourage you to try using property notation as I find it so much more efficient. You would just get the property “foods[1].nf\_ingredient\_statement” of object `app variable $API` and be done with it. No need for List blocks or multiple `get property of object` blocks.

If that doesn’t work for you, post an updated screenshot. I can provide a screenshot as well… I’m just much faster sometimes at typing an explanation than creating a screenshot!

---

<div class="post-metadata">

**Author:** ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)\
**Post date:** [March 15, 2023, 7:35pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/19 "2023-03-15T19:35:41Z")

</div>

thanks for such a thorough explanation, with that and the right JSON formatter i think i get the idea of property notation, i do still however get the same null response…

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

Not that this is what i need but just to test that this does get all the information fine, and it does

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/7/e71b22ee7aca3399481fe7ff3a67a002a1ce61ec.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:** [March 15, 2023, 9:06pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/20 "2023-03-15T21:06:31Z")

</div>

You’re right… your blocks are correct are far as I can tell and when I do the same with the JSON response you posted above, I also get a result of null. It’s puzzling…

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/7/a7e7e6962802623b7f35af5a2568742f8d43eab0.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:** [March 15, 2023, 9:12pm UTC](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504/21 "2023-03-15T21:12:06Z")

</div>

This is working:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/6803c83580f169ad2f808e9e6ff1f2447cb33d7f.png)

So that leads me to think it was either a corrupt variable name (maybe the $ ?) or an invalid property value although I double-checked that text string.

**Edit:** and this returns null:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/9/59724954797e2be84c9fd328a5398ca190770c8b.png)

I’ve never had this happen with variables while parsing JSON. So I’m baffled!

@matt_conroy, any sense of what I’ve done wrong or perhaps discovered a new bug? Here’s the project link (see the first screen): [Thunkable](https://x.thunkable.com/copy/36c14b1233b4e296a1ee7e62909f3fdb)

I even tried really simple JSON:

```auto
{"name":"Amy", "age":30, "car":"Honda"}

```

And it still fails with a variable when getting the property “car” from the object but works when the JSON response is a text string connected to the `get object from JSON` block. Is it possible the `initialize variable` block is converting the format of the JSON incorrectly? As I said, I’ve never had this problem before with the many API responses I’ve parsed.

[Next page](https://community.thunkable.com/t/solved-how-do-i-set-api-headers/2324504.md?page=2)
