GFS Forecasts - Request

https://sonicweather.com/API/gribAPI.php?lat=[latitude]&long=[longitude]&collection[X]&key=[SonicWeather key]

Request Parameters

latitude - required
The latitude of the location for the GFS forecasts
longitude - required
The longitude of the location for the GFS forecasts
collection - required
The collection group for the GFS forecasts. Use H for hourly and D for daily.
key - required
Your SonicWeather secret key. Your secret key must be kept secret. Do not embed it in JavaScript source code that you transmit to clients.

Sample Request - Hourly

https://sonicweather.com/API/gribAPI.php?lat=39.73&long=-105.13&collection=H&key=abcdefghijklmnop

(
    [sonic] => Array
        (
            [key] => e6b387c7e30999f79e2e283b0671bf18
        )

    [weather] => Array
        (
            [hourly] => Array
                (
                    [0] => Array
                        (
                            [dateTime] => 2019-04-27 07:00:00 MDT
                            [temperature] => 51.13
                            [feely] => 51
                            [weather] => clear
                            [windSpeed] => 3.38
                            [slp] => 785
                            [rh] => 58
                            [dp] => 32.56
                            [windDir] => ENE
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [1] => Array
                        (
                            [dateTime] => 2019-04-27 08:00:00 MDT
                            [temperature] => 57.65
                            [feely] => 57
                            [weather] => clear
                            [windSpeed] => 5.13
                            [slp] => 785
                            [rh] => 52
                            [dp] => 32.61
                            [windDir] => E
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [2] => Array
                        (
                            [dateTime] => 2019-04-27 09:00:00 MDT
                            [temperature] => 65.97
                            [feely] => 64
                            [weather] => clear
                            [windSpeed] => 5.5
                            [slp] => 785
                            [rh] => 43
                            [dp] => 31.69
                            [windDir] => E
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [3] => Array
                        (
                            [dateTime] => 2019-04-27 10:00:00 MDT
                            [temperature] => 74.06
                            [feely] => 73
                            [weather] => clear
                            [windSpeed] => 5.88
                            [slp] => 784
                            [rh] => 34
                            [dp] => 30.14
                            [windDir] => E
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [4] => Array
                        (
                            [dateTime] => 2019-04-27 11:00:00 MDT
                            [temperature] => 80.81
                            [feely] => 80
                            [weather] => clear
                            [windSpeed] => 5.13
                            [slp] => 784
                            [rh] => 27
                            [dp] => 28.18
                            [windDir] => ENE
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [5] => Array
                        (
                            [dateTime] => 2019-04-27 12:00:00 MDT
                            [temperature] => 81.49
                            [feely] => 80
                            [weather] => clear
                            [windSpeed] => 5
                            [slp] => 783
                            [rh] => 23
                            [dp] => 26.53
                            [windDir] => NE
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [6] => Array
                        (
                            [dateTime] => 2019-04-27 13:00:00 MDT
                            [temperature] => 83.52
                            [feely] => 83
                            [weather] => clear
                            [windSpeed] => 4.63
                            [slp] => 783
                            [rh] => 20
                            [dp] => 25.6
                            [windDir] => W
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [7] => Array
                        (
                            [dateTime] => 2019-04-27 14:00:00 MDT
                            [temperature] => 79.25
                            [feely] => 78
                            [weather] => clear
                            [windSpeed] => 6.38
                            [slp] => 782
                            [rh] => 19
                            [dp] => 23.68
                            [windDir] => WSW
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [8] => Array
                        (
                            [dateTime] => 2019-04-27 15:00:00 MDT
                            [temperature] => 74.98
                            [feely] => 73
                            [weather] => clear
                            [windSpeed] => 8.5
                            [slp] => 781
                            [rh] => 17
                            [dp] => 21.21
                            [windDir] => WSW
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [9] => Array
                        (
                            [dateTime] => 2019-04-27 16:00:00 MDT
                            [temperature] => 72.06
                            [feely] => 70
                            [weather] => clear
                            [windSpeed] => 9.11
                            [slp] => 781
                            [rh] => 17
                            [dp] => 20.19
                            [windDir] => WNW
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [10] => Array
                        (
                            [dateTime] => 2019-04-27 17:00:00 MDT
                            [temperature] => 66.89
                            [feely] => 64
                            [weather] => partly cloudy
                            [windSpeed] => 10.87
                            [slp] => 781
                            [rh] => 19
                            [dp] => 21.11
                            [windDir] => WNW
                            [qpf] => 0
                            [snowfall] => 0
                        )

                    [11] => Array
                        (
                            [dateTime] => 2019-04-27 18:00:00 MDT
                            [temperature] => 66.89
                            [feely] => 64
                            [weather] => partly cloudy
                            [windSpeed] => 10.87
                            [slp] => 781
                            [rh] => 19
                            [dp] => 21.11
                            [windDir] => WNW
                            [qpf] => 0
                            [snowfall] => 0
                        )

                )

        )

    [location] => Array
        (
            [lat] => 39.73
            [long] => -105.13
            [place] => Tabor Street,,Lakewood,,Colorado,USA 
            [tz] => America/Denver
        )

    [run] => 00
)
									

Response Format

key - Your secret key
weather - An array of the weather forecast for the next 12 hours. This array includes the date/time, temperature, feels like temperature, weather conditions, windspeed, surface level pressure, relative humidity, dew point temperature, wind direction, precipitation amount, and snowfall amount.
location - An array of data containing the lat/long, geolocation of the lat/long, and timezone.
run - The GFS data run. Options inlude 00Z or 12Z.


Sample Request - Daily

http://sonicweather.com/API/gribAPI.php?lat=39.73&long=-105.13&collection=D&key=abcdefghijklmnop

    [sonic] => Array
        (
            [key] => e6b387c7e30999f79e2e283b0671bf18
        )

    [weather] => Array
        (
            [six] => Array
                (
                    [0] => Array
                        (
                            [prettyDate] => Sat Apr 27
                            [displayDate] => Saturday
                            [dateTime] => 2019-04-27 00:00:00 MDT
                            [period] => 6
                            [temperature] => 46.2
                            [maxT] => 63.51
                            [minT] => 46.2
                            [slp] => 782
                            [rh] => 60
                            [dp] => 35.22
                            [weather] => light rain
                            [windSpeed] => 3
                            [windDir] => WSW
                            [qpf] => 0
                            [snowfall] => 0
                        )
				}
		}	
            [daily] => Array
                (
                    [0] => Array
                        (
                            [prettyDate] => Sat Apr 27
                            [displayDate] => Overnight
                            [tempMin] => 39
                            [weather] => light rain
                            [icon] => light rain
                            [windSpeed] => 3
                            [windDir] => WSW
                            [cumQPF] => 0.02
                            [cumSnow] => 0
                        )
				}
		}
   [location] => Array
        (
            [lat] => 39.73
            [long] => -105.13
            [place] => Tabor Street,,Lakewood,,Colorado,USA 
            [tz] => America/Denver
        )

    [run] => 00
)
								

Response Format

key - Your secret key
weather (6 hour) - An array of the weather forecast in six hour periods for the next 144 hours. This array includes the a pretty date format, date/time, period, temperature, 6-hour max temperature, 6-hour min temperature, surface level pressure, relative humidity, dew point temperature, weather conditions, wind speed, wind direction, precipitation amount, and snowfall amount. The full output is not shown for brevity.
weather (12 hour) - An array or the weather forecast (day/night) for the next 144 hours. This array includes a pretty date format, display date, max or min temperature, weather conditions, a suggested icon, wind speed, wind direction, cumulative precipiation amounts, and cumulative snowfall.
location - An array of data containing the lat/long, geolocation of the lat/long, and timezone.
run - The GFS data run. Options inlude 00Z or 12Z.