# Array Parameter in GET request

**URL:** <https://forum.bubble.io/t/array-parameter-in-get-request/249292>\
**Category:** APIs\
**Created:** [February 28, 2023, 12:38pm UTC](https://forum.bubble.io/t/array-parameter-in-get-request/249292 "2023-02-28T12:38:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thinus1](https://avatars.discourse-cdn.com/v4/letter/t/cab0a1/32.png) [@thinus1](https://forum.bubble.io/u/thinus1)\
**Post date:** [February 28, 2023, 12:38pm UTC](https://forum.bubble.io/t/array-parameter-in-get-request/249292/1 "2023-02-28T12:38:51Z")

</div>

I need to send a GET request for weather data. One of the parameters is a list. If I send a single value in that parameter, all is well. As soon as I add another value, I get an error message. (The full link works 100% in postman. I presume Bubble works a bit different)  
Any advice? Thanks!

Link: [https://api.open-meteo.com/v1/forecast?latitude=-26.71&longitude=27.11&timezone=Africa/Cairo&daily=temperature\_2m\_max,temperature\_2m\_min,precipitation\_sum,et0\_fao\_evapotranspiration&start\_date=2023-02-26&end\_date=2023-02-26](https://api.open-meteo.com/v1/forecast?latitude=-26.71&longitude=27.11&timezone=Africa/Cairo&daily=temperature_2m_max,temperature_2m_min,precipitation_sum,et0_fao_evapotranspiration&start_date=2023-02-26&end_date=2023-02-26)

curl: curl --location ‘[https://api.open-meteo.com/v1/forecast?latitude=-26.71&longitude=27.11&timezone=Africa%2FCairo&daily=temperature\_2m\_max%2Ctemperature\_2m\_min%2Cprecipitation\_sum%2Cet0\_fao\_evapotranspiration&start\_date=2023-02-26&end\_date=2023-02-26](https://api.open-meteo.com/v1/forecast?latitude=-26.71&longitude=27.11&timezone=Africa%2FCairo&daily=temperature_2m_max%2Ctemperature_2m_min%2Cprecipitation_sum%2Cet0_fao_evapotranspiration&start_date=2023-02-26&end_date=2023-02-26)’

Error with multiple value with the “daily” parameter:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/e/4e8b130b05326b5cacd7581c800b5ef2fbb25a16.png)

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

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [February 28, 2023, 1:14pm UTC](https://forum.bubble.io/t/array-parameter-in-get-request/249292/2 "2023-02-28T13:14:19Z")

</div>

The format of the URL needs to be like this:

`https://api.open-meteo.com/v1/forecast?latitude=-26.71&longitude=27.11&timezone=Africa/Cairo&daily=temperature_2m_max&daily=temperature_2m_min&daily=precipitation_sum&daily=et0_fao_evapotranspiration&start_date=2023-02-26&end_date=2023-02-26`

To do that dynamically in a GET request you’ll need to make the entire ‘daily’ parameter a single dynamic value and then construct the string correctly inside the dynamic value (both in the API connector and in the datasource on you pages).

---

<div class="post-metadata">

**Author:** ![thinus1](https://avatars.discourse-cdn.com/v4/letter/t/cab0a1/32.png) [@thinus1](https://forum.bubble.io/u/thinus1)\
**Post date:** [February 28, 2023, 1:30pm UTC](https://forum.bubble.io/t/array-parameter-in-get-request/249292/3 "2023-02-28T13:30:56Z")

</div>

> [@adamhholmes](#):
>
> [https://api.open-meteo.com/v1/forecast?latitude=-26.71&longitude=27.11&timezone=Africa/Cairo&daily=temperature\_2m\_max&daily=temperature\_2m\_min&daily=precipitation\_sum&daily=et0\_fao\_evapotranspiration&start\_date=2023-02-26&end\_date=2023-02-26](https://api.open-meteo.com/v1/forecast?latitude=-26.71&longitude=27.11&timezone=Africa/Cairo&daily=temperature_2m_max&daily=temperature_2m_min&daily=precipitation_sum&daily=et0_fao_evapotranspiration&start_date=2023-02-26&end_date=2023-02-26)

Clever man! Works like a bomb. Thanks!
