API access for Weather data

Hi there!

Thanks for the great work! I am trying to download weather data for sites to accompany the raw resource profiles. Is it possible to get some information on the API arguments/url to which I can mae the request?

Many thanks,
Craig

You’re right, we need to add this to the documentation. You need to ask for each MERRA2 weather variable name you want with a separate request parameter. See this example that requests T2M and PRECTOTLAND:

https://www.renewables.ninja/api/data/weather?local_time=true&format=csv&header=true&lat=50&lon=11&date_from=2016-01-01&date_to=2016-12-31&dataset=merra2&var_t2m=true&var_prectotland=true

The rest of the parameters are as described in the documentation for the wind and PV API endpoints.

The complete list is of weather variable selection parameters is:

  • var_t2m
  • var_prectotland
  • var_precsnoland
  • var_snodp
  • var_rhoa
  • var_swgdn
  • var_swtdn
  • var_cldtot

Hope this helps!

Hi,

Is the parameter

  • var_snodp
    still valid? There is no snow depth any more in the weather parameter list, but there is snow mass available. Has the parameter changes?