# How to get response in Tag using API

**URL:** <https://community.homey.app/t/how-to-get-response-in-tag-using-api/144031>\
**Category:** Questions & Help\
**Created:** [October 12, 2025, 11:33am UTC](https://community.homey.app/t/how-to-get-response-in-tag-using-api/144031 "2025-10-12T11:33:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HScholing](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hscholing/32/106813_2.png) [@HScholing](https://community.homey.app/u/HScholing)\
**Post date:** [October 12, 2025, 11:33am UTC](https://community.homey.app/t/how-to-get-response-in-tag-using-api/144031/1 "2025-10-12T11:33:25Z")

</div>

I’m new using API’s. I want to use responses to send as a notification. For example this one: Using Logic I can access the API from [https://api-ninjas.com/api/dadjokes](https://api-ninjas.com/api/dadjokes) . I do get a joke fetched but then I want to extract the text and put it in a tag. In this case an example:

[{ “joke”: “I have a joke about immortality, and it never gets old.” }]

So I should use the Logic again to transform JSON to a text using a path I think? But what should this path be? I already tried $.joke for example, but this is invalid. Also only using joke does not work. So my question is: how do paths work using an output like this? If I understand how this formatting is working I can use other API’s to fill up variables

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [October 12, 2025, 12:34pm UTC](https://community.homey.app/t/how-to-get-response-in-tag-using-api/144031/2 "2025-10-12T12:34:36Z")

</div>

> [@HScholing](#):
>
> example:
> 
> [{ “joke”: “I have a joke about immortality, and it never gets old.” }]

For your example `$[0].joke` could work.

You can use [https://jsonpath.com/](https://jsonpath.com/) to test paths on a sample.
