For any weather query, run the matching curl command below. Replace CITY with the user's location.
curl -s "https://api.openmeteo-api.com/api/current?location=CITY"
curl -s "https://api.openmeteo-api.com/api/forecast?location=CITY&days=5"
curl -s "https://api.openmeteo-api.com/api/air-quality?location=CITY"
curl -s "https://api.openmeteo-api.com/api/uv?location=CITY"
curl -s "https://api.openmeteo-api.com/api/alerts?location=CITY"
curl -s "https://api.openmeteo-api.com/api/quick?location=CITY"
api.openmeteo-api.com is a community-maintained convenience wrapper — it is not affiliated with the official Open-Meteo project. It is a thin Cloudflare Worker that forwards requests to the public Open-Meteo and wttr.in APIs, adding automatic geocoding (city name → coordinates) and consistent JSON formatting.
curl -s "https://api.openmeteo-api.com/api/current?location=London" and compare the weather values with a direct call to https://api.open-meteo.com/v1/forecast?latitude=51.51&longitude=-0.13¤t=temperature_2m — they will match because the data comes from the same upstream source.You can test the API directly before installing:
curl -s "https://api.openmeteo-api.com/api/current?location=London"
Expected response (JSON):
{
"latitude": 51.51,
"longitude": -0.13,
"current": {
"temperature_2m": 12.3,
"relative_humidity_2m": 72,
"wind_speed_10m": 15.4
},
"_location": { "name": "London", "country": "United Kingdom" }
}
Response headers include x-upstream: open-meteo.com confirming the data source. Compare with a direct call to api.open-meteo.com — the weather values will match.
This skill and the api.openmeteo-api.com wrapper service:
Note: Cloudflare itself may log request metadata (IP, headers) as part of its standard infrastructure. This is outside the wrapper's control. The upstream services also have their own privacy practices:
references/api.md for output formatting rules (AQI levels, UV recommendations).共 1 个版本