Radar API — Overview

The Radar API allows you to show weather anywhere on the globe.

For example:

http://45.79.100.129/widget/YOUR_API_KEY?lat=25.031&lng=105.852&overlay=temp&metricTemp=c&zoom=5

That mean to show: latitude=25.031, longitude=105.852, layer=Temperature, Temperature unit=°C, layer_unit=°C, zoom=5

http://45.79.100.129/widget/YOUR_API_KEY?lat=25.031&lng=105.852&overlay=rain&metricTemp=c&metricRain=mm&zoom=5

That mean to show: latitude=25.031, longitude=105.852, layer=Rain, Temperature unit=°C, Rain unit=mm, zoom=5

Request Parameters

  • key required
    Your Radars secret key. (Your secret key must be kept secret; in particular, do not embed it in JavaScript source code that you transmit to clients)
  • latitude required
    The latitude of a location (in decimal degrees). Positive is north, negative is south.
  • longitude required
    The longitude of a location (in decimal degrees). Positive is east, negative is west.
  • overlay required
    All layers are: temp, rain, snow, wind, pressure, humidity or clouds
  • metricTemp optional
    All layers are: c or f
  • metricRain optional
    All layers are: mm or in
  • metricSnow optional
    All layers are: cm or in
  • metricWind optional
    All layers are: kmh, kt, bft, ms or mh
  • metricPressure optional
    All layers are: hpa, inhg or mmhg
  • metricHumidity optional
    The only value is: percent
  • metricClouds optional
    All layers are: mm or in
  • zoom optional
    Min zoom is 3, max zoom is 11