The Frogcast API provides a simple, standard way to integrate your forecast data into your system. The API respects REST semantics, uses JSON to encode objects, and is based on the HTTPS standard.
Frogcast uses simple token-based authentication. Your API token has the same privileges as your user account, so be sure to keep it secret! You can authenticate with this token in the HTTP authorization token header.
All API requests must be authenticated and made via HTTPS.
Your personal token is
Here's a example of what should set in your header:
Authorization: token
Retrieving forecasts with the API is very straight forward.
In this section, you'll get ready-to-go examples in Python, JS and CURL.
To retrieve your latest forecast, you must make a GET request to the following URL:
https://api.frogcast.com/api/v1/forecast/
Here is an example in Python:
import requests
parameters = {'horizon':2880}
url = 'https://api.frogcast.com/api/v1/forecast/'
requests.get(url=url,params=parameters,headers=headers).json()
Here is an example in JS:
var myInit = { method: 'GET',
headers: myHeaders };
var myRequest = new Request(https://api.frogcast.com/api/v1/forecast/,myInit)
fetch(myRequest,myInit)
.then(response => response.json())
Here is an example in CURL:
Weather fields
Category
Short name
Long name
dESCRIPTION
All weather variables are associated with percentiles (or quantiles) ranging from 10 to 100.
So you can fetch all the quantiles of any variable.
Example for temperature : t2m,t2m_p10,t2m_p20,t2m_p30,t2m_p40,t2m_p50,t2m_p60,t2m_p70,t2m_p80,t2m_p90
URL
https://api.frogcast.com/api/v1/forecast/
Headers
Authorization token:
xxxx-xxxx-xxxx-xxxx
Reveal
Copy
Copied
QUERY PARAMETERS
latitude:
longitude:
fields:
data_format:
precision:
horizon:
time_step:
lAST Results
Copy
Copied