# API - To Return Nested Replies

**URL:** <https://forum.bubble.io/t/api-to-return-nested-replies/7281>\
**Category:** APIs\
**Created:** [October 25, 2016, 5:52am UTC](https://forum.bubble.io/t/api-to-return-nested-replies/7281 "2016-10-25T05:52:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AliFarahat](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alifarahat/32/189604_2.png) [@AliFarahat](https://forum.bubble.io/u/AliFarahat)\
**Post date:** [October 25, 2016, 5:52am UTC](https://forum.bubble.io/t/api-to-return-nested-replies/7281/1 "2016-10-25T05:52:35Z")

</div>

Alright so i have spent the last couple of months collecting a huge list of vehicle makes, models, variants, versions & Images with technical specifications for an API service/web that i am building. The challenge now is enabling Bubble to return details of nested data (Lists that exist under a row of data)

 ![](https://us1.discourse-cdn.com/bubble/original/2X/8/88dcf16cffc74c09229ae730b2c8337f9b3c16b2.png)

Using the above image as an example; I would like bubble to return details of the “LIST\_Models” and not just Unique IDs of the Models like in the image below!

 ![](https://us1.discourse-cdn.com/bubble/original/2X/2/2c20153a9db36060c8b41c8c175bfb59c851bec3.png)

This is what i want to receive (Notice the models are nested with details)

```
{
   "makes":[
      {
         "id":200002038,
         "name":"Acura",
         "niceName":"acura",
         "models":[
            {
               "id":"Acura_ILX",
               "name":"ILX",
               "niceName":"ilx",
             }
         ]

```

Does anyone have any suggestions or ideas

---

<div class="post-metadata">

**Author:** ![anon39705632](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@anon39705632](https://forum.bubble.io/u/anon39705632)\
**Post date:** [October 25, 2016, 8:22am UTC](https://forum.bubble.io/t/api-to-return-nested-replies/7281/2 "2016-10-25T08:22:43Z")

</div>

I have also been thinking about nesting and treeviews etc.

One approach I have in my head, but yet to try to implement is a Re-usable element with a repeating list, that contains the reusable element in the cell. and then pass a parent/child info in through states etc.

As I say, I haven’t tried yet, but I’m thinking that might be one approach…

---

<div class="post-metadata">

**Author:** ![AliFarahat](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alifarahat/32/189604_2.png) [@AliFarahat](https://forum.bubble.io/u/AliFarahat)\
**Post date:** [October 25, 2016, 8:24am UTC](https://forum.bubble.io/t/api-to-return-nested-replies/7281/3 "2016-10-25T08:24:54Z")

</div>

For an API End Point?

---

<div class="post-metadata">

**Author:** ![anon39705632](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@anon39705632](https://forum.bubble.io/u/anon39705632)\
**Post date:** [October 25, 2016, 9:37am UTC](https://forum.bubble.io/t/api-to-return-nested-replies/7281/4 "2016-10-25T09:37:43Z")

</div>

That’s a whole different area that I haven’t even ventured down that dark path yet! 😱

---

<div class="post-metadata">

**Author:** ![anon39705632](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@anon39705632](https://forum.bubble.io/u/anon39705632)\
**Post date:** [January 21, 2017, 12:57pm UTC](https://forum.bubble.io/t/api-to-return-nested-replies/7281/5 "2017-01-21T12:57:15Z")

</div>

Well I found out today that Reusable elements and not permitted to contain themselves…so that scuppered that plan I was trying to implement a hierarchical view of categories.
