# API Connector Not Returning An Array

**URL:** <https://forum.bubble.io/t/api-connector-not-returning-an-array/230786>\
**Category:** APIs\
**Created:** [November 1, 2022, 5:58pm UTC](https://forum.bubble.io/t/api-connector-not-returning-an-array/230786 "2022-11-01T17:58:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drew5061](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@Drew5061](https://forum.bubble.io/u/Drew5061)\
**Post date:** [November 1, 2022, 5:58pm UTC](https://forum.bubble.io/t/api-connector-not-returning-an-array/230786/1 "2022-11-01T17:58:31Z")

</div>

I am using several API’s I created on [Sparklite](https://sparklite.io/), but only one of them is not returning the correct values. This is the only Sparklite API where I return an array, so I’m thinking that may be the issue?

When I add the body to API Connector with static inputs, it returns the array correctly, but once I make the inputs dynamic, the array doesn’t return at all.

**The body with static inputs:**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/8/a8f3287f82d1589f78390b6bcf57463a645312d0.png)

**The array returning correctly during initializing**

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

**Then, here is the body with the dynamic inputs that doesn’t return the array**

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

Any ideas why the version with variables isn’t returning the array?!

---

<div class="post-metadata">

**Author:** ![williamtisdale](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/williamtisdale/32/113723_2.png) [@williamtisdale](https://forum.bubble.io/u/williamtisdale)\
**Post date:** [November 1, 2022, 6:27pm UTC](https://forum.bubble.io/t/api-connector-not-returning-an-array/230786/2 "2022-11-01T18:27:07Z")

</div>

Inside the `<>` you need to add the name of the key. You have `<0.8>` but instead should add `<AnnualInterestRate>` then in the Value field provided below you can add 0.8.

---

<div class="post-metadata">

**Author:** ![Drew5061](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@Drew5061](https://forum.bubble.io/u/Drew5061)\
**Post date:** [November 1, 2022, 6:33pm UTC](https://forum.bubble.io/t/api-connector-not-returning-an-array/230786/3 "2022-11-01T18:33:42Z")

</div>

thanks @williamtisdale. Do you mean like this? I am now getting an error. (2 screenshots below)

**Body:**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/8/28bb6aeb7d0bc4c391dc11b5cb42ee892c2ccf46.png)

**Error Msg:**  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/8/3825ced70e0c90cb7111c708679447ebff1d008f.png)

---

<div class="post-metadata">

**Author:** ![williamtisdale](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/williamtisdale/32/113723_2.png) [@williamtisdale](https://forum.bubble.io/u/williamtisdale)\
**Post date:** [November 1, 2022, 6:35pm UTC](https://forum.bubble.io/t/api-connector-not-returning-an-array/230786/4 "2022-11-01T18:35:12Z")

</div>

add quotes around the date like this:  
`"<LoanStartDate>"`

If you are sending a number or boolean then the quotes should be omitted but any String will need the quotes. That is just how the API Connector works.

---

<div class="post-metadata">

**Author:** ![Drew5061](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@Drew5061](https://forum.bubble.io/u/Drew5061)\
**Post date:** [November 1, 2022, 6:37pm UTC](https://forum.bubble.io/t/api-connector-not-returning-an-array/230786/5 "2022-11-01T18:37:14Z")

</div>

Thank you, it worked! I’ve been pulling my hair out over that one
