BETA. Beta resources may undergo minor revisions and may not have the benefit of complete documentation.
Description
Returns a regional spatial file of weather history for the specified datatype. The json format will return metadata for the associated spatial files.
Requires a subscription plan with the “read_history” and “access_regions” capabilities to access this resource.
This resource is not available to free 30-day developer plans. However, postal code history is available. Please email sales@weathersource.com or call (844) 813-2617 if you need access to this resource.
Resource URL
https://api.weathersource.com/v1/{{api_key}}/regions/{{region}}/history/{{datatype}}.{{format}}
Resource URL Replacement Parts
Parameters
timestamp_eq optional |
REQUIRED if {{format}} is shp.zip. If {{format}} is json, either timestamp_eq or timestamp_between must be provided. Timestamps must be in ISO 8601 format. If the period is day, the timestamp is assumed to be a local day. If period is hour the timestamp is assumed to be UTC, unless a UTC offset is provided (as part of the ISO 8601 format). Allowed Values: ISO 8601 timestamp Example Value: 2007-02-12T08:00-07:00 or 2007-02-12 |
---|---|
timestamp_between optional |
NOT ALLOWED if {{format}} is shp.zip. If {{format}} is json, either timestamp_eq or timestamp_between must be provided. Timestamps must be in ISO 8601 format. If the period is day, the timestamps are assumed to be local day. If period is hour the timestamps are assumed to be UTC, unless a UTC offset is provided (as part of the ISO 8601 format). The total date range must not exceed 1 year in length. If a longer date range is required, multiple requests must be made. Allowed Values: Two comma separated ISO 8601 timestamps Example Value: 2007-02-12T08:00-07:00,2007-02-12T23:00-07:00 |
period optional |
Identifies the class of weather observations (i.e. weather for a day or for an hour). Allowed Values: hour, day Default Value: day |
oceans optional |
A flag to indicate whether coverage of oceans should be turned off ("0") or turned on ("1") in the returned contour map. Allowed Values: 0,1 Default Value: 0 |
filetype optional |
REQUIRED if {{format}} is json. NOTE: the json format returns metadata for the target contour files, not the files themselves. Allowed Values: shp.zip |
Resource Information
API Versions | v1 |
---|---|
Rate Limited? | Yes |
Requires Authentication? | Yes |
Response Formats | JSON JSONP SHP.zip |
HTTP Method | GET |
Related Documentation
Example Request
GET https://api.weathersource.com/v1/{{api_key}}/regions/global/history/precip.json?timestamp_eq=2018-02-01T00:00:00+00:00&filetype=shp.zip
[{"region":"global","resource":"history","datatype":"precip","filetype":"shp.zip","timestamp":"2018-02-01","period":"day","oceans":0,"lastModified":"2018-02-02T20:52:14+00:00","bytes":5242360,"md5":"7f48be8807bed2843cfc47036df395a2","url":"https:\/\/onpoint-spatial-files.weathersource.com\/history\/shp\/global\/land\/day\/precip\/2018\/02\/01\/global_land_history_precip_day_20180201.shp.zip?Expires=1518203919&Signature=Rhr2Fn0EnoBhp~OwUzZXtVmA4-vqO30XcKWsY2Q7lsVd8RKWI-HdaESJWnjLNzh1jdBz6-wHuoTZ9TUthehhrAZhw8C7Uld1UEENqkmffKarSw57yB2D11Qo9XIoJL2pdYFgeJtguQ~3avgWtfYXTp-dnTxhiK3Rfdi12c7ZIWvZcr5BBHZhwqMCW8nvv0Uuivx41s2AdQEqSHFiG-FyYTYsXSpZOyEx2P3uDrAyA9AIRjnMRLKUqV9VcfYb7AWXwH6iXx2kbVPu42uKUoEXcexppMuRUwOD9afsDoMbzdMme8bX8axgOt5RW0nWaYvyIQnMl0ToMBg5UX4-2Ulsiw__&Key-Pair-Id=APKAJTO4SYEB4NTNUODQ","urlExpires":"2018-02-09T19:18:39+00:00","apiRequest":"https:\/\/api.weathersource.com\/v1\/{{api_key}}\/regions\/global\/history\/precip.shp.zip?period=day&oceans=0\u00d7tamp_eq=2018-02-01"}]