# Help with extracting only some data from a JSON array

**URL:** <https://forum.bubble.io/t/help-with-extracting-only-some-data-from-a-json-array/279344>\
**Category:** Need help\
**Created:** [August 22, 2023, 9:47pm UTC](https://forum.bubble.io/t/help-with-extracting-only-some-data-from-a-json-array/279344 "2023-08-22T21:47:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyweb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnnyweb/32/177785_2.png) [@johnnyweb](https://forum.bubble.io/u/johnnyweb)\
**Post date:** [August 22, 2023, 9:47pm UTC](https://forum.bubble.io/t/help-with-extracting-only-some-data-from-a-json-array/279344/1 "2023-08-22T21:47:39Z")

</div>

Hey there,

Im grabbing some data via API from both the body and an array within the body.

The arrray has data that looks like this in postman:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/b/3b3e058432652728ecd76d33310e9573cfe77814.png)

In the workflow, I insert the result into a text field using add  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/2/b2009e383bed9c1e128aba8077de3d3636397fea.png)

Heres the whole step for clarity

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/9/492757e915032586913ee066d4c0a34055ab0c02.png)

Now I want to be able to grab just text spoken between two times. I can filter within the array for start time so it would be something like where each items start is \> StartTime and \< End time, but Im not sure how to approach this in the workflow.

Should I create a new type fill that, then filter to the displayed data type or can this be done in one step?

Advice appreciated 😃

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 22, 2023, 10:02pm UTC](https://forum.bubble.io/t/help-with-extracting-only-some-data-from-a-json-array/279344/2 "2023-08-22T22:02:53Z")

</div>

Just filter the results of step 2, so as only to include results more than or less than the relevant times.

---

<div class="post-metadata">

**Author:** ![johnnyweb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnnyweb/32/177785_2.png) [@johnnyweb](https://forum.bubble.io/u/johnnyweb)\
**Post date:** [August 22, 2023, 10:05pm UTC](https://forum.bubble.io/t/help-with-extracting-only-some-data-from-a-json-array/279344/3 "2023-08-22T22:05:14Z")

</div>

Thanks @adamhholmes , do you mean in the “Results add” section? just tack on filtered:?

About to give myself a head-slap for not thinking of that

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 22, 2023, 10:21pm UTC](https://forum.bubble.io/t/help-with-extracting-only-some-data-from-a-json-array/279344/4 "2023-08-22T22:21:11Z")

</div>

Yeah exactly… after `Results of step 2 (rapid API - Youtu...)'s body: each item's transcription` add the `:filtered` operator, and filter by `start`

---

<div class="post-metadata">

**Author:** ![johnnyweb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnnyweb/32/177785_2.png) [@johnnyweb](https://forum.bubble.io/u/johnnyweb)\
**Post date:** [August 22, 2023, 10:37pm UTC](https://forum.bubble.io/t/help-with-extracting-only-some-data-from-a-json-array/279344/5 "2023-08-22T22:37:33Z")

</div>

Thanks for the help - I think I went down this rabbit hole, the issue is I’m not filtering on the item Im adding but on it’s equivalent start value in the array . .

So do I filter for that here?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/9/f94fb50eed977ee7e45c1a7c3236f4b698ca86c7.png)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 22, 2023, 10:40pm UTC](https://forum.bubble.io/t/help-with-extracting-only-some-data-from-a-json-array/279344/6 "2023-08-22T22:40:31Z")

</div>

No… you need to filter the transcription array (not the subtitles)…

So , like I said, apply the filter to the transcriptions, rather than the subtitles.

---

<div class="post-metadata">

**Author:** ![johnnyweb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnnyweb/32/177785_2.png) [@johnnyweb](https://forum.bubble.io/u/johnnyweb)\
**Post date:** [August 23, 2023, 11:40pm UTC](https://forum.bubble.io/t/help-with-extracting-only-some-data-from-a-json-array/279344/7 "2023-08-23T23:40:08Z")

</div>

Awesome - thanks again for the response @adamhholmes that resolved it

Lesson for me was that :filtered didn’t need to be at the end. It can go wherever the logic requries it 🙂

For the record, this was the corrected approach  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/e/6eff16fc8fbc035cb581e8247e29eed0770d17b7.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [October 31, 2023, 9:48pm UTC](https://forum.bubble.io/t/help-with-extracting-only-some-data-from-a-json-array/279344/8 "2023-10-31T21:48:08Z")

</div>

Closed on October 31, 2023, 9:48pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
