GET /forecast

DEPRECATED. This resource is deprecated. New use of this resource should be avoided. Existing use of this resource should be transitioned away from.

Description

Returns a collection of weather forecast data for a latitude/longitude point.

Requires a subscription plan with the “read_forecast” and “access_points” capabilities to access this resource. This resource also has geospatial capabilities (such as “geo_north_america”) that must be available to the subscription plan for corresponding queries.

Resource URL

https://api.weathersource.com/v1/:api_key/forecast.format

Resource URL Replacement Parts

{{api_key}}

Your API Key. If you do not have an API key, you may sign up for a free developer account 30-day trial.

{{format}}

The desired response format. Allowed formats are:

  • .json

Parameters


Warning: Undefined array key "private" in /var/www/html/wp-content/themes/developer.weathersource.com/single-resource.php on line 108

Warning: Undefined array key "private" in /var/www/html/wp-content/themes/developer.weathersource.com/single-resource.php on line 110

Warning: Undefined array key "private" in /var/www/html/wp-content/themes/developer.weathersource.com/single-resource.php on line 108

Warning: Undefined array key "private" in /var/www/html/wp-content/themes/developer.weathersource.com/single-resource.php on line 110

Warning: Undefined array key "private" in /var/www/html/wp-content/themes/developer.weathersource.com/single-resource.php on line 108

Warning: Undefined array key "private" in /var/www/html/wp-content/themes/developer.weathersource.com/single-resource.php on line 110

Warning: Undefined array key "private" in /var/www/html/wp-content/themes/developer.weathersource.com/single-resource.php on line 108

Warning: Undefined array key "private" in /var/www/html/wp-content/themes/developer.weathersource.com/single-resource.php on line 110
latitude_eq required

A response condition that identifies the latitude/longitude location from which to return weather forecast.

Allowed Values: decimal latitude value between 0 and 90

Example Value: 32.7153

longitude_eq required

A response condition that identifies the latitude/longitude location from which to return weather forecast.

Allowed Values: decimal longitude value between -180 (West) and 180 (East)

Example Value: 117.1564

period optional

Identifies the class of weather forecast data.

Allowed Values: hour, day

Default Value: day

fields optional

Set response to a subset of fields within each element. Available field names:

The Hour class of weather data fields (period parameter is set to hour):

The Day class of weather data fields (period parameter is set to day):

Allowed Values: Comma separated list of field names

Default Value: lat_lon,timestamp

Example Request

GET https://api.weathersource.com/v1/{api_key}/forecast.json?latitude_eq=32.7153&longitude_eq=117.1564&period=hour&timestamp_eq=2004-02-12T08:00&fields=temp

[insert response here]