# Creating a list of names from Api

**URL:** <https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905>\
**Category:** APIs\
**Created:** [November 29, 2019, 6:58am UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905 "2019-11-29T06:58:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukejamison0](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lukejamison0](https://forum.bubble.io/u/lukejamison0)\
**Post date:** [November 29, 2019, 6:58am UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/1 "2019-11-29T06:58:05Z")

</div>

I’m trying to create a list of names that I get from an API data source and put that in a repeating group but it will not show the text. Any suggestions on how I can get the list of names to show up?

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [November 29, 2019, 2:47pm UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/2 "2019-11-29T14:47:54Z")

</div>

do you have a text element in the R.G. set to show the current cell’s name?

---

<div class="post-metadata">

**Author:** ![lukejamison0](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lukejamison0](https://forum.bubble.io/u/lukejamison0)\
**Post date:** [November 30, 2019, 1:58am UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/3 "2019-11-30T01:58:23Z")

</div>

@boston85719 yes I do but it shows the whole list of names in each cell of the list instead of one name in a cell. So for example, if I have 10 names in a list it shows all 10 names in a text cell 10 times. Any suggestions on this?

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [November 30, 2019, 6:53am UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/4 "2019-11-30T06:53:29Z")

</div>

not really sure what would be causing this except that your api call is probably requesting a list and not parsing the data to be individual items, but I don’t really have experience with API calls.

---

<div class="post-metadata">

**Author:** ![louisadekoya](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/louisadekoya/32/217422_2.png) [@louisadekoya](https://forum.bubble.io/u/louisadekoya)\
**Post date:** [November 30, 2019, 1:40pm UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/5 "2019-11-30T13:40:31Z")

</div>

Difficult to say without seeing screenshots, at least, of what you’re trying to do, but just in case you haven’t tried this already, try setting the source of your repeating group to the list returned by the API call then for your text element, set to current cell’s [whatever is returned]'s name. Or set your RG’s content type to text and its source to the list of names being returned and then the text to current cell’s text.

---

<div class="post-metadata">

**Author:** ![le.john.v](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/le.john.v/32/44852_2.png) [@le.john.v](https://forum.bubble.io/u/le.john.v)\
**Post date:** [November 30, 2019, 4:14pm UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/6 "2019-11-30T16:14:55Z")

</div>

@lukejamison0 you only want one of the 10 to show? But show once or 10 times?

---

<div class="post-metadata">

**Author:** ![lukejamison0](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lukejamison0](https://forum.bubble.io/u/lukejamison0)\
**Post date:** [December 1, 2019, 3:17am UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/7 "2019-12-01T03:17:59Z")

</div>

@louisadekoya This Worked! Any idea on how to get different items in the text cell? like a Phone number or an address? Because I set the repeating groups data to the names how would I get other things?

---

<div class="post-metadata">

**Author:** ![louisadekoya](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/louisadekoya/32/217422_2.png) [@louisadekoya](https://forum.bubble.io/u/louisadekoya)\
**Post date:** [December 1, 2019, 4:53am UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/8 "2019-12-01T04:53:38Z")

</div>

@lukejamison0, in that case, try my first suggestion. I don’t know what data exactly your api call is returning but whatever the list is (let’s say it is a list of ‘persons’), make that the source of your Repeating Group (RG) then each of your text fields can refer to the current cell’s person’s name, phone number etc.

Below is an example where I’m getting data from the Random User Generator API and then referencing each user’s name. I could do the same for profile picture etc.

![RG](https://us1.discourse-cdn.com/bubble/original/3X/9/1/913e16ac71e2b18f05c2407ae0f12cedcfdb01f7.png)

![Text%20in%20RG%20cell](https://us1.discourse-cdn.com/bubble/original/3X/a/5/a5b09f3f53c9678b55a37073afbef4b0849729b3.png)

---

<div class="post-metadata">

**Author:** ![lukejamison0](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lukejamison0](https://forum.bubble.io/u/lukejamison0)\
**Post date:** [December 1, 2019, 8:11am UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/9 "2019-12-01T08:11:41Z")

</div>

@louisadekoya so this worked Perfectly! Thanks. Now, do you have a suggestions on how to get a  
map marker to show the same information on hover?

---

<div class="post-metadata">

**Author:** ![louisadekoya](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/louisadekoya/32/217422_2.png) [@louisadekoya](https://forum.bubble.io/u/louisadekoya)\
**Post date:** [December 1, 2019, 10:06am UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/10 "2019-12-01T10:06:15Z")

</div>

I’m afraid I haven’t done any work with maps on Bubble. If the map element/marker is in a RG and if markers have tooltips or some other text-on-hover mechanism, then it should just be like any text element and you should be able to use the exact same method to show the information. Otherwise, it’s probably worth creating another topic for it - assuming the question hasn’t already been answered in another post.

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [December 1, 2019, 3:31pm UTC](https://forum.bubble.io/t/creating-a-list-of-names-from-api/72905/11 "2019-12-01T15:31:29Z")

</div>

> [@lukejamison0](#):
>
> how to get a  
> map marker to show the same information on hover?

Use the R.G. that gets the information you have been working on as the datasource for your map…then set up the map ( explained in various threads on the forum ) to show what information you want on hover.
