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.
Available Parameters
Browse response parameters by category or search for a parameter name
Solar
Response Meta
As part of the response, you will find an object called meta with the following content.
Responses
- 200
- 402
- 403
- 422
Solar data response
Error: Payment required (quota exceeded)
Forbidden
Error: Unprocessable Entity
Reference (plain text)
GET /solar/point — Solar Point
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
lat | query | number | yes | Latitude in decimal degrees |
lng | query | number | yes | Longitude in decimal degrees |
start | query | string | no | Timestamp in UTC for the first hour to include in the forecast |
end | query | string | no | Timestamp in UTC for the last hour to include in the forecast |
params | query | string[] | yes |
Responses
200 — Solar data response
application/json
| Field | Type | Required | Description |
|---|---|---|---|
hours | object(time: string, uvIndex: object<string, number>, solarDownwardRadiationFlux: object<string, number>, …)[] | no | |
meta | object(lat: number, lng: number, start: string, …) | no |
402 — Error: Payment required (quota exceeded)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
errors | object(key: string) | no | |
meta | object(dailyQuota: number, requestCount: number) | no |
403 — Forbidden
application/json
| Field | Type | Required | Description |
|---|---|---|---|
errors | object(key: string) | no |
422 — Error: Unprocessable Entity
application/json
| Field | Type | Required | Description |
|---|---|---|---|
errors | object(key: string) | no |
Hourly Parameters
Solar
| Field | Level | Type | Description |
|---|---|---|---|
uvIndex | Surface | object<string, number> | Ultraviolet (UV) radiation at ground or sea level (W/m²). |
solarDownwardRadiationFlux | Surface | object<string, number> | Solar downward radiation flux at ground or sea level (W/m²) - (ECMWF source parameter name: "Surface net short-wave solar radiation"). |
surfaceNetShortwaveRadiationDownwardsFlux | Surface | object<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
| Field | Type | Required | Description |
|---|---|---|---|
lat | number | no | |
lng | number | no | |
start | string | no | The first timestamp of data returned |
end | string | no | The last timestamp of data returned |
dailyQuota | number | no | The number of requests you are allowed to make each day |
requestCount | number | no | The number of successful requests you have made since 00:00 UTC |