/bubble-tutorials

How to build a weather forecast app in Bubble

Learn how to build a weather forecast app in Bubble with step‑by‑step guidance, API setup tips, and beginner‑friendly no‑code workflows.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.

Book a Free Consultation

How to build a weather forecast app in Bubble

You build a weather forecast app in Bubble by creating a page where the user enters a city, calling a real weather API (like OpenWeather) through the API Connector, and displaying the returned data (temperature, conditions, icon) in text elements or repeating groups. The core is: set up the API call, expose it as “Get data from an external API”, then bind the returned fields on the page.

 

What You Need

 

  • A Bubble page with an Input for the city name
  • The API Connector plugin installed
  • An API key from a real weather service (OpenWeather is simple)

 

Set Up the Weather API

 

In the API Connector, create a call. This is a real OpenWeather example for current weather:

{
  "method": "GET",
  "url": "https://api.openweathermap.org/data/2.5/weather?q=<city>&units=metric&appid=YOUR_API_KEY"
}

In Bubble, define as a shared header/parameter using “q” as a key. Mark the call as Use as: Data so you can reference it directly on the page.

 

Build the UI

 

  • Add an Input City.
  • Add a Button “Get forecast”.
  • Add Text elements for temperature, humidity, description.

 

Run the API and Display Data

 

Create a workflow on the button:

  • Action: Display data in group. The data source of the group: Get data from an external API → your weather call with q = Input City’s value.

Inside the group, set text elements to fields from the API response, like Current Weather’s main.temp or weather:first item.description.

 

Optional: Show Forecast

 

  • Use OpenWeather’s forecast endpoint (5‑day/3‑hour).
  • Return a list of items and display them in a Repeating Group.

 

{
  "method": "GET",
  "url": "https://api.openweathermap.org/data/2.5/forecast?q=<city>&units=metric&appid=YOUR_API_KEY"
}

 

This gives you a fully working weather app: user enters city, Bubble calls the API, and the page displays live weather info.

Explore More Valuable No-Code Resources

How to integrate Bubble.io with Git?

Learn how to seamlessly integrate Bubble.io with Git through our comprehensive step-by-step guide. Perfect for beginners and professionals.

Explore

How to integrate Bubble.io with Reddit Ads?

Learn how to seamlessly integrate Bubble.io with Reddit Ads using our easy step-by-step guide. Boost your ad management today!

Explore

How to integrate Bubble.io with AWS S3?

Explore our step-by-step guide on integrating Bubble.io with AWS S3, making your app development process more efficient and secure.

Explore

How to integrate Bubble.io with Lucidchart?

Follow our step-by-step guide to seamlessly integrate Bubble.io with Lucidchart, enhancing your workflow & productivity.

Explore

How to integrate Bubble.io with Kentico?

Learn how to seamlessly integrate Bubble.io and Kentico with our comprehensive, easy to follow step-by-step guide.

Explore

How to integrate Bubble.io with Box?

Discover easy-to-follow steps for integrating Bubble.io with Box. Boost your workflow and secure your files seamlessly today.

Explore

Stuck in Bubble.io? We’re here to help!

Fix broken workflows | Optimize logic | Boost performance | Scale with confidence

4.9
Clutch rating 🌟
600+
Happy partners
17+
Countries served
190+
Team members

By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.

Cookie preferences