# API json help needed

**URL:** <https://community.homey.app/t/api-json-help-needed/21775>\
**Category:** Questions & Help\
**Created:** [December 3, 2019, 10:13am UTC](https://community.homey.app/t/api-json-help-needed/21775 "2019-12-03T10:13:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blusser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/blusser/32/13353_2.png) [@Blusser](https://community.homey.app/u/Blusser)\
**Post date:** [December 3, 2019, 10:13am UTC](https://community.homey.app/t/api-json-help-needed/21775/1 "2019-12-03T10:13:06Z")

</div>

Hi all,

I’m trying to get the value of message.body (“Z 2 ABCweg Voorbeeldstad 012345”) of the following API output in a variable but I’m not that familiar with these things.  
I’m currently using “http request flowkaarten” app but I don’t know which values I need to use for parameter 2 and 3 in the “get jsonpath trigger waarde”  
Can somebody help me with this ? 😉  
This is the API example output :

```
[

```

{  
“id”: 3234334,  
“created\_at”: “2019-01-06T04:47:11.000+01:00”,  
“groups”: [  
{  
“id”: 3,  
“name”: “Kring 111”,  
“address”: {  
“address\_line1”: “”,  
“address\_line2”: “”,  
“street\_name”: “nieuwestraat”,  
“house\_number”: “1”,  
“postcode”: “1234AB”,  
“city”: “”,  
“country”: “NL”,  
“state”: “”,  
}  
},  
{  
“id”: 11,  
“name”: “Kring 112”,  
“address”: {  
“address\_line1”: “”,  
“address\_line2”: “”,  
“street\_name”: “nieuwestraat”,  
“house\_number”: “1”,  
“postcode”: “1234AB”,  
“city”: “Voorbeeldstad”,  
“country”: “NL”,  
“state”: “”,  
}  
},  
{  
“id”: 39,  
“name”: “Kring 113”,  
“address”: {  
“address\_line1”: “”,  
“address\_line2”: “”,  
“street\_name”: “nieuwestraat”,  
“house\_number”: “1”,  
“postcode”: “1234AB”,  
“city”: “Voorbeeldstad”,  
“country”: “NL”,  
“state”: “”,  
}  
},  
{  
“id”: 36,  
“name”: “Kring 114”,  
“address”: {  
“address\_line1”: “”,  
“address\_line2”: “”,  
“street\_name”: “nieuwestraat”,  
“house\_number”: “1”,  
“postcode”: “1234AB”,  
“city”: “Voorbeeldstad”,  
“country”: “NL”,  
“state”: “”,  
}  
},  
{  
“id”: 25,  
“name”: “Voorbeeldstad Noord”,  
“address”: {  
“address\_line1”: “”,  
“address\_line2”: “”,  
“street\_name”: “nieuwestraat”,  
“house\_number”: “1”,  
“postcode”: “1234AB”,  
“city”: “Voorbeeldstad”,  
“country”: “NL”,  
“state”: “”,  
}  
}  
],  
“message”: {  
“received\_at”: “2019-01-06T04:47:11.000+01:00”,  
“comments”: null,  
“complainant\_name”: null,  
“location”: null,  
“business”: null,  
“call\_type”: null,  
“units”: null,  
“sub\_address”: null,  
“body”: “Z 2 ABCweg Voorbeeldstad 012345”,  
“address”: {  
“address\_line1”: null,  
“address\_line2”: null,  
“street\_name”: “ABCweg”,  
“house\_number”: null,  
“postcode”: null,  
“city”: “Voorbeeldstad”,  
“country”: “NL”,  
“state”: null,  
}  
},  
“address”: {  
“address\_line1”: null,  
“address\_line2”: null,  
“street\_name”: “ABCweg”,  
“house\_number”: null,  
“postcode”: null,  
“city”: “Voorbeeldstad”,  
“country”: “NL”,  
“state”: null,  
}  
}  
]

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [December 5, 2019, 4:40am UTC](https://community.homey.app/t/api-json-help-needed/21775/2 "2019-12-05T04:40:45Z")

</div>

Hi

You can get the message body value out by inserting the $.message.body into the JSONpath field.

For more testing you can do in [https://jsonpath.com/](https://jsonpath.com/)  
**Note** that you have to change all the quotation marks in your example if you use the link above to test.
