Solcast

FREE
By solcast
Updated 4 months ago
Data
6.1/10
Popularity Score
638ms
Latency
70%
Success Rate

Solcast API Documentation

The Solcast API is a solar radiation and solar energy forecasting data service that is designed to be easy to use and to integrate with other systems that are looking for live solar radiation and solar PV energy output data.

View API Details
GETSimple Radiation Forecast
GETSimple PV Power Forecast
GETSimple Radiation Forecast

The simple radiation request returns detailed solar radiation data for the next week based only on your latitude and longitude.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
latitudeNUMBER
REQUIREDLatitude
longitudeNUMBER
REQUIREDLongitude
api_keyQUERY
REQUIRED
Optional Parameters
formatSTRING
OPTIONALResponse format: json, csv, xml
Code Snippet
unirest.get("https://solcast.p.rapidapi.com/radiation/forecasts?format=json&latitude=<required>&longitude=<required>")
.header("X-RapidAPI-Host", "solcast.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://solcast.p.rapidapi.com/radiation/forecasts
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://solcast.p.rapidapi.com/radiation/forecasts?format=json&latitude=<required>&longitude=<required>")
.header("X-RapidAPI-Host", "solcast.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication