You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

Weather Forecast For City

weather/forecast-city@1.0.1
1 provider

Get Weather Forecast For City

Get weather forecast for a city in chosen units

Input
City
Units
Result
AverageTemperature
Date
MaxTemperature
MinTemperature

1.Choose a provider

2.Use GetWeatherForecastInCity with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

city
Name of the city including state and country, e.g.: "Prague, Czech Republic" or "New York City, NY, USA"
units
Units used to represent temperature - Fahrenheit, Celsius, Kelvin; Celsius by default

Example

Result (list of objects)

averageTemperature
Daily average Temperature in specified units
date
Date of the weather forecast
maxTemperature
Daily maximal temperature in specified units
minTemperature
Datily minimal temperature in specified units

Example

Implementation details

Provider
mock
Use case
GetWeatherForecastInCity
Author
@superface
Source
Verified