# Typecast API Result Object to Array

**URL:** <https://forum.bubble.io/t/typecast-api-result-object-to-array/332004>\
**Category:** APIs\
**Created:** [July 22, 2024, 9:16am UTC](https://forum.bubble.io/t/typecast-api-result-object-to-array/332004 "2024-07-22T09:16:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![muhammadtayyab.bscsf2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/muhammadtayyab.bscsf2/32/226986_2.png) [@muhammadtayyab.bscsf2](https://forum.bubble.io/u/muhammadtayyab.bscsf2)\
**Post date:** [July 22, 2024, 9:16am UTC](https://forum.bubble.io/t/typecast-api-result-object-to-array/332004/1 "2024-07-22T09:16:57Z")

</div>

Hello, [Bubble.io](http://Bubble.io) community! 🌐

I’m currently working on a [Bubble.io](http://Bubble.io) project and facing a challenge with handling API data. My API returns data in the form of an object, but Bubble’s Repeating Group element requires data in a list format.

Here’s a brief overview of my issue:

- **API Response:** Returns an object with user details (e.g., id, name, age, email).
- **Goal:** Display this data in a Repeating Group.
- **Problem:** Bubble requires the data to be in a list format to use in a Repeating Group.

I’ve tried creating custom states and using workflows to transform the object into a list, but I’m still struggling to get it right. Has anyone encountered this issue before? How did you manage to convert the object to a list and update the Repeating Group dynamically?

Any insights, examples, or step-by-step guides would be immensely helpful! 🙏

Thank you in advance for your assistance! 🌟

---

<div class="post-metadata">

**Author:** ![geesonofgee](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/geesonofgee/32/222432_2.png) [@geesonofgee](https://forum.bubble.io/u/geesonofgee)\
**Post date:** [July 22, 2024, 10:43am UTC](https://forum.bubble.io/t/typecast-api-result-object-to-array/332004/2 "2024-07-22T10:43:50Z")

</div>

Can you share a screenshot of how you call and display the API in the RG?
