curl --location 'https://us-prod.notte.cc/functions/0227965d-c930-486f-bc3f-1ad942198194/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "0227965d-c930-486f-bc3f-1ad942198194",
"variables": {
"latitude": 38.9072,
"longitude": -77.0369,
"max_periods": 14
}
}'
{
"periods": [
{
"icon": "<string>",
"name": "<string>",
"number": 0,
"endTime": "<string>",
"isDaytime": true,
"startTime": "<string>",
"windSpeed": "<string>",
"temperature": 0,
"shortForecast": "<string>",
"windDirection": "<string>",
"temperatureUnit": "<string>",
"detailedForecast": "<string>",
"probabilityOfPrecipitation": {
"value": 0,
"unitCode": "<string>"
}
}
],
"latitude": 0,
"location": {
"type": "<string>",
"geometry": {
"type": "<string>",
"coordinates": [
0
]
},
"properties": {
"city": "<string>",
"state": "<string>",
"bearing": {
"value": 0,
"unitCode": "<string>"
},
"distance": {
"value": 0,
"unitCode": "<string>"
}
}
},
"longitude": 0,
"period_count": 0,
"resolved_grid": {
"cwa": "<string>",
"gridX": 0,
"gridY": 0,
"gridId": "<string>",
"timeZone": "<string>",
"radarStation": "<string>"
},
"forecast_metadata": {
"units": "<string>",
"geometry": {
"type": "<string>",
"coordinates": [
[
[
0
]
]
]
},
"elevation": {
"value": 0,
"unitCode": "<string>"
},
"updateTime": "<string>",
"validTimes": "<string>",
"generatedAt": "<string>",
"forecastGenerator": "<string>"
}
}