EarthplatformoperationId conditions
GET/v1/conditions
The latest reading of every parameter near a point, each from the nearest station carrying it.
Send Authorization: Bearer sk_live_…. The key's plan must include theplatform product; which plans do.
Explained in Everything at a point and Weather and air quality.
Example
The latest readings near a point.
curl -G "https://api.oslew.com/v1/conditions" \
-H "Authorization: Bearer $GEO_API_KEY" \
--data-urlencode 'at=19.4326,-99.1332'from oslew import Client
# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")
answer = client.conditions("19.4326,-99.1332")import { Client } from "@oslew/client";
// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });
const answer = await client.conditions("19.4326,-99.1332");HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 295
ratelimit-reset: 1
{
"at": [
19.4326,
-99.1332
],
"conditions": [
{
"parameter": "altim_inhg",
"value": 30.4,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
},
{
"parameter": "co",
"value": 0.96,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "dewpoint_c",
"value": 7,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
},
{
"parameter": "no2",
"value": 35,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "o3",
"value": 1,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "pm10",
"value": 47,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "pm25",
"value": 25,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "so2",
"value": 52,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "temp_c",
"value": 15,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
},
{
"parameter": "vis_mi",
"value": 6,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
},
{
"parameter": "wind_dir",
"value": 0,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
},
{
"parameter": "wind_kt",
"value": 0,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
}
],
"took_us": 9783
}A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
Query
| Name | Type | Description |
|---|---|---|
atqueryrequired | string | lat,lon. |
radius_mquery | number ≤ 50000 default 50000 |
Responses
200 — One condition per parameter; empty when no station is near.
atnumber[]requiredconditionsobject[]requireddistance_mnumberrequiredparameterstringrequiredprovenanceSourcerequiredlicensestringrequirednamestringrequiredreleasestringrequired
stationstringrequiredtimeintegerrequiredvaluenumberrequired
took_usintegerrequired
With RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset(and their X-RateLimit-* aliases); see rate limits.
Refusals
Every refusal is a JSON object with an error string, except where noted.
| 400 | Bad request. |
| 401 | No key, or one that is unknown, revoked or suspended. |
| 403 | The key's plan does not include this route's product, or the request is larger than the plan allows. The body names the plan that does. |
| 429 | This product's bucket is empty: the key is going faster than its plan's sustained rate. Wait Retry-After seconds; nothing is used up. Carries Retry-After. |
| 503 | The pod cannot reach the control plane and its entitlements are too old to trust. Retry. |
A malformed query string or JSON body is refused by the framework before this route runs, in plain text rather than JSON; see errors.
Rendered from the OpenAPI document at commit b8f4bde-dirty; the same document is served at/v1/openapi.json and generates both clients.