> For the complete documentation index, see [llms.txt](https://docs.ixhello.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ixhello.com/ixhc2/general/tutorials/configure-open-meteo-rest-api.md).

# Configure Open Meteo REST API

This page demonstrates how to configure a Rest API connection with [**Open Meteo**](https://open-meteo.com/en/docs) and configure two methods to retrieve the **Current Weather** and the **Daily Weather** based on the **longitude** and **latitude** of a location.

This REST API can be reused across flows by configuring it in the [API Call](https://docs.ixhello.com/ixhc2/flows/flow-editor/api-call.md) node. This REST API is a prerequisite for the [Weather Flow with Open Meteo API](https://docs.ixhello.com/ixhc2/general/tutorials/weather-flow-with-open-meteo-api.md) tutorial.&#x20;

## Step 1: Configure the REST API settings

1. Sign in to **ixHello Customer v2**.
2. In the left navigation menu, go to REST API
3. Select **Create Connection** to configure the REST API settings.

<table><thead><tr><th width="272">Setting</th><th>Value</th></tr></thead><tbody><tr><td>Name</td><td>Open Meteo</td></tr><tr><td>Description</td><td>Connect to open meteo without authorization</td></tr></tbody></table>

{% hint style="info" %}
Customer v2 doesn't support editing the Name and Description of the REST API after creation. Ensure they are correct before saving.
{% endhint %}

4. Click **Save** to create the REST API and continue to the base URL and authorization type.

<table><thead><tr><th width="272">Setting</th><th>Value</th></tr></thead><tbody><tr><td>Base URL</td><td><a href="https://open-meteo.com/">https://api.open-meteo.com</a></td></tr><tr><td>Authorization Type</td><td>No Authorization</td></tr></tbody></table>

<figure><img src="https://4187494610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFe4cpY1jy0FJ4kgC7wSx%2Fuploads%2Fvr5IR5KxCqO39i3dPEJZ%2Fopen%20meteo-step1.5.png?alt=media&amp;token=aba0bcf1-5a51-4f45-b4c4-80e65e9db1de" alt="Set up of the base URL and authorization method"><figcaption></figcaption></figure>

5. Click **Save** to update the settings and click **Back** to return to the Rest API configuration page.

<figure><img src="https://4187494610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFe4cpY1jy0FJ4kgC7wSx%2Fuploads%2F3IIYyJhduNdCfJKH9GjL%2Fopen-meteoend-of-step-1.png?alt=media&amp;token=bc45897a-33a9-4aa0-8898-4d2f455d7e15" alt="configured rest api without methods "><figcaption></figcaption></figure>

## Step 2: Configure get Current Weather Method  <a href="#step-1-define-widget-details" id="step-1-define-widget-details"></a>

Open meteo's [Current Weather](https://open-meteo.com/en/docs#current_weather) returns real time information based on the Longitude and Latitude of a location. To allow the reuse of this method, the values **longitude** and **latitude** are placed between double curly braces. This means that the API call node is required to provide these values when invoking the method.&#x20;

1. Click **Create Method** to configure get Current Weather method with the following settings.

<table><thead><tr><th width="220">Setting</th><th>Value</th></tr></thead><tbody><tr><td>Name</td><td>Current weather</td></tr><tr><td>Description</td><td>Get Current weather based on the longitude and latitude that's provided by the user</td></tr><tr><td>Request Type</td><td>GET</td></tr><tr><td>Method Path</td><td>/v1/forecast</td></tr><tr><td>Query String</td><td>latitude=<strong>{{latitude}}</strong>&#x26;longitude=<strong>{{longitude}}</strong>&#x26;current=temperature_2m,relative_humidity_2m,apparent_temperature,is_day,precipitation,rain,showers,snowfall,weather_code,cloud_cover,pressure_msl,surface_pressure,wind_speed_10m,wind_direction_10m,wind_gusts_10m&#x26;timezone=Europe%2FBerlin&#x26;forecast_days=1</td></tr><tr><td>Request Header (Json)</td><td><em>empty</em></td></tr><tr><td>Result Type</td><td>Entry</td></tr><tr><td>Result Path</td><td>&#x3C;space></td></tr><tr><td>Record Path</td><td>&#x3C;space></td></tr><tr><td>Record Template</td><td>&#x3C;space></td></tr><tr><td>Record Limit</td><td>&#x3C;space></td></tr><tr><td>Valid Result Template</td><td>&#x3C;space></td></tr><tr><td>Empty Result Template</td><td>No results</td></tr></tbody></table>

{% hint style="info" %}
Enter a \<space> in a required setting to use the default value of that setting.
{% endhint %}

<figure><img src="https://4187494610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFe4cpY1jy0FJ4kgC7wSx%2Fuploads%2F1NtitPyhpQefnx8Dg8ph%2Fend-of-step-2.png?alt=media&amp;token=bd11537b-4eda-42d7-925c-923013e61a50" alt=""><figcaption></figcaption></figure>

2. Click **Save** to create the Method and click **Back** to return to the Rest API configuration page.

<figure><img src="https://4187494610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFe4cpY1jy0FJ4kgC7wSx%2Fuploads%2FngJqnguUUz7DTSCL4ag7%2Fend-of-step-2-end.png?alt=media&amp;token=c3aea52a-030d-4cd3-9c5c-1e522ccdfe85" alt=""><figcaption></figcaption></figure>

## Step 3: Configure get Daily Weather Method  <a href="#step-1-define-widget-details" id="step-1-define-widget-details"></a>

Open meteo's [Daily Weather](https://open-meteo.com/en/docs#daily_weather_variables) returns daily weather forecast for a **number of days** based on the Longitude and Latitude of a location. To allow the reuse of this method, the values of **forecast\_days** **longitude** and **latitude** are placed between double curly braces. This means that the API call node is required to provide these values when invoking the method.&#x20;

2. Click **Create Method** to configure get Daily Weather method with the following settings.

<table><thead><tr><th width="220">Fields</th><th>Description</th></tr></thead><tbody><tr><td>Name</td><td>Daily</td></tr><tr><td>Description</td><td>Get Daily weather based on the needed number of days and the longitude and latitude that's provided by the user.</td></tr><tr><td>Request Type</td><td>GET</td></tr><tr><td>Method Path</td><td>/v1/forecast</td></tr><tr><td>Query String</td><td>latitude=<strong>{{latitude}}</strong>&#x26;longitude=<strong>{{longitude}}</strong>&#x26;daily=weather_code,temperature_2m_max,sunrise,sunset,daylight_duration,sunshine_duration,uv_index_max,uv_index_clear_sky_max,temperature_2m_min,apparent_temperature_max,apparent_temperature_min,rain_sum,showers_sum,snowfall_sum,precipitation_sum,precipitation_hours,precipitation_probability_max,wind_speed_10m_max,wind_gusts_10m_max,wind_direction_10m_dominant,shortwave_radiation_sum,et0_fao_evapotranspiration&#x26;timezone=Europe%2FBerlin&#x26;forecast_days=<strong>{{days}}</strong></td></tr><tr><td>Request Header (Json)</td><td><em>empty</em></td></tr><tr><td>Result Type</td><td>Entry</td></tr><tr><td>Result Path</td><td>&#x3C;space></td></tr><tr><td>Record Path</td><td>&#x3C;space></td></tr><tr><td>Record Template</td><td>&#x3C;space></td></tr><tr><td>Record Limit</td><td>&#x3C;space></td></tr><tr><td>Valid Result Template</td><td>&#x3C;space></td></tr><tr><td>Empty Result Template</td><td>No results</td></tr></tbody></table>

{% hint style="info" %}
Enter a \<space> in a required setting to use the default value of that setting.
{% endhint %}

<figure><img src="https://4187494610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFe4cpY1jy0FJ4kgC7wSx%2Fuploads%2F0iOayFroiBDPdQ5UxgTm%2Fopen-meteo-daily-weather.png?alt=media&amp;token=1b74ecae-1d38-4836-9bbb-8357d4eec2fb" alt=""><figcaption></figcaption></figure>

2. Click **Save** to create the Method and click **Back** to return to the Rest API configuration page.

<figure><img src="https://4187494610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFe4cpY1jy0FJ4kgC7wSx%2Fuploads%2FwNe0g05ABbUrtXym3SX2%2Fopen%20meteo%20end%20of%20step%203.png?alt=media&amp;token=112b5882-1cec-4fbf-abc7-4715d8d46b60" alt=""><figcaption></figcaption></figure>

## Next steps

The Open Meteo REST API with the two methods can now be configured in an API call node.

Learn more about API call nodes here, or continue with the Weather Flow tutorial!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ixhello.com/ixhc2/general/tutorials/configure-open-meteo-rest-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
