Definition of API terms
ACode: An alphanumeric license key issued by Weatherbug.
CityType: citytype="0" – city in the US.
citytype="1" – city outside of the US.
CityCode: 5 digits designation for non-US cities.
Latitude: Location of a place north or south of the equator. Minimum value: -90. Maximum value: 90.
Longitude: Location of a place east or west of the prime meridian. Minimum value -180. Maximum value: 180.
SearchString: Parameter used to search for locations. Only US zipcodes and citynames can be searched. SearchString is not case-sensitive and accepts blank spaces.
UnitType: unittype=0 – US customary units (miles, °F, etc...) [default].
unittype=1 – Metric system units (kms, °C, etc...).
ZipCode: 5 digits designation for US cities only.
Reference
1.Search Locations
2.Station List
3.Live Weather
4.Compact Live Weather
5.Forecast
6.Cam List
7.Alerts
1. Search Locations
Description:
Returns the location based on the (US and international) cityname or US zipcode input.
a) By ZipCode:
Call Format: http://<apicode>.api.wxbug.net/getLocationsXML.aspx?ACode=<apicode>&SearchString=<zipcode>
Example: http://A1111111111.api.wxbug.net/getLocationsXML.aspx?ACode=A11111111111&SearchString=64732
Input Parameters:
  • ACode (required)
  • SearchString (required)
  • Definition of API terms
    b) By Location names (soundex):
    The soundex system allows searching a city based on phonetics rather than spelling.
    Call Format: http://<apicode>.api.wxbug.net/getLocationsXML.aspx?ACode=<apicode>&SearchString=<cityname>
    Example: http://A1111111111.api.wxbug.net/getLocationsXML.aspx?ACode=A11111111111&SearchString=San Francisco
    Input Parameters:
  • ACode (required)
  • SearchString (required)
  • Definition of API terms
    2. Search Stations
    Description:
    For a given zipcode/citycode or (latitude,longitude) this call returns the weather stations in the area.
    a) By ZipCode:
    Call Format: http://<apicode>.api.wxbug.net/getStationsXML.aspx?ACode=<apicode>&zipCode=<zipcode>&unittype=
    Example: http://A1111111111.api.wxbug.net/getStationsXML.aspx?ACode=A11111111111&zipCode=64732
    Input Parameters:
  • ACode (required)
  • ZipCode (required)
  • Unittype (optional)
  • Definition of API terms | Find zipcode by cityname
    b) By CityCode:
    Call Format: http://<apicode>.api.wxbug.net/getStationsXML.aspx?ACode=<apicode>&cityCode=<citycode>&unittype=
    Example: http://A1111111111.api.wxbug.net/getStationsXML.aspx?ACode=A11111111111cityCode=14390
    Input Parameters:
  • ACode (required)
  • CityCode (required)
  • Unittype (optional)
  • Definition of API terms | Find citycode by cityname
    c) By Lat Long:
    Call Format: http://<apicode>.api.wxbug.net/getStationsXML.aspx?ACode=<apicode>&lat=<latitude>&long=<longitude>&unittype=
    Example: http://A1111111111.api.wxbug.net/getStationsXML.aspx?ACode=A11111111111&lat=55.73&long=-14.36
    Input Parameters:
  • ACode (required)
  • Lat (required) [min:-90 max:90] (with 2 digits right to the decimal point)
  • Long (required) [min:-180 max:180] (with 2 digits right to the decimal point)
  • Unittype (optional)
  • Definition of API terms
    3. Live Weather
    Description:
    Returns detailed live weather conditions for the chosen location.
    a) By StationId:
    The StationId Call Format allows searching weather conditions for multiple stations (up to 5). Separate the station ids with a comma; no blank space.
    Call Format: http://<apicode>.api.wxbug.net/getLiveWeatherRSS.aspx?ACode=<apicode>&stationid=<stationid>&unittype=
    Single Station Example: http://A1111111111.api.wxbug.net/getLiveWeatherRSS.aspx?ACode=A11111111111&stationid=awshq
    Multiple Stations Example: http://A1111111111.api.wxbug.net/getLiveWeatherRSS.aspx?ACode=A11111111111&stationid=awshq,vomm
    Input Parameters:
  • ACode (required)
  • Stationid (required)
  • Unittype (optional)
  • Definition of API terms | Find stationid by zipcode | Find stationid by citycode
    b) By ZipCode:
    Call Format: http://<apicode>.api.wxbug.net/getLiveWeatherRSS.aspx?ACode=<apicode>&zipCode=<zipcode>&unittype=
    Example: http://A1111111111.api.wxbug.net/getLiveWeatherRSS.aspx?ACode=A11111111111&zipCode=64732
    Input Parameters:
  • ACode (required)
  • ZipCode (required)
  • Unittype (optional)
  • Definition of API terms | Find zipcode by cityname
    c) By CityCode:
    Call Format: http://<apicode>.api.wxbug.net/getLiveWeatherRSS.aspx?ACode=<apicode>&cityCode=<citycode>&unittype=
    Example: http://A1111111111.api.wxbug.net/getLiveWeatherRSS.aspx?ACode=A1111111111&cityCode=14390
    Input Parameters:
  • ACode (required)
  • CityCode (required)
  • Unittype (optional)
  • Definition of API terms | Find citycode by cityname
    d) By Lat Long:
    Call Format: http://<apicode>.api.wxbug.net/getLiveWeatherRSS.aspx?ACode=<apicode>&lat=<latitude>&long=<longitude>&unittype=
    Example: http://A1111111111.api.wxbug.net/getLiveWeatherRSS.aspx?ACode=A1111111111&lat=55.73&long=-14.36
    Input Parameters:
  • ACode (required)
  • Lat (required) [min:-90 max:90] (with 2 digits right to the decimal point)
  • Long (required) [min:-180 max:180] (with 2 digits right to the decimal point)
  • Unittype (optional)
  • Definition of API terms
    4. Compact Live Weather
    Description:
    Returns concise live weather conditions for the chosen location.
    a) By StationId:
    The StationId Call Format allows searching weather conditions for multiple stations (up to 5). Separate the station ids with a comma; no blank space.
    Call Format: http://<apicode>.api.wxbug.net/getLiveCompactWeatherRSS.aspx?ACode=<apicode>&stationid=<stationid>&unittype=
    Single Station Example: http://A1111111111.api.wxbug.net/getLiveCompactWeatherRSS?ACode=A11111111111&stationid=awshq
    Multiple Stations Example: http://A1111111111.api.wxbug.net/getLiveCompactWeatherRSS?ACode=A11111111111&stationid=awshq,vomm
    Input Parameters:
  • ACode (required)
  • Stationid (required)
  • Unittype (optional)
  • Definition of API terms | Find stationid by zipcode | Find stationid by citycode
    b) By ZipCode:
    Call Format: http://<apicode>.api.wxbug.net/getLiveCompactWeatherRSS.aspx?ACode=<apicode>&zipCode=<zipcode>&unittype=
    Example: http://A1111111111.api.wxbug.net/getLiveCompactWeatherRSS.aspx?ACode=A11111111111&zipCode=64732
    Input Parameters:
  • ACode (required)
  • ZipCode (required)
  • Unittype (optional)
  • Definition of API terms | Find zipcode by cityname
    c) By CityCode:
    Call Format: http://<apicode>.api.wxbug.net/getLiveCompactWeatherRSS.aspx?ACode=<apicode>&cityCode=<citycode>&unittype=
    Example: http://A1111111111.api.wxbug.net/getLiveCompactWeatherRSS.aspx?ACode=A1111111111&cityCode=14390
    Input Parameters:
  • ACode (required)
  • CityCode (required)
  • Unittype (optional)
  • Definition of API terms | Find citycode by cityname
    d) By Lat Long:
    Call Format: http://<apicode>.api.wxbug.net/getLiveCompactWeatherRSS.aspx?ACode=<apicode>&lat=<latitude>&long=<longitude>&unittype=
    Example: http://A1111111111.api.wxbug.net/getLiveCompactWeatherRSS.aspx?ACode=A1111111111&lat=55.73&long=-14.36
    Input Parameters:
  • ACode (required)
  • Lat (required) [min:-90 max:90] (with 2 digits right to the decimal point)
  • Long (required) [min:-180 max:180] (with 2 digits right to the decimal point)
  • Unittype (optional)
  • Definition of API terms
    5. Forecast
    A) Description:
    Returns the 7-day forecast for a zipcode/citycode or (latitude,longitude) input.
    a) By ZipCode:
    Call Format: http://<apicode>.api.wxbug.net/getForecastRSS.aspx?ACode=<apicode>&zipCode=<zipcode>&unittype=
    Example: http://A1111111111.api.wxbug.net/getForecastRSS.aspx?ACode=A11111111111&zipCode=64732
    Input Parameters:
  • ACode (required)
  • ZipCode (required)
  • Unittype (optional)
  • Definition of API terms | Find zipcode by cityname
    b) By CityCode:
    Call Format: http://<apicode>.api.wxbug.net/getForecastRSS.aspx?ACode=<apicode>&cityCode=<citycode>&unittype=
    Example: http://A1111111111.api.wxbug.net/getForecastRSS.aspx?ACode=A11111111111cityCode=14390
    Input Parameters:
  • ACode (required)
  • CityCode (required)
  • Unittype (optional)
  • Definition of API terms | Find citycode by cityname
    c) By Lat Long:
    Call Format: http://<apicode>.api.wxbug.net/getForecastRSS.aspx?ACode=<apicode>&lat=<latitude>&long=<longitude>&unittype=
    Example: http://A1111111111.api.wxbug.net/getForecastRSS.aspx?ACode=A11111111111&lat=55.73&long=-14.36
    Input Parameters:
  • ACode (required)
  • Lat (required) [min:-90 max:90] (with 2 digits right to the decimal point)
  • Long (required) [min:-180 max:180] (with 2 digits right to the decimal point)
  • Unittype (optional)
  • Definition of API terms
    6. Cam List
    Description:
    For a given zipcode or (latitude,longitude), this call returns a list of available weather cameras.
    a) By ZipCode:
    Call Format: http://<apicode>.api.wxbug.net/getCamerasXML.aspx?ACode=<apicode>&zipCode=<zipcode>&unittype=
    Example: http://A1111111111.api.wxbug.net/getCamerasXML.aspx?ACode=A11111111111&zipCode=64732
    Input Parameters:
  • ACode (required)
  • ZipCode (required)
  • Unittype (optional)
  • Definition of API terms | Find zipcode by cityname
    b) By Lat Long:
    Call Format: http://<apicode>.api.wxbug.net/getCamerasXML.aspx?ACode=<apicode>&lat=<latitude>&long=<longitude>&unittype=
    Example: http://A1111111111.api.wxbug.net/getCamerasXML.aspx?ACode=A11111111111&lat=55.73&long=-14.36
    Input Parameters:
  • ACode (required)
  • Lat (required) [US Only] (with 2 digits right to the decimal point)
  • Long (required) [US Only] (with 2 digits right to the decimal point)
  • Unittype (optional)
  • Definition of API terms
    7. Alerts
    Description:
    Returns weather alert information for a given zipcode or (latitude,longitude).
    a) By ZipCode:
    Call Format: http://<apicode>.api.wxbug.net/getAlertsRSS.aspx?ACode=<apicode>&zipCode=<zipcode>&unittype=
    Example: http://A1111111111.api.wxbug.net/getAlertsRSS.aspx?ACode=A11111111111&zipCode=64732
    Input Parameters:
  • ACode (required)
  • ZipCode (required)
  • Unittype (optional)
  • Definition of API terms | Find zipcode by cityname
    b) Lat Long:
    Call Format: http://<apicode>.api.wxbug.net/getAlertsRSS.aspx?ACode=<apicode>&lat=<latitude>&long=<longitude>&unittype=
    Example: http://A1111111111.api.wxbug.net/getAlertsRSS.aspx?ACode=A11111111111&lat=55.73&long=-14.36
    Input Parameters:
  • ACode (required)
  • Lat (required) [US Only] (with 2 digits right to the decimal point)
  • Long (required) [US Only] (with 2 digits right to the decimal point)
  • Unittype (optional)
  • Definition of API terms