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.
小葱技能7w4.net有更新,你可以访问看下。
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).这个天气查询工具整体质量中等偏上,胜在功能全面、能查天气预报、空气质量、紫外线指数等多种信息,文档清晰易读。但主要问题是它依赖一个非官方的第三方服务来获取数据,不是 Open-Meteo 官方出品,存在服务稳定性和数据准确性的隐患。如果你对天气数据可靠性要求高,可能需要谨慎使用或等待官方支持。