{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"e13f85e5-33ee-44f1-9417-2eb6a6c7baa7","name":"TerraClim API","description":"Example queries for the TerraClim API.\n\n## Authorization\n\nThe authorization token should be in the format: `Token: xxxyyy123`\n\n## Query limits\n\nQueries are rate limited per user:\n\n| Limit type |  |\n| --- | --- |\n| Burst queries | 5 per second |\n| Sustained queries | 50 per day |\n| Polygon queries | \\- 5 polygons per query  <br>\\- Polygon must be less than 1 square kilometer |\n| Point queries | 10 points per query |\n| Number of records returned (dates) | \\- daily: 15 days  <br>\\- monthly: 12 months (equivalent of 366 days)  <br>\\- yearly: 5 years (equivalent of 1330 days) |\n\nEach user is allocated to a 'subscription' package. Please contact the TerraClim team to enqurie about getting an API subscription.\n\n## Querying raster layers\n\nThe TerraClim layers can be queried by providing a point (`/api/point/`) or polygon (`/api/polygon/`) WKT string in **WGS84** format. Multiple points/polygons should be separated by ; (semicolon). When querying `/api/polygon/` you must include \"aggregationMethod\" in the \"options\". This specifies how you want to aggregate the pixels within the polygon. Available options are min, mean, max.\n\nData type info:\n\n| **Variable** | **subDataType (e.g. gddType)** | **Date range & format** | **Extent** |\n| --- | --- | --- | --- |\n| temperature | min, max, mean | Daily  <br>(2016-01-01 to 2023-04-01) | TerraClim extent |\n| gdd | apples, citrus, grapes | Yearly  <br>(2016 to 2021) | TerraClim extent |\n| chill | ucu, ucui, dpcu, dpcui | Yearly  <br>(2016 to 2022) | TerraClim extent |\n| frost | \\- | Monthly  <br>(2016-01 to 2023-03) | TerraClim extent |\n| rain (long term layers) | annual_mean, monthly_median | \\- annual_mean: single long term layer (not dated)  <br>\\- monthly_median: 12 long term layers (1 to 12 representing each month) | SA extent |\n| windspeed | 20, 50, 100, 150 | Single layer  <br>(not dated) | SA extent |\n\n## Querying nearest weather station\n\nThe data from the nearest station to a given point(s) can be queried. This is done using the `api/nearest-station` endpoint. Points must be in WGS84 format, and if multiple are provided must be separated by ; (semicolon).\n\n### Data types\n\nThe `dataTypes` parameter in the body must be a list of items. **Even if querying a single item.**\n\nAvailable data types differ per time scale, please refer to the table below:\n\n| **Time scale** | **Available dataTypes** |\n| --- | --- |\n| hourly | temperature_mean, temperature_min, temperature_max,  <br>rain, solar_radation, sunshine_duration,  <br>wind_direction, leaf_wetness, wind_speed_max,  <br>wind_speed, evaporation, dew_point,  <br>humidity, humidity_min, humidity_max |\n| daily | temperature_mean, temperature_min, temperature_max,  <br>temperature_median, rain_sum, solar_radiation_sum,  <br>sunshine_duration_sum, wind_direction_mean, wind_direction_median,  <br>humidity_mean, humidity_min, humidity_max,  <br>humidity_median, leaf_wetness_mean, leaf_wetness_median,  <br>leaf_wetnes_min, leaf_wetness_max, wind_speed_mean,  <br>wind_speed_min, wind_speed_max, evaporation_sum,  <br>dew_point_mean, dew_point_median, dew_point_min,  <br>dew_point_max, rain_mean, rain_min, rain_max,  <br>solar_rad_std_sum, solar_rad_std_mean, solar_rad_std_min,  <br>solar_rad_std_max, et0 |\n| monthly | temperature_mean, temperature_min, temperature_max,  <br>temperature_median, rain_sum, solar_radiation_sum,  <br>sunshine_duration_sum, wind_direction_mean, wind_direction_median,  <br>humidity_mean, humidity_min, humidity_max,  <br>humidity_median, leaf_wetness_mean, leaf_wetness_median,  <br>leaf_wetnes_min, leaf_wetness_max, wind_speed_mean,  <br>wind_speed_min, wind_speed_max, evaporation_sum,  <br>dew_point_mean, dew_point_median, dew_point_min,  <br>dew_point_max, rain_mean, rain_min, rain_max,  <br>solar_rad_std |\n\n### Time scales\n\nWhen querying the nearest statation data, a `timeScale` parameter must be provided in the options dictionary of the body. Available options are one of the follwing: \"hourly\", \"daily\", \"monthly\".\n\nThe date formats for querying the different time scales are as follows:\n\n| **Time scale** | **Date format** |\n| --- | --- |\n| hourly | yyyy-mm-ddThh:mm:ss  <br>where the mm:ss should always be 00:00 as you are only querying hourly data.  <br>Hours are from 00:00:00 (midnight) - 23:00:00 |\n| daily | yyyy-mm-dd |\n| monthly | yyyy-mm |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"25949156","team":4712637,"collectionId":"e13f85e5-33ee-44f1-9417-2eb6a6c7baa7","publishedId":"2s9YJhxfLS","public":true,"publicUrl":"https://documenter-api.postman.tech/view/25949156/2s9YJhxfLS","privateUrl":"https://go.postman.co/documentation/25949156-e13f85e5-33ee-44f1-9417-2eb6a6c7baa7","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.10.1","publishDate":"2023-10-10T12:43:15.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/1fbccb6cd1dcc2a178eeef41c0dd34cda7b0412e7c188a8aeeda75d65617b893","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2s9YJhxfLS"}