Skip to main content
GET 

/solar/point

Solar Point

Use the solar endpoint to retrieve solar data for a specific location. The stormglass API provides global coverage.

Query Parameters​

These are the available query parameters for this endpoint. Required parameters are pre-checked and must be included. Tick any additional parameters to update the sample request and code snippets.

lat- Latitude in decimal degrees
[-90, 90]
lng- Longitude in decimal degrees
[-180, 180]
start- Timestamp in UTC for the first hour to include in the forecast
end- Timestamp in UTC for the last hour to include in the forecast
params- - Comma separated list of the parameters you want to retrieve

Available Parameters​

Browse response parameters by category or search for a parameter name

Solar

uvIndex- Ultraviolet (UV) radiation at ground or sea level (W/m²).
[0, ∞](W/m²)
solarDownwardRadiationFlux- Solar downward radiation flux at ground or sea level (W/m²) - (ECMWF source parameter name: "Surface net short-wave solar radiation").
[0, 1500](W/m²)
surfaceNetShortwaveRadiationDownwardsFlux- Surface net short-wave radiation downwards flux at ground or sea level (W/m²) - (ECMWF source parameter name: "Surface net short-wave solar radiation downwards").
[0, 1500](W/m²)

Response Meta​

As part of the response, you will find an object called meta with the following content.

lat
[-90, 90]
lng
[-180, 180]
start- The first timestamp of data returned
end- The last timestamp of data returned
dailyQuota- The number of requests you are allowed to make each day
requestCount- The number of successful requests you have made since 00:00 UTC

Responses​

Solar data response

Reference (plain text)

GET /solar/point — Solar Point

Parameters​

NameInTypeRequiredDescription
latquerynumberyesLatitude in decimal degrees
lngquerynumberyesLongitude in decimal degrees
startquerystringnoTimestamp in UTC for the first hour to include in the forecast
endquerystringnoTimestamp in UTC for the last hour to include in the forecast
paramsquerystring[]yes

Responses​

200 — Solar data response

application/json

FieldTypeRequiredDescription
hoursobject(time: string, uvIndex: object<string, number>, solarDownwardRadiationFlux: object<string, number>, …)[]no
metaobject(lat: number, lng: number, start: string, …)no

402 — Error: Payment required (quota exceeded)

application/json

FieldTypeRequiredDescription
errorsobject(key: string)no
metaobject(dailyQuota: number, requestCount: number)no

403 — Forbidden

application/json

FieldTypeRequiredDescription
errorsobject(key: string)no

422 — Error: Unprocessable Entity

application/json

FieldTypeRequiredDescription
errorsobject(key: string)no

Hourly Parameters​

Solar

FieldLevelTypeDescription
uvIndexSurfaceobject<string, number>Ultraviolet (UV) radiation at ground or sea level (W/m²).
solarDownwardRadiationFluxSurfaceobject<string, number>Solar downward radiation flux at ground or sea level (W/m²) - (ECMWF source parameter name: "Surface net short-wave solar radiation").
surfaceNetShortwaveRadiationDownwardsFluxSurfaceobject<string, number>Surface net short-wave radiation downwards flux at ground or sea level (W/m²) - (ECMWF source parameter name: "Surface net short-wave solar radiation downwards").

Response Meta​

FieldTypeRequiredDescription
latnumberno
lngnumberno
startstringnoThe first timestamp of data returned
endstringnoThe last timestamp of data returned
dailyQuotanumbernoThe number of requests you are allowed to make each day
requestCountnumbernoThe number of successful requests you have made since 00:00 UTC