Unit groups and measurement units

The Weather API includes a unitGroup parameter that allows you to specify the units that will be used when returning weather data. This article describes the units within each group. The API uses four group ids to indicate the units that will be used – us, metric, uk and base.

us – United States

Weather VariableMeasurement Unit
Temperature, Heat Index & Wind ChillDegrees Fahrenheit
PrecipitationInches
SnowInches
Wind & Wind GustMiles Per Hour
VisibilityMiles
PressureMillibars
Solar RadiationW/m2
Solar EnergyMJ/m2

metric – Metric

Weather VariableMeasurement Unit
Temperature, Heat Index & Wind ChillDegrees Celcius
PrecipitationMillimeters
SnowCentimeters
Wind & Wind GustKilometers Per Hour
VisibilityKilometers
PressureMillibars (Hectopascals)
Solar Radiation W/m2
Solar Energy MJ/m2

uk – United Kingdom

Weather VariableMeasurement Unit
Temperature, Heat Index & Wind ChillDegrees Celcius
PrecipitationMillimeters
SnowCentimeters
Wind & Wind GustMiles Per Hour
VisibilityMiles
PressureMillibars
Solar Radiation W/m2
Solar Energy MJ/m2

base – Base or scientific units

Weather VariableMeasurement Unit
Temperature, Heat Index & Wind ChillKelvin
PrecipitationMillimeters
SnowCentimeters
Wind & Wind GustMeters Per Second
Visibility Kilometers
PressureMillibars
Solar Radiation W/m2
Solar Energy MJ/m2

Scroll to Top
This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.