# Help with displaying API result arrays

**URL:** <https://community.glideapps.com/t/help-with-displaying-api-result-arrays/76952>\
**Category:** Ask for Help\
**Created:** [October 9, 2024, 2:35pm UTC](https://community.glideapps.com/t/help-with-displaying-api-result-arrays/76952 "2024-10-09T14:35:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghostmaga](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@ghostmaga](https://community.glideapps.com/u/ghostmaga)\
**Post date:** [October 9, 2024, 2:35pm UTC](https://community.glideapps.com/t/help-with-displaying-api-result-arrays/76952/1 "2024-10-09T14:35:22Z")

</div>

Hi everyone, I’m working on a Glide app where I have a list of people, and for each person, I make an API call to retrieve all their documents. The API returns a JSON result, and I have successfully formatted this into an array, where each element corresponds to a document entry. For example, if the API returns 10 documents for Person A, I process the result and split it into an array of 10 elements.

The challenge I’m facing is displaying this array. I want to show these document entries as a collection or a list, but as far as I know, Glide doesn’t have a direct way to display an array as a collection. I have considered working with relations, but I don’t have a dedicated table that stores all the documents.

I was wondering if anyone here has experience handling similar scenarios. What strategies or methods do you use to display arrays or dynamically generated lists from API calls in Glide? Any advice or suggestions would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 9, 2024, 3:26pm UTC](https://community.glideapps.com/t/help-with-displaying-api-result-arrays/76952/2 "2024-10-09T15:26:26Z")

</div>

Something like this may be of interest.

> [@fishbaguette\_breadbasket Transpose Columns to an Inline List: The Miracle Method](https://community.glideapps.com/t/transpose-columns-to-an-inline-list-the-miracle-method/32766):
>
> I’m often asked how to take columns of data (say form responses) and display them in an inline list. Here’s one way to do it—the MIRACLE METHOD. [[Glide: Transpose Data Columns into an Inline List with the MIRACLE METHOD] ](https://www.youtube.com/watch?v=t-sh_Q3WbQc)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [October 9, 2024, 4:11pm UTC](https://community.glideapps.com/t/help-with-displaying-api-result-arrays/76952/3 "2024-10-09T16:11:05Z")

</div>

I really need an updated version of this video.

---

<div class="post-metadata">

**Author:** ![ghostmaga](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@ghostmaga](https://community.glideapps.com/u/ghostmaga)\
**Post date:** [October 9, 2024, 4:28pm UTC](https://community.glideapps.com/t/help-with-displaying-api-result-arrays/76952/4 "2024-10-09T16:28:36Z")

</div>

Thank you. Unfortunately that’s not what I was looking for. I have tried several methods including the miracle method (which is awesome btw) but tbh did not find anything really handy for my task.

Custom AI component can actually accept array and display, for example cards for each its elements, but I think it won’t be stable and may cause some issues later.

---

<div class="post-metadata">

**Author:** ![ghostmaga](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@ghostmaga](https://community.glideapps.com/u/ghostmaga)\
**Post date:** [October 9, 2024, 10:24pm UTC](https://community.glideapps.com/t/help-with-displaying-api-result-arrays/76952/5 "2024-10-09T22:24:49Z")

</div>

That method helped me a lot. Thank you @Robert_Petitto [https://www.youtube.com/watch?v=7F4e9JatqeM&ab\_channel=RobertPetitto](https://www.youtube.com/watch?v=7F4e9JatqeM&ab_channel=RobertPetitto)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [October 16, 2024, 10:25pm UTC](https://community.glideapps.com/t/help-with-displaying-api-result-arrays/76952/6 "2024-10-16T22:25:35Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
