Skip to content

Open‐Meteo Forecast API URL

Tsunderarislime edited this page Sep 6, 2023 · 3 revisions

Getting the Open-Meteo Forecast API URL

Once you are there, you will need to enter your location and select a bunch of parameters.

Hourly Weather Variables

  • ☑️ Temperature (2m)
  • ☑️ Weathercode

Additional Variables

  • ☑️ Is Day or Night

Location + Hourly On the top right, you can search for your location and it will automatically fill out the Latitude and Longitude boxes.

Daily Weather Variables

  • ☑️ Weathercode
  • ☑️ Maximum Temperature (2m)
  • ☑️ Minimum Temperature (2m)

Daily

Settings

  • Current weather with temperature, windspeed and weather code
  • Timezone: Automatically detect time zone

Settings

Preview and API URL

API URL

COPY THE API URL!!! This is what the bot needs to operate.

As an example, here is a valid URL that will request weather data for the city of Tokyo:

https://api.open-meteo.com/v1/forecast?latitude=35.6895&longitude=139.6917&hourly=temperature_2m,weathercode,is_day&daily=weathercode,temperature_2m_max,temperature_2m_min&current_weather=true&timezone=auto

When opened in your web browser, it should look kind of like this:

Request in browser