K3 Documents

Connect to Weather.gov API

Updated on

This document outlines how to connect to the Weather.gov API in order to retrieve weather data for specific weather zones. You will find a list of cURL examples that can be reused with minimal changes required.

Connect to the Weather API

Weather.gov provides updated weather data based on specific zones. This section will outline how to retrieve data from this API.

No key or token is required to call this API.

curl -G -X GET "https://api.weather.gov/zones/forecast/NYZ072/observations" \
  --data-urlencode "start=\${payload.body.jsonpath('\$.features[*].properties.timestamp').max()|'2022-03-17T05:00:48+00:00'}"
Click to copy
Previous Article Connect to Exchangeratesapi.io Exchange Rate API
Next Article Connect to Salesforce API