{
"city": "Dublin",
"coordinates": {
"lat": 53.3493795,
"lon": -6.2605593
},
"display_name": "Dublin, County Dublin, Leinster, Éire / Ireland",
"current_weather": {
"time": "2026-10-21T13:30",
"interval": 900,
"temperature": 11,
"windspeed": 26.6,
"winddirection": 282,
"is_day": 1,
"weathercode": 2
},
"units": {
"time": "iso8601",
"interval": "seconds",
"temperature": "°C",
"windspeed": "km/h",
"winddirection": "°",
"is_day": null,
"weathercode": "wmo code"
}
}
curl --location --request GET 'https://zylalabs.com/api/14386/weather+and+air+quality+api/36151/current+weather+and+short+forecast?city=Dublin' --header 'Authorization: Bearer YOUR_API_KEY'
{
"city": "Dublin",
"coordinates": {
"lat": 53.3493795,
"lon": -6.2605593
},
"display_name": "Dublin, County Dublin, Leinster, Éire / Ireland",
"daily": {
"time": [
"2026-10-21",
"2026-10-22",
"2026-10-23",
"2026-10-24",
"2026-10-25",
"2026-10-26",
"2026-10-27"
],
"temperature_2m_max": [
12.4,
13.1,
11.1,
14,
11.9,
17.8,
14.6
],
"temperature_2m_min": [
7.7,
6.4,
6.9,
7.2,
9.3,
8.4,
9.4
],
"precipitation_sum": [
5.3,
5.9,
24.28,
8.6,
0.7,
3.3,
0
],
"weathercode": [
55,
61,
65,
55,
51,
53,
3
]
},
"units": {
"time": "iso8601",
"temperature_2m_max": "°C",
"temperature_2m_min": "°C",
"precipitation_sum": "mm",
"weathercode": "wmo code"
}
}
curl --location --request GET 'https://zylalabs.com/api/14386/weather+and+air+quality+api/36152/multi-day+weather+forecast?city=Dublin' --header 'Authorization: Bearer YOUR_API_KEY'
{
"city": "Dublin",
"coordinates": {
"lat": 53.3493795,
"lon": -6.2605593
},
"display_name": "Dublin, County Dublin, Leinster, Éire / Ireland",
"current": {
"time": "2026-10-21T13:00",
"interval": 3600,
"european_aqi": 30,
"us_aqi": 35,
"pm2_5": 3.1,
"pm10": 9.6,
"ozone": 79
},
"units": {
"time": "iso8601",
"interval": "seconds",
"european_aqi": "EAQI",
"us_aqi": "USAQI",
"pm2_5": "μg/m³",
"pm10": "μg/m³",
"ozone": "μg/m³"
}
}
curl --location --request GET 'https://zylalabs.com/api/14386/weather+and+air+quality+api/36153/air+quality+and+pollutant+levels?city=Dublin' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 天气和空气质量 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
实时天气状况、多日预测及任何城市的空气质量,以干净的JSON格式返回,并附带匹配的坐标
开放的气象和地理编码来源在每次请求时都实时查询,因此值反映了当前条件而不是缓存快照
每个调用返回一个城市 更高的计划有更大的请求限制,因此您可以在单个批次中循环遍历多个城市
不 发送城市名称后坐标将为您解析并返回在响应中