Geomagnetic Forecast (Daily)
GET /v2/geomagnetic/by-days/
Returns daily geomagnetic forecast for location. You must provide either slug or lat+lon.
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | no | City/location slug. Alternative to lat+lon. |
lat | number (double) | no | Latitude. Used with lon as an alternative to slug. |
lon | number (double) | no | Longitude. Used with lat as an alternative to slug. |
Provide either slug or both lat and lon.
Example
200 Response Schema
Response type: array<object>.
Array item fields:
| Field | Type | Required | Description |
|---|---|---|---|
time | string (date-time) | yes | - |
value_max | integer | yes | - |
Error Responses
| Status | Description |
|---|---|
400 | Invalid request parameters |
404 | Data/route not found |
500 | Internal server error |
Error object fields:
| Field | Type | Required | Description |
|---|---|---|---|
status_code | integer | yes | - |
message | string | yes | - |
detail | string | yes | - |