Create a powerful custom weather API endpoint using this ready-to-use n8n workflow. Accepts city parameters via webhook query and returns formatted temperature data efficiently.
Download this n8n workflow template and start using it instantly.
This specialized n8n workflow acts as a lightweight microservice designed to retrieve real-time weather information from OpenWeatherMap for any requested city. By leveraging the power of the core n8n node types, this automation converts a simple webhook request into a concise, formatted text response containing current temperature details.
The value of this n8n workflow lies in its simplicity and customization. It abstracts away the complexity of the third-party API, providing a clean JSON response suitable for integration into command-line tools or minimalistic web applications where quick, readable data is crucial. This efficient n8n node setup demonstrates best practices for dynamic parameter passing and output generation within a hosted n8n environment.
This automation functions as a self-contained API endpoint activated by an external HTTP call. The logical flow is executed seamlessly across four distinct n8n node steps:
Webhook GET n8n trigger node, which is configured to listen for incoming requests on the /weather path. This n8n trigger acts as the public interface for the microservice.Set City n8n node processes the incoming webhook request. It uses an expression to extract the desired city name from the URL query parameters (query.parameter). If no city is specified, the n8n node defaults the lookup value to 'berlin,de', ensuring the n8n workflow always has valid input.OpenWeatherMap n8n node receives the validated city name and makes the necessary external API call to fetch the current weather data, including temperature and perceived temperature.Create Response n8n node transforms the complex JSON output from the previous step into a simple, readable string using an expression. This string summarizes the temperature and 'feels like' data for the requested city. The overall n8n workflow then returns this formatted string as the final response to the initial webhook call.OpenWeatherMap n8n node with valid API credentials. Obtain an API key from OpenWeatherMap and create a corresponding credential entry in n8n.YOURN8NURL/webhook/weather?parameter=london,uk).Set City and Create Response n8n nodes.This n8n workflow utilizes fundamental n8n node types for efficient execution:
Webhook GET (n8n trigger):
Function: Serves as the primary n8n trigger and endpoint for the custom API.
Key Configuration: Path is set to weather. Response mode is set to Last Node, ensuring the final formatted data is returned.
Set City (n8n node):
Function: Extracts and sanitizes the user-provided city parameter from the webhook query data. If the parameter is missing, it injects a default value.
Key Configuration: Uses the expression ={{ $json["query"]["parameter"] || 'berlin,de' }} to handle null/missing input gracefully.
OpenWeatherMap (n8n node):
Function: Queries the OpenWeatherMap API using the city name passed via the previous n8n node.
Key Configuration: City Name is dynamically set using an expression referencing the output of the Set City node: ={{ $json["city"] }}.
Create Response (n8n node):
Function: Formats the complex weather data into a clean, single-line text output.
Key Configuration: The value field uses expressions to pull specific fields (main.temp, main.feels_like, name) into a descriptive sentence, providing the final output for this n8n workflow.
Deploy this automated n8n workflow to monitor OpenWeather data for severe conditions (heat, snow, wind) and instantly send personalized SMS alerts using the Twilio n8n node.

Enforce a standardized default error workflow across all your n8n workflows using this powerful operational n8n template. Essential for maintaining reliability and oversight.

This advanced n8n workflow acts as the robust backend for a Voiceflow AI agent, handling customer lookup via Google Sheets, Zendesk ticketing, and Google Calendar scheduling. Utilize these complex n8n templates for enterprise support.

Deploy this powerful n8n workflow to scrape web content, enhance articles using OpenAI, watermark images, and automatically publish professional posts to your Telegram channel.

Use this powerful n8n workflow template to crawl websites, convert HTML content to clean Markdown, and automatically store the structured data in Google Sheets, ideal for building RAG or AI training datasets.

Use this advanced n8n workflow to automate multi-source web scraping (Brave, Firecrawl, Apify) via a Gemini agent and instantly format structured data into a comprehensive Google Sheets report. A powerful n8n template for data analysis.








































