AccuWeather API

API ID 15821

地球上任何地点的天气:当前状况、每日、每小时和每分钟预报、预警、空气质量、健康与生活指数、气候记录和热带风暴

API 文档

端点

请求
返回某地点当前生效的政府天气预警:每条预警包含其 ID、描述、类别、优先级、类型、级别、颜色、发布机构、来源、覆盖区域及其开始和结束时间、摘要和全文,以及对其采取的最后一项操作
Endpoint ID: 43337
GET https://zylalabs.com/api/15821/accuweather+api/43337/get+weather+alerts
输入参数

获取天气预警 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
language
API 示例响应
JSON
{
    "_error": "HTTP Error 404: Not Found"
}
获取天气预警 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43337/get+weather+alerts?location=349727&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回自2000年以来某地每个月每日观测到的天气:最高、最低和平均气温,采暖度日和制冷度日,降水量和降雪量
Endpoint ID: 43338
GET https://zylalabs.com/api/15821/accuweather+api/43338/get+climate+actuals
输入参数

获取实际气候数据 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
year 可选 Optional year from 2000 on (defaults to the current year).
month 可选 Optional month number from 1 to 12 (defaults to the current month).

剩余免费测试请求:3 / 3。


输入参数

location
year
month
API 示例响应
JSON
[
    {
        "date": "2025-07-01T00:00:00-05:00",
        "epoch_date": 1751346000,
        "actuals": {
            "temperatures": {
                "maximum": {
                    "metric": {
                        "value": 31.7,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 89,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "minimum": {
                    "metric": {
                        "value": 22.2,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 72,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "average": {
                    "metric": {
                        "value": 26.9,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 80,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "degree_days": {
                "heating": {
                    "metric": {
                        "value": 0,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 0,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "cooling": {
                    "metric": {
                        "value": 8,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 15,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "precipitation": {
                "metric": {
                    "value": 10.9,
                    "unit": "mm",
                    "unit_type": 3
                },
                "imperial": {
                    "value": 0.43,
                    "unit": "in",
                    "unit_type": 1
                }
            },
            "snowfall": {
                "metric": {
                    "value": 0,
                    "unit": "cm",
                    "unit_type": 4
                },
                "imperial": {
                    "value": 0,
                    "unit": "in",
                    "unit_type": 1
                }
            },
            "snow_depth": {
                "metric": {
                    "value": 0,
                    "unit": "cm",
                    "unit_type": 4
                },
                "imperial": {
                    "value": 0,
                    "unit": "in",
                    "unit_type": 1
                }
            }
        }
    }
]
获取实际气候数据 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43338/get+climate+actuals?location=349727&year=2025&month=7' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地一个月中每天的气候常年值:最高、最低和平均气温,采暖和制冷度日以及降水量
Endpoint ID: 43339
GET https://zylalabs.com/api/15821/accuweather+api/43339/get+climate+normals
输入参数

获取气候常年值 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
year 可选 Optional year from 2000 on (defaults to the current year).
month 可选 Optional month number from 1 to 12 (defaults to the current month).

剩余免费测试请求:3 / 3。


输入参数

location
year
month
API 示例响应
JSON
[
    {
        "date": "2025-07-01T00:00:00-05:00",
        "epoch_date": 1751346000,
        "normals": {
            "temperatures": {
                "maximum": {
                    "metric": {
                        "value": 28.8,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 84,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "minimum": {
                    "metric": {
                        "value": 20.4,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 69,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "average": {
                    "metric": {
                        "value": 24.6,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 76,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "degree_days": {
                "heating": {
                    "metric": {
                        "value": 0,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 0,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "cooling": {
                    "metric": {
                        "value": 6,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 11,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "precipitation": {
                "metric": {
                    "value": 3.8,
                    "unit": "mm",
                    "unit_type": 3
                },
                "imperial": {
                    "value": 0.15,
                    "unit": "in",
                    "unit_type": 1
                }
            }
        }
    },
    {
        "date": "2025-07-02T00:00:00-05:00",
        "epoch_date": 1751432400,
        "normals": {
            "temperatures": {
                "maximum": {
                    "metric": {
                        "value": 28.8,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 84,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "minimum": {
                    "metric": {
                        "value": 20.5,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 69,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "average": {
                    "metric": {
                        "value": 24.7,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 76,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "degree_days": {
                "heating": {
                    "metric": {
                        "value": 0,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 0,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "cooling": {
                    "metric": {
                        "value": 6,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 11,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "precipitation": {
                "metric": {
                    "value": 3.8,
                    "unit": "mm",
                    "unit_type": 3
                },
                "imperial": {
                    "value": 0.15,
                    "unit": "in",
                    "unit_type": 1
                }
            }
        }
    },
    {
        "date": "2025-07-03T00:00:00-05:00",
        "epoch_date": 1751518800,
        "normals": {
            "temperatures": {
                "maximum": {
                    "metric": {
                        "value": 28.9,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 84,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "minimum": {
                    "metric": {
                        "value": 20.6,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 69,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "average": {
                    "metric": {
                        "value": 24.8,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 77,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "degree_days": {
                "heating": {
                    "metric": {
                        "value": 0,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 0,
                        "unit": "F",
                        "unit_type": 18
                    }
                },
                "cooling": {
                    "metric": {
                        "value": 7,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 12,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "precipitation": {
                "metric": {
                    "value": 3.8,
                    "unit": "mm",
                    "unit_type": 3
                },
                "imperial": {
                    "value": 0.15,
                    "unit": "in",
                    "unit_type": 1
                }
            }
        }
    }
]
获取气候常年值 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43339/get+climate+normals?location=349727&year=2025&month=7' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地一个月中每天的历史最高和最低纪录:历史最高和最低气温、降水量和降雪量,以及各项纪录创下的年份。记录仅适用于观测历史悠久的地点,主要位于美国地区
Endpoint ID: 43340
GET https://zylalabs.com/api/15821/accuweather+api/43340/get+climate+records
输入参数

获取气候记录 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
year 可选 Optional year from 2000 on (defaults to the current year).
month 可选 Optional month number from 1 to 12 (defaults to the current month).

剩余免费测试请求:3 / 3。


输入参数

location
year
month
API 示例响应
JSON
[
    {
        "date": "2025-07-01T00:00:00-05:00",
        "epoch_date": 1751346000,
        "records": {
            "temperatures": {
                "maximum": {
                    "metric": {
                        "value": 37.8,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 100,
                        "unit": "F",
                        "unit_type": 18
                    },
                    "year": 1901
                },
                "minimum": {
                    "metric": {
                        "value": 11.1,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 52,
                        "unit": "F",
                        "unit_type": 18
                    },
                    "year": 1943
                },
                "average": {
                    "metric": {
                        "value": 24.4,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 76,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "precipitation": {
                "maximum": {
                    "metric": {
                        "value": 55.1,
                        "unit": "mm",
                        "unit_type": 3
                    },
                    "imperial": {
                        "value": 2.17,
                        "unit": "in",
                        "unit_type": 1
                    },
                    "year": 1933
                }
            },
            "snowfall": {
                "maximum": {
                    "metric": {
                        "value": 0,
                        "unit": "cm",
                        "unit_type": 4
                    },
                    "imperial": {
                        "value": 0,
                        "unit": "in",
                        "unit_type": 1
                    },
                    "year": 2026
                }
            }
        }
    },
    {
        "date": "2025-07-02T00:00:00-05:00",
        "epoch_date": 1751432400,
        "records": {
            "temperatures": {
                "maximum": {
                    "metric": {
                        "value": 37.8,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 100,
                        "unit": "F",
                        "unit_type": 18
                    },
                    "year": 2026
                },
                "minimum": {
                    "metric": {
                        "value": 13.3,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 56,
                        "unit": "F",
                        "unit_type": 18
                    },
                    "year": 2001
                },
                "average": {
                    "metric": {
                        "value": 25.6,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 78,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "precipitation": {
                "maximum": {
                    "metric": {
                        "value": 45.5,
                        "unit": "mm",
                        "unit_type": 3
                    },
                    "imperial": {
                        "value": 1.79,
                        "unit": "in",
                        "unit_type": 1
                    },
                    "year": 1914
                }
            },
            "snowfall": {
                "maximum": {
                    "metric": {
                        "value": 0,
                        "unit": "cm",
                        "unit_type": 4
                    },
                    "imperial": {
                        "value": 0,
                        "unit": "in",
                        "unit_type": 1
                    },
                    "year": 2026
                }
            }
        }
    },
    {
        "date": "2025-07-03T00:00:00-05:00",
        "epoch_date": 1751518800,
        "records": {
            "temperatures": {
                "maximum": {
                    "metric": {
                        "value": 39.4,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 103,
                        "unit": "F",
                        "unit_type": 18
                    },
                    "year": 1966
                },
                "minimum": {
                    "metric": {
                        "value": 12.2,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 54,
                        "unit": "F",
                        "unit_type": 18
                    },
                    "year": 1933
                },
                "average": {
                    "metric": {
                        "value": 25.8,
                        "unit": "C",
                        "unit_type": 17
                    },
                    "imperial": {
                        "value": 78,
                        "unit": "F",
                        "unit_type": 18
                    }
                }
            },
            "precipitation": {
                "maximum": {
                    "metric": {
                        "value": 71.1,
                        "unit": "mm",
                        "unit_type": 3
                    },
                    "imperial": {
                        "value": 2.8,
                        "unit": "in",
                        "unit_type": 1
                    },
                    "year": 1930
                }
            },
            "snowfall": {
                "maximum": {
                    "metric": {
                        "value": 0,
                        "unit": "cm",
                        "unit_type": 4
                    },
                    "imperial": {
                        "value": 0,
                        "unit": "in",
                        "unit_type": 1
                    },
                    "year": 2026
                }
            }
        }
    }
]
获取气候记录 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43340/get+climate+records?location=349727&year=2025&month=7' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地某月的概要:当月观测到的最高温度、最低温度和平均温度、度日数及降水量,并与常年值和历史纪录进行对比
Endpoint ID: 43341
GET https://zylalabs.com/api/15821/accuweather+api/43341/get+monthly+climate+summary
输入参数

获取月度气候摘要 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
year 可选 Optional year from 2000 on (defaults to the current year).
month 可选 Optional month number from 1 to 12 (defaults to the current month).

剩余免费测试请求:3 / 3。


输入参数

location
year
month
API 示例响应
JSON
{
    "actuals": {
        "temperatures": {
            "maximum": {
                "metric": {
                    "value": 36.1,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 97,
                    "unit": "F",
                    "unit_type": 18
                }
            },
            "minimum": {
                "metric": {
                    "value": 18.3,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 65,
                    "unit": "F",
                    "unit_type": 18
                }
            },
            "average": {
                "metric": {
                    "value": 26.4,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 79,
                    "unit": "F",
                    "unit_type": 18
                }
            }
        },
        "degree_days": {
            "heating": {
                "metric": {
                    "value": 0,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 0,
                    "unit": "F",
                    "unit_type": 18
                }
            },
            "cooling": {
                "metric": {
                    "value": 249,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 449,
                    "unit": "F",
                    "unit_type": 18
                }
            }
        },
        "precipitation": {
            "metric": {
                "value": 102.4,
                "unit": "mm",
                "unit_type": 3
            },
            "imperial": {
                "value": 4.03,
                "unit": "in",
                "unit_type": 1
            }
        },
        "snowfall": {
            "metric": {
                "value": 0,
                "unit": "cm",
                "unit_type": 4
            },
            "imperial": {
                "value": 0,
                "unit": "in",
                "unit_type": 1
            }
        },
        "snow_depth": {
            "metric": {
                "value": 0,
                "unit": "cm",
                "unit_type": 4
            },
            "imperial": {
                "value": 0,
                "unit": "in",
                "unit_type": 1
            }
        }
    },
    "normals": {
        "temperatures": {
            "maximum": {
                "metric": {
                    "value": 29.6,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 85,
                    "unit": "F",
                    "unit_type": 18
                }
            },
            "minimum": {
                "metric": {
                    "value": 20.4,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 69,
                    "unit": "F",
                    "unit_type": 18
                }
            },
            "average": {
                "metric": {
                    "value": 25.3,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 78,
                    "unit": "F",
                    "unit_type": 18
                }
            }
        },
        "degree_days": {
            "heating": {
                "metric": {
                    "value": 0,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 0,
                    "unit": "F",
                    "unit_type": 18
                }
            },
            "cooling": {
                "metric": {
                    "value": 218,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 392,
                    "unit": "F",
                    "unit_type": 18
                }
            }
        },
        "precipitation": {
            "metric": {
                "value": 118.1,
                "unit": "mm",
                "unit_type": 3
            },
            "imperial": {
                "value": 4.65,
                "unit": "in",
                "unit_type": 1
            }
        }
    },
    "records": {
        "temperatures": {
            "maximum": {
                "metric": {
                    "value": 41.1,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 106,
                    "unit": "F",
                    "unit_type": 18
                },
                "year": 1936
            },
            "minimum": {
                "metric": {
                    "value": 11.1,
                    "unit": "C",
                    "unit_type": 17
                },
                "imperial": {
                    "value": 52,
                    "unit": "F",
                    "unit_type": 18
                },
                "year": 1943
            },
            "average": null
        },
        "precipitation": {
            "maximum": {
                "metric": {
                    "value": 95.2,
                    "unit": "mm",
                    "unit_type": 3
                },
                "imperial": {
                    "value": 3.75,
                    "unit": "in",
                    "unit_type": 1
                },
                "year": 1997
            }
        },
        "snowfall": {
            "maximum": {
                "metric": {
                    "value": 0,
                    "unit": "cm",
                    "unit_type": 4
                },
                "imperial": {
                    "value": 0,
                    "unit": "in",
                    "unit_type": 1
                },
                "year": 2026
            }
        }
    }
}
获取月度气候摘要 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43341/get+monthly+climate+summary?location=349727&year=2025&month=7' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出“language”参数所接受的语言代码,该参数用于设置文本(地名、天气短语、警报、指数类别)的语言,并显示每种语言的英文名称和本地名称。带有国家/地区部分的代码(例如“de-at”“pt-br”)也可接受
Endpoint ID: 43342
GET https://zylalabs.com/api/15821/accuweather+api/43342/get+languages
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
JSON
[
    {
        "code": "ar",
        "name": "Arabic",
        "localized_name": "عربي"
    },
    {
        "code": "az",
        "name": "Azerbaijani",
        "localized_name": "Azərbaycanca"
    },
    {
        "code": "bg",
        "name": "Bulgarian",
        "localized_name": "български"
    },
    {
        "code": "bn",
        "name": "Bengali",
        "localized_name": "বাংলা"
    },
    {
        "code": "bs",
        "name": "Bosnian",
        "localized_name": "bosanski"
    },
    {
        "code": "ca",
        "name": "Catalan",
        "localized_name": "Català"
    },
    {
        "code": "cs",
        "name": "Czech",
        "localized_name": "Čeština"
    },
    {
        "code": "da",
        "name": "Danish",
        "localized_name": "Dansk"
    },
    {
        "code": "de",
        "name": "German",
        "localized_name": "Deutsch"
    },
    {
        "code": "el",
        "name": "Greek",
        "localized_name": "Ελληνικά"
    },
    {
        "code": "en-gb",
        "name": "English (UK)",
        "localized_name": "English (UK)"
    },
    {
        "code": "en-us",
        "name": "English",
        "localized_name": "English (US)"
    },
    {
        "code": "es",
        "name": "Spanish",
        "localized_name": "Español"
    },
    {
        "code": "es-ar",
        "name": "Spanish (Argentina)",
        "localized_name": "Español (Argentina)"
    },
    {
        "code": "es-mx",
        "name": "Spanish (Latin America)",
        "localized_name": "Español (Latin America)"
    },
    {
        "code": "et",
        "name": "Estonian",
        "localized_name": "Eesti keeles"
    },
    {
        "code": "fa",
        "name": "Farsi (Persian)",
        "localized_name": "فارسی‎"
    },
    {
        "code": "fi",
        "name": "Finnish",
        "localized_name": "Suomi"
    },
    {
        "code": "fr",
        "name": "French",
        "localized_name": "Français"
    },
    {
        "code": "fr-ca",
        "name": "French (Canada)",
        "localized_name": "Français (Canada)"
    },
    {
        "code": "gu",
        "name": "Gujarati",
        "localized_name": "ગુજરાતી"
    },
    {
        "code": "he",
        "name": "Hebrew",
        "localized_name": "עברית"
    },
    {
        "code": "hi",
        "name": "Hindi",
        "localized_name": "हिन्दी"
    },
    {
        "code": "hr",
        "name": "Croatian",
        "localized_name": "Hrvatski"
    },
    {
        "code": "hu",
        "name": "Hungarian",
        "localized_name": "Magyar"
    },
    {
        "code": "id",
        "name": "Indonesian",
        "localized_name": "Bahasa Indonesia"
    },
    {
        "code": "is",
        "name": "Icelandic",
        "localized_name": "íslenska"
    },
    {
        "code": "it",
        "name": "Italian",
        "localized_name": "Italiano"
    },
    {
        "code": "ja",
        "name": "Japanese",
        "localized_name": "日本語"
    },
    {
        "code": "kk",
        "name": "Kazakh",
        "localized_name": "Қазақша"
    },
    {
        "code": "kn",
        "name": "Kannada",
        "localized_name": "ಕನ್ನಡ"
    },
    {
        "code": "ko",
        "name": "Korean",
        "localized_name": "한국어"
    },
    {
        "code": "lt",
        "name": "Lithuanian",
        "localized_name": "Lietuvių"
    },
    {
        "code": "lv",
        "name": "Latvian",
        "localized_name": "Latviski"
    },
    {
        "code": "mk",
        "name": "Macedonian",
        "localized_name": "Македонски"
    },
    {
        "code": "mr",
        "name": "Marathi",
        "localized_name": "मराठी"
    },
    {
        "code": "ms",
        "name": "Malaysian",
        "localized_name": "Bahasa Melayu"
    },
    {
        "code": "my",
        "name": "Burmese",
        "localized_name": "မြန်မာဘာသာ"
    },
    {
        "code": "nl",
        "name": "Dutch",
        "localized_name": "Nederlands"
    },
    {
        "code": "no",
        "name": "Norwegian",
        "localized_name": "Norsk"
    },
    {
        "code": "pa",
        "name": "Punjabi",
        "localized_name": "ਪੰਜਾਬੀ"
    },
    {
        "code": "pl",
        "name": "Polish",
        "localized_name": "Polski"
    },
    {
        "code": "pt",
        "name": "Portuguese",
        "localized_name": "Português"
    },
    {
        "code": "pt-br",
        "name": "Portuguese (Brazil)",
        "localized_name": "Português (Brazil)"
    },
    {
        "code": "ro",
        "name": "Romanian",
        "localized_name": "Romana"
    },
    {
        "code": "ru",
        "name": "Russian",
        "localized_name": "русский"
    },
    {
        "code": "sk",
        "name": "Slovak",
        "localized_name": "Slovenčina"
    },
    {
        "code": "sl",
        "name": "Slovenian",
        "localized_name": "Slovenski"
    },
    {
        "code": "sr",
        "name": "Serbian (Latin)",
        "localized_name": "Srpski"
    },
    {
        "code": "sr-me",
        "name": "Montenegrin",
        "localized_name": "Crnogorski"
    },
    {
        "code": "sv",
        "name": "Swedish",
        "localized_name": "Svenska"
    },
    {
        "code": "sw",
        "name": "Swahili",
        "localized_name": "Kiswahili"
    },
    {
        "code": "ta",
        "name": "Tamil",
        "localized_name": "தமிழ்"
    },
    {
        "code": "te",
        "name": "Telugu",
        "localized_name": "తెలుగు"
    },
    {
        "code": "th",
        "name": "Thai",
        "localized_name": "ไทย"
    },
    {
        "code": "tl",
        "name": "Filipino",
        "localized_name": "Tagalog"
    },
    {
        "code": "tr",
        "name": "Turkish",
        "localized_name": "TÜRKÇE"
    },
    {
        "code": "uk",
        "name": "Ukrainian",
        "localized_name": "Українське"
    },
    {
        "code": "ur",
        "name": "Urdu",
        "localized_name": "اُردُو‎"
    },
    {
        "code": "uz",
        "name": "Uzbek",
        "localized_name": "Oʻzbekcha"
    },
    {
        "code": "vi",
        "name": "Vietnamese",
        "localized_name": "Tiếng Việt"
    },
    {
        "code": "zh-cn",
        "name": "Chinese (Simplified)",
        "localized_name": "中文 (SIM)"
    },
    {
        "code": "zh-hk",
        "name": "Chinese (HK)",
        "localized_name": "中文 (HK)"
    },
    {
        "code": "zh-tw",
        "name": "Chinese (Taiwan)",
        "localized_name": "中文 (Taiwan)"
    }
]
获取语言 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43342/get+languages' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出 forecasts 的“units”参数接受的值
Endpoint ID: 43343
GET https://zylalabs.com/api/15821/accuweather+api/43343/get+units
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
JSON
[
    {
        "value": "metric",
        "label": "Metric: °C, km/h, mm, km, mb"
    },
    {
        "value": "imperial",
        "label": "Imperial: °F, mph, in, mi, inHg"
    }
]
获取单位 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43343/get+units' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出 /location/search 端点的“type”参数接受的值
Endpoint ID: 43344
GET https://zylalabs.com/api/15821/accuweather+api/43344/get+search+types
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
JSON
[
    {
        "value": "city",
        "label": "Cities and towns"
    },
    {
        "value": "postal_code",
        "label": "Postal codes"
    },
    {
        "value": "poi",
        "label": "Points of interest (parks, landmarks, airports, stadiums…)"
    }
]
获取搜索类型 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43344/get+search+types' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出世界各地区(非洲、欧洲、北美洲……)及其 ID,/general/countries 端点会使用这些 ID
Endpoint ID: 43345
GET https://zylalabs.com/api/15821/accuweather+api/43345/get+regions
输入参数

获取区域 — 端点功能

对象 描述
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

language
API 示例响应
JSON
[
    {
        "id": "AFR",
        "localized_name": "Africa",
        "english_name": "Africa"
    },
    {
        "id": "ANT",
        "localized_name": "Antarctica",
        "english_name": "Antarctica"
    },
    {
        "id": "ARC",
        "localized_name": "Arctic",
        "english_name": "Arctic"
    },
    {
        "id": "ASI",
        "localized_name": "Asia",
        "english_name": "Asia"
    },
    {
        "id": "CAC",
        "localized_name": "Central America",
        "english_name": "Central America"
    },
    {
        "id": "EUR",
        "localized_name": "Europe",
        "english_name": "Europe"
    },
    {
        "id": "MEA",
        "localized_name": "Middle East",
        "english_name": "Middle East"
    },
    {
        "id": "NAM",
        "localized_name": "North America",
        "english_name": "North America"
    },
    {
        "id": "OCN",
        "localized_name": "Oceania",
        "english_name": "Oceania"
    },
    {
        "id": "SAM",
        "localized_name": "South America",
        "english_name": "South America"
    }
]
获取区域 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43345/get+regions?language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出该地区的国家及其双字母代码,country_code 参数使用这些代码
Endpoint ID: 43346
GET https://zylalabs.com/api/15821/accuweather+api/43346/get+countries
输入参数

获取国家 — 端点功能

对象 描述
region 必需 Region id (e.g. "EUR"). Use the /general/regions endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

region
language
API 示例响应
JSON
[
    {
        "id": "AD",
        "localized_name": "Andorra",
        "english_name": "Andorra"
    },
    {
        "id": "AL",
        "localized_name": "Albania",
        "english_name": "Albania"
    },
    {
        "id": "AT",
        "localized_name": "Austria",
        "english_name": "Austria"
    },
    {
        "id": "BA",
        "localized_name": "Bosnia and Herzegovina",
        "english_name": "Bosnia and Herzegovina"
    },
    {
        "id": "BE",
        "localized_name": "Belgium",
        "english_name": "Belgium"
    },
    {
        "id": "BG",
        "localized_name": "Bulgaria",
        "english_name": "Bulgaria"
    },
    {
        "id": "BY",
        "localized_name": "Belarus",
        "english_name": "Belarus"
    },
    {
        "id": "CH",
        "localized_name": "Switzerland",
        "english_name": "Switzerland"
    },
    {
        "id": "CY",
        "localized_name": "Cyprus",
        "english_name": "Cyprus"
    },
    {
        "id": "CZ",
        "localized_name": "Czechia",
        "english_name": "Czechia"
    },
    {
        "id": "DE",
        "localized_name": "Germany",
        "english_name": "Germany"
    },
    {
        "id": "DK",
        "localized_name": "Denmark",
        "english_name": "Denmark"
    },
    {
        "id": "EE",
        "localized_name": "Estonia",
        "english_name": "Estonia"
    },
    {
        "id": "ES",
        "localized_name": "Spain",
        "english_name": "Spain"
    },
    {
        "id": "FI",
        "localized_name": "Finland",
        "english_name": "Finland"
    },
    {
        "id": "FO",
        "localized_name": "Faroe Islands",
        "english_name": "Faroe Islands"
    },
    {
        "id": "FR",
        "localized_name": "France",
        "english_name": "France"
    },
    {
        "id": "GB",
        "localized_name": "United Kingdom",
        "english_name": "United Kingdom"
    },
    {
        "id": "GG",
        "localized_name": "Guernsey",
        "english_name": "Guernsey"
    },
    {
        "id": "GI",
        "localized_name": "Gibraltar",
        "english_name": "Gibraltar"
    },
    {
        "id": "GR",
        "localized_name": "Greece",
        "english_name": "Greece"
    },
    {
        "id": "HR",
        "localized_name": "Croatia",
        "english_name": "Croatia"
    },
    {
        "id": "HU",
        "localized_name": "Hungary",
        "english_name": "Hungary"
    },
    {
        "id": "IE",
        "localized_name": "Ireland",
        "english_name": "Ireland"
    },
    {
        "id": "IM",
        "localized_name": "Isle of Man",
        "english_name": "Isle of Man"
    },
    {
        "id": "IT",
        "localized_name": "Italy",
        "english_name": "Italy"
    },
    {
        "id": "JE",
        "localized_name": "Jersey",
        "english_name": "Jersey"
    },
    {
        "id": "LI",
        "localized_name": "Liechtenstein",
        "english_name": "Liechtenstein"
    },
    {
        "id": "LT",
        "localized_name": "Lithuania",
        "english_name": "Lithuania"
    },
    {
        "id": "LU",
        "localized_name": "Luxembourg",
        "english_name": "Luxembourg"
    },
    {
        "id": "LV",
        "localized_name": "Latvia",
        "english_name": "Latvia"
    },
    {
        "id": "MC",
        "localized_name": "Monaco",
        "english_name": "Monaco"
    },
    {
        "id": "MD",
        "localized_name": "Moldova",
        "english_name": "Moldova"
    },
    {
        "id": "ME",
        "localized_name": "Montenegro",
        "english_name": "Montenegro"
    },
    {
        "id": "MK",
        "localized_name": "North Macedonia",
        "english_name": "North Macedonia"
    },
    {
        "id": "MT",
        "localized_name": "Malta",
        "english_name": "Malta"
    },
    {
        "id": "NL",
        "localized_name": "Netherlands",
        "english_name": "Netherlands"
    },
    {
        "id": "NO",
        "localized_name": "Norway",
        "english_name": "Norway"
    },
    {
        "id": "PL",
        "localized_name": "Poland",
        "english_name": "Poland"
    },
    {
        "id": "PT",
        "localized_name": "Portugal",
        "english_name": "Portugal"
    },
    {
        "id": "RO",
        "localized_name": "Romania",
        "english_name": "Romania"
    },
    {
        "id": "RS",
        "localized_name": "Serbia",
        "english_name": "Serbia"
    },
    {
        "id": "RU",
        "localized_name": "Russia",
        "english_name": "Russia"
    },
    {
        "id": "SE",
        "localized_name": "Sweden",
        "english_name": "Sweden"
    },
    {
        "id": "SI",
        "localized_name": "Slovenia",
        "english_name": "Slovenia"
    },
    {
        "id": "SJ",
        "localized_name": "Svalbard And Jan Mayen",
        "english_name": "Svalbard And Jan Mayen"
    },
    {
        "id": "SK",
        "localized_name": "Slovakia",
        "english_name": "Slovakia"
    },
    {
        "id": "SM",
        "localized_name": "San Marino",
        "english_name": "San Marino"
    },
    {
        "id": "TR",
        "localized_name": "Turkey",
        "english_name": "Turkey"
    },
    {
        "id": "UA",
        "localized_name": "Ukraine",
        "english_name": "Ukraine"
    },
    {
        "id": "VA",
        "localized_name": "Vatican City",
        "english_name": "Vatican City"
    },
    {
        "id": "XK",
        "localized_name": "Kosovo",
        "english_name": "Kosovo"
    }
]
获取国家 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43346/get+countries?region=EUR&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出一个国家的一级行政区(州、省、区等)及其编号、名称和类型
Endpoint ID: 43347
GET https://zylalabs.com/api/15821/accuweather+api/43347/get+administrative+areas
输入参数

获取行政区域 — 端点功能

对象 描述
country_code 必需 Two-letter ISO country code (e.g. "US"). Use the /general/countries endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

country_code
language
API 示例响应
JSON
[
    {
        "id": "AK",
        "localized_name": "Alaska",
        "english_name": "Alaska",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "AL",
        "localized_name": "Alabama",
        "english_name": "Alabama",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "AR",
        "localized_name": "Arkansas",
        "english_name": "Arkansas",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "AZ",
        "localized_name": "Arizona",
        "english_name": "Arizona",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "CA",
        "localized_name": "California",
        "english_name": "California",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "CO",
        "localized_name": "Colorado",
        "english_name": "Colorado",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "CT",
        "localized_name": "Connecticut",
        "english_name": "Connecticut",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "DC",
        "localized_name": "District of Columbia",
        "english_name": "District of Columbia",
        "level": 1,
        "localized_type": "District",
        "english_type": "District",
        "country_id": "us"
    },
    {
        "id": "DE",
        "localized_name": "Delaware",
        "english_name": "Delaware",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "FL",
        "localized_name": "Florida",
        "english_name": "Florida",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "GA",
        "localized_name": "Georgia",
        "english_name": "Georgia",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "HI",
        "localized_name": "Hawaii",
        "english_name": "Hawaii",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "IA",
        "localized_name": "Iowa",
        "english_name": "Iowa",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "ID",
        "localized_name": "Idaho",
        "english_name": "Idaho",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "IL",
        "localized_name": "Illinois",
        "english_name": "Illinois",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "IN",
        "localized_name": "Indiana",
        "english_name": "Indiana",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "KS",
        "localized_name": "Kansas",
        "english_name": "Kansas",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "KY",
        "localized_name": "Kentucky",
        "english_name": "Kentucky",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "LA",
        "localized_name": "Louisiana",
        "english_name": "Louisiana",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "MA",
        "localized_name": "Massachusetts",
        "english_name": "Massachusetts",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "MD",
        "localized_name": "Maryland",
        "english_name": "Maryland",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "ME",
        "localized_name": "Maine",
        "english_name": "Maine",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "MI",
        "localized_name": "Michigan",
        "english_name": "Michigan",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "MN",
        "localized_name": "Minnesota",
        "english_name": "Minnesota",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "MO",
        "localized_name": "Missouri",
        "english_name": "Missouri",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    },
    {
        "id": "MS",
        "localized_name": "Mississippi",
        "english_name": "Mississippi",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "us"
    }
]
获取行政区域 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43347/get+administrative+areas?country_code=US&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出生活方式和健康指数的分组(疼痛、呼吸系统、园艺、户外、运动、花粉、驾驶……)及其 ID,"group_id" 参数可接受这些 ID
Endpoint ID: 43348
GET https://zylalabs.com/api/15821/accuweather+api/43348/get+index+groups
输入参数

获取索引组 — 端点功能

对象 描述
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

language
API 示例响应
JSON
[
    {
        "name": "All API",
        "id": 1
    },
    {
        "name": "Aches and Pains API",
        "id": 2
    },
    {
        "name": "Respiratory API",
        "id": 3
    },
    {
        "name": "Gardening API",
        "id": 4
    },
    {
        "name": "Environmental API",
        "id": 5
    },
    {
        "name": "Outdoor Living API",
        "id": 6
    },
    {
        "name": "Beach and Marine API",
        "id": 7
    },
    {
        "name": "Sportsman API",
        "id": 8
    },
    {
        "name": "Farming API",
        "id": 9
    },
    {
        "name": "Health API",
        "id": 10
    },
    {
        "name": "Outdoor API",
        "id": 11
    },
    {
        "name": "Sporting API",
        "id": 12
    },
    {
        "name": "Home API",
        "id": 13
    },
    {
        "name": "Pollen",
        "id": 30
    },
    {
        "name": "OperaTV",
        "id": 31
    },
    {
        "name": "Lifestyle Allergies",
        "id": 32
    },
    {
        "name": "Lifestyle Cold & Flu",
        "id": 33
    },
    {
        "name": "Lifestyle Driving",
        "id": 34
    },
    {
        "name": "Lifestyle Lawn & Garden",
        "id": 35
    },
    {
        "name": "Lifestyle Entertaining",
        "id": 36
    },
    {
        "name": "Lifestyle Sun & Sand",
        "id": 37
    },
    {
        "name": "Lifestyle Air Travel",
        "id": 38
    },
    {
        "name": "Lifestyle Arthritis",
        "id": 39
    },
    {
        "name": "Lifestyle Respiratory",
        "id": 40
    },
    {
        "name": "Lifestyle Astronomy",
        "id": 41
    },
    {
        "name": "Lifestyle Biking",
        "id": 42
    },
    {
        "name": "Lifestyle D.I.Y",
        "id": 43
    },
    {
        "name": "Lifestyle Events",
        "id": 44
    },
    {
        "name": "Lifestyle Fishing",
        "id": 45
    },
    {
        "name": "Lifestyle Golf",
        "id": 46
    },
    {
        "name": "Lifestyle Hair Day",
        "id": 47
    },
    {
        "name": "Lifestyle Hiking",
        "id": 48
    },
    {
        "name": "Lifestyle Home Energy",
        "id": 49
    },
    {
        "name": "Lifestyle Hunting",
        "id": 50
    },
    {
        "name": "Lifestyle Migraine",
        "id": 51
    },
    {
        "name": "Lifestyle Running",
        "id": 52
    },
    {
        "name": "Lifestyle Sailing",
        "id": 53
    },
    {
        "name": "Lifestyle School Day",
        "id": 54
    },
    {
        "name": "Lifestyle Sinus",
        "id": 55
    },
    {
        "name": "Lifestyle Ski",
        "id": 56
    },
    {
        "name": "Lifestyle Snow Days",
        "id": 57
    },
    {
        "name": "Web All",
        "id": 58
    },
    {
        "name": "Mosquito",
        "id": 59
    },
    {
        "name": "WinterCast",
        "id": 60
    },
    {
        "name": "Pest",
        "id": 61
    },
    {
        "name": "China Indices",
        "id": 100
    },
    {
        "name": "Korean Indices",
        "id": 102
    }
]
获取索引组 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43348/get+index+groups?language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出每项生活方式和健康指数(紫外线、跑步、高尔夫、关节炎、蚊虫活动、流感、驾驶、霜冻……)及其 ID、数值越高是否越好以及描述,可列出全部指数或某一组指数。ID 填入 /health/index-forecast 端点的 "index_id" 参数中
Endpoint ID: 43349
GET https://zylalabs.com/api/15821/accuweather+api/43349/get+index+types
输入参数

获取索引类型 — 端点功能

对象 描述
group_id 可选 Optional index group id (e.g. "2"). Use the /general/index-groups endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

group_id
language
API 示例响应
JSON
[
    {
        "name": "Arthritis Pain Forecast",
        "id": 21,
        "ascending": false,
        "description": "AccuWeather.com has developed a forecast that combines weather factors that may affect arthritis sufferers, and summarizes potential likelihood and severity of weather-related arthritis pain. The AccuWeather.com Arthritis Pain Forecast gives arthritis sufferers advance notice of increased pain, allowing them to plan appropriate physical activities."
    },
    {
        "name": "Migraine Headache Forecast",
        "id": 27,
        "ascending": false,
        "description": "Migraine Headaches can occur at any time. The AccuWeather.com Migraine Headache Forecast combines current weather with how the weather is changing to predict the probability of experiencing a migraine headache, as well as how intense it is likely to be and how long it is likely to last."
    },
    {
        "name": "Sinus Headache Forecast",
        "id": 30,
        "ascending": false,
        "description": "The AccuWeather.com Sinus Headache Forecast combines the effects of weather and relevant demographic factors to show the probability of experiencing a sinus headache, as well as how long it is likely to last and how severe it is likely to be."
    }
]
获取索引类型 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43349/get+index+types?group_id=2&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出 /tropical/storms 端点的“basin”参数可接受的值
Endpoint ID: 43350
GET https://zylalabs.com/api/15821/accuweather+api/43350/get+tropical+basins
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
JSON
[
    {
        "value": "AL",
        "label": "Atlantic"
    },
    {
        "value": "EP",
        "label": "Eastern Pacific"
    },
    {
        "value": "CP",
        "label": "Central Pacific"
    },
    {
        "value": "NP",
        "label": "Northwest Pacific"
    },
    {
        "value": "NI",
        "label": "North Indian Ocean"
    },
    {
        "value": "SI",
        "label": "South Indian Ocean"
    },
    {
        "value": "SP",
        "label": "South Pacific"
    }
]
获取热带盆地 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43350/get+tropical+basins' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地当前的空气质量:总体指数及其类别、颜色、主要污染物、危害说明和健康建议,以及每种污染物(PM2.5、PM10、臭氧、二氧化氮、二氧化硫、一氧化碳)的浓度、指数和来源
Endpoint ID: 43351
GET https://zylalabs.com/api/15821/accuweather+api/43351/get+current+air+quality
输入参数

获取当前空气质量 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
language
API 示例响应
JSON
{
    "date": "2026-12-01T02:00:00-05:00",
    "epoch_date": 1796108400,
    "overall_index": 20.2,
    "overall_plume_labs_index": 42.1,
    "dominant_pollutant": "Nitrogen Dioxide",
    "category": "Fair",
    "category_color": "#43D357",
    "hazard_statement": "The air quality is generally acceptable for most individuals. However, sensitive groups may experience minor to moderate symptoms from long-term exposure.",
    "link": "https://www.accuweather.com/en/us/new-york-ny/10021/air-quality-index/349727?lang=en-us",
    "pollutants": [
        {
            "type": "NO2",
            "name": "Nitrogen Dioxide",
            "index": 10.6,
            "plume_labs_index": 42.1,
            "concentration": {
                "value": 21,
                "unit": "µg/m³",
                "unit_type": 31
            },
            "source": "Plume Labs"
        },
        {
            "type": "O3",
            "name": "Ozone",
            "index": 20.2,
            "plume_labs_index": 16.7,
            "concentration": {
                "value": 50.1,
                "unit": "µg/m³",
                "unit_type": 31
            },
            "source": "Plume Labs"
        },
        {
            "type": "PM10",
            "name": "Particulate Matter 10",
            "index": 5.8,
            "plume_labs_index": 8.3,
            "concentration": {
                "value": 6.2,
                "unit": "µg/m³",
                "unit_type": 31
            },
            "source": "Plume Labs"
        },
        {
            "type": "PM2_5",
            "name": "Particulate Matter 2.5",
            "index": 14.8,
            "plume_labs_index": 14.2,
            "concentration": {
                "value": 3.6,
                "unit": "µg/m³",
                "unit_type": 31
            },
            "source": "Plume Labs"
        },
        {
            "type": "CO",
            "name": "Carbon Monoxide",
            "index": 1.4,
            "plume_labs_index": 1.4,
            "concentration": {
                "value": 141.4,
                "unit": "µg/m³",
                "unit_type": 31
            },
            "source": "Plume Labs"
        },
        {
            "type": "SO2",
            "name": "Sulfur Dioxide",
            "index": 0.5,
            "plume_labs_index": 0.9,
            "concentration": {
                "value": 0.9,
                "unit": "µg/m³",
                "unit_type": 31
            },
            "source": "Plume Labs"
        }
    ]
}
获取当前空气质量 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43351/get+current+air+quality?location=349727&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地未来 1 至 96 小时每小时的空气质量预报,包括综合指数、类别、主要污染物、健康建议以及每种污染物的浓度和指数
Endpoint ID: 43352
GET https://zylalabs.com/api/15821/accuweather+api/43352/get+hourly+air+quality+forecast
输入参数

获取每小时空气质量预报 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
hours 可选 Optional number of hours: 1, 12, 24, 48, 72 or 96 (defaults to 24).
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
hours
language
API 示例响应
JSON
[
    {
        "date": "2026-12-01T04:00:00-05:00",
        "epoch_date": 1796115600,
        "overall_index": 18.4,
        "overall_plume_labs_index": 48.7,
        "dominant_pollutant": "Nitrogen Dioxide",
        "category": "Fair",
        "category_color": "#43D357",
        "hazard_statement": "The air quality is generally acceptable for most individuals. However, sensitive groups may experience minor to moderate symptoms from long-term exposure.",
        "link": "https://www.accuweather.com/en/us/new-york-ny/10021/air-quality-index/349727?lang=en-us",
        "pollutants": [
            {
                "type": "NO2",
                "name": "Nitrogen Dioxide",
                "index": 12.2,
                "plume_labs_index": 48.7,
                "concentration": {
                    "value": 24.4,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "O3",
                "name": "Ozone",
                "index": 18.4,
                "plume_labs_index": 15.2,
                "concentration": {
                    "value": 45.6,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "PM10",
                "name": "Particulate Matter 10",
                "index": 6.1,
                "plume_labs_index": 8.8,
                "concentration": {
                    "value": 6.6,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "PM2_5",
                "name": "Particulate Matter 2.5",
                "index": 15.2,
                "plume_labs_index": 14.6,
                "concentration": {
                    "value": 3.6,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "CO",
                "name": "Carbon Monoxide",
                "index": 1.4,
                "plume_labs_index": 1.4,
                "concentration": {
                    "value": 142,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "SO2",
                "name": "Sulfur Dioxide",
                "index": 0.5,
                "plume_labs_index": 0.9,
                "concentration": {
                    "value": 0.9,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            }
        ]
    },
    {
        "date": "2026-12-01T05:00:00-05:00",
        "epoch_date": 1796119200,
        "overall_index": 17.6,
        "overall_plume_labs_index": 50.4,
        "dominant_pollutant": "Nitrogen Dioxide",
        "category": "Poor",
        "category_color": "#FDB80D",
        "hazard_statement": "The air has reached a high level of pollution and is unhealthy for sensitive groups. Reduce time spent outside if you are feeling symptoms such as difficulty breathing or throat irritation.",
        "link": "https://www.accuweather.com/en/us/new-york-ny/10021/air-quality-index/349727?lang=en-us",
        "pollutants": [
            {
                "type": "NO2",
                "name": "Nitrogen Dioxide",
                "index": 13.3,
                "plume_labs_index": 50.4,
                "concentration": {
                    "value": 26.5,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "O3",
                "name": "Ozone",
                "index": 17.6,
                "plume_labs_index": 14.6,
                "concentration": {
                    "value": 43.7,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "PM10",
                "name": "Particulate Matter 10",
                "index": 5.7,
                "plume_labs_index": 8.2,
                "concentration": {
                    "value": 6.2,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "PM2_5",
                "name": "Particulate Matter 2.5",
                "index": 15.3,
                "plume_labs_index": 14.7,
                "concentration": {
                    "value": 3.7,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "CO",
                "name": "Carbon Monoxide",
                "index": 1.5,
                "plume_labs_index": 1.5,
                "concentration": {
                    "value": 152.3,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "SO2",
                "name": "Sulfur Dioxide",
                "index": 0.6,
                "plume_labs_index": 1,
                "concentration": {
                    "value": 1,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            }
        ]
    },
    {
        "date": "2026-12-01T06:00:00-05:00",
        "epoch_date": 1796122800,
        "overall_index": 16.8,
        "overall_plume_labs_index": 51,
        "dominant_pollutant": "Nitrogen Dioxide",
        "category": "Poor",
        "category_color": "#FDB80D",
        "hazard_statement": "The air has reached a high level of pollution and is unhealthy for sensitive groups. Reduce time spent outside if you are feeling symptoms such as difficulty breathing or throat irritation.",
        "link": "https://www.accuweather.com/en/us/new-york-ny/10021/air-quality-index/349727?lang=en-us",
        "pollutants": [
            {
                "type": "NO2",
                "name": "Nitrogen Dioxide",
                "index": 14.3,
                "plume_labs_index": 51,
                "concentration": {
                    "value": 28.6,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "O3",
                "name": "Ozone",
                "index": 16.8,
                "plume_labs_index": 13.9,
                "concentration": {
                    "value": 41.8,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "PM10",
                "name": "Particulate Matter 10",
                "index": 5.3,
                "plume_labs_index": 7.7,
                "concentration": {
                    "value": 5.8,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "PM2_5",
                "name": "Particulate Matter 2.5",
                "index": 15.4,
                "plume_labs_index": 14.8,
                "concentration": {
                    "value": 3.7,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "CO",
                "name": "Carbon Monoxide",
                "index": 1.6,
                "plume_labs_index": 1.6,
                "concentration": {
                    "value": 162.7,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            },
            {
                "type": "SO2",
                "name": "Sulfur Dioxide",
                "index": 0.6,
                "plume_labs_index": 1.2,
                "concentration": {
                    "value": 1.2,
                    "unit": "µg/m³",
                    "unit_type": 31
                },
                "source": "Plume Labs"
            }
        ]
    }
]
获取每小时空气质量预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43352/get+hourly+air+quality+forecast?location=349727&hours=24&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地未来1至4天每天的空气质量预报:总体指数、类别、颜色、主要污染物、危害说明和健康建议
Endpoint ID: 43353
GET https://zylalabs.com/api/15821/accuweather+api/43353/get+daily+air+quality+forecast
输入参数

获取每日空气质量预报 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
days 可选 Optional number of days: 1, 2, 3 or 4 (defaults to 4).
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
days
language
API 示例响应
JSON
[
    {
        "date": "2026-12-01T00:00:00-05:00",
        "epoch_date": 1796101200,
        "overall_index": 48.5,
        "overall_plume_labs_index": 58.4,
        "dominant_pollutant": "Nitrogen Dioxide",
        "category": "Poor",
        "category_color": "#FDB80D",
        "hazard_statement": "The air has reached a high level of pollution and is unhealthy for sensitive groups. Reduce time spent outside if you are feeling symptoms such as difficulty breathing or throat irritation.",
        "link": "https://www.accuweather.com/en/us/new-york-ny/10021/air-quality-index/349727?lang=en-us"
    },
    {
        "date": "2026-12-02T00:00:00-05:00",
        "epoch_date": 1796187600,
        "overall_index": 51.7,
        "overall_plume_labs_index": 59.8,
        "dominant_pollutant": "Nitrogen Dioxide",
        "category": "Poor",
        "category_color": "#FDB80D",
        "hazard_statement": "The air has reached a high level of pollution and is unhealthy for sensitive groups. Reduce time spent outside if you are feeling symptoms such as difficulty breathing or throat irritation.",
        "link": "https://www.accuweather.com/en/us/new-york-ny/10021/air-quality-index/349727?lang=en-us"
    },
    {
        "date": "2026-12-03T00:00:00-05:00",
        "epoch_date": 1796274000,
        "overall_index": 63.9,
        "overall_plume_labs_index": 59.1,
        "dominant_pollutant": "Nitrogen Dioxide",
        "category": "Poor",
        "category_color": "#FDB80D",
        "hazard_statement": "The air has reached a high level of pollution and is unhealthy for sensitive groups. Reduce time spent outside if you are feeling symptoms such as difficulty breathing or throat irritation.",
        "link": "https://www.accuweather.com/en/us/new-york-ny/10021/air-quality-index/349727?lang=en-us"
    },
    {
        "date": "2026-12-04T00:00:00-05:00",
        "epoch_date": 1796360400,
        "overall_index": 63.2,
        "overall_plume_labs_index": 59.4,
        "dominant_pollutant": "Particulate Matter 2.5",
        "category": "Poor",
        "category_color": "#FDB80D",
        "hazard_statement": "The air has reached a high level of pollution and is unhealthy for sensitive groups. Reduce time spent outside if you are feeling symptoms such as difficulty breathing or throat irritation.",
        "link": "https://www.accuweather.com/en/us/new-york-ny/10021/air-quality-index/349727?lang=en-us"
    }
]
获取每日空气质量预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43353/get+daily+air+quality+forecast?location=349727&days=4&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地最多 15 天的生活方式和健康指数每日预报(紫外线、跑步、高尔夫、钓鱼、关节炎、偏头痛、鼻窦、哮喘、流感、蚊虫活动、花粉、驾驶、霜冻、供暖和制冷、草坪修剪、观星等):每个指数和日期及其数值、类别、类别值和文本。可返回所有指数、一个分组或一个指数
Endpoint ID: 43354
GET https://zylalabs.com/api/15821/accuweather+api/43354/get+index+forecast
输入参数

获取指数预测 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
days 可选 Optional number of days: 1, 5, 10 or 15 (defaults to 5).
group_id 可选 Optional index group id (e.g. "2"). Use the /general/index-groups endpoint to list valid values.
index_id 可选 Optional index id (e.g. "-15" for the UV index); takes precedence over "group_id". Use the /general/index-types endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
days
group_id
index_id
language
API 示例响应
JSON
[
    {
        "name": "UV Index",
        "id": -15,
        "ascending": false,
        "local_date_time": "2026-11-30T07:00:00-05:00",
        "epoch_date_time": 1796040000,
        "value": 2,
        "category": "Low",
        "category_value": 1,
        "text": "There is a low danger from the sun's UV rays for the average person",
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/health-activities/349727?lang=en-us"
    },
    {
        "name": "UV Index",
        "id": -15,
        "ascending": false,
        "local_date_time": "2026-12-01T07:00:00-05:00",
        "epoch_date_time": 1796126400,
        "value": 2,
        "category": "Low",
        "category_value": 1,
        "text": "There is a low danger from the sun's UV rays for the average person",
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/health-activities/349727?lang=en-us"
    },
    {
        "name": "UV Index",
        "id": -15,
        "ascending": false,
        "local_date_time": "2026-12-02T07:00:00-05:00",
        "epoch_date_time": 1796212800,
        "value": 2,
        "category": "Low",
        "category_value": 1,
        "text": "There is a low danger from the sun's UV rays for the average person",
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/health-activities/349727?lang=en-us"
    },
    {
        "name": "UV Index",
        "id": -15,
        "ascending": false,
        "local_date_time": "2026-12-03T07:00:00-05:00",
        "epoch_date_time": 1796299200,
        "value": 2,
        "category": "Low",
        "category_value": 1,
        "text": "There is a low danger from the sun's UV rays for the average person",
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/health-activities/349727?lang=en-us"
    },
    {
        "name": "UV Index",
        "id": -15,
        "ascending": false,
        "local_date_time": "2026-12-04T07:00:00-05:00",
        "epoch_date_time": 1796385600,
        "value": 2,
        "category": "Low",
        "category_value": 1,
        "text": "There is a low danger from the sun's UV rays for the average person",
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/health-activities/349727?lang=en-us"
    }
]
获取指数预测 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43354/get+index+forecast?location=349727&days=5&group_id=2&index_id=-15&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
按名称或代码搜索全球城市、邮政编码或兴趣点,并返回每个地点的位置键、排名、地区、国家、行政区域、时区、坐标、海拔以及可用的数据集。位置键用于其他端点的“location”参数】【。
Endpoint ID: 43355
GET https://zylalabs.com/api/15821/accuweather+api/43355/search+locations
输入参数

搜索位置 — 端点功能

对象 描述
query 必需 Place name or postal code (e.g. "London", "10001", "Eiffel Tower").
type 可选 Optional kind of place: "city", "postal_code" or "poi" (defaults to "city"). Use the /general/search-types endpoint to list valid values.
country_code 可选 Optional two-letter ISO country code to search in (e.g. "GB"). Use the /general/countries endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

query
type
country_code
language
API 示例响应
JSON
[
    {
        "key": "328328",
        "type": "City",
        "rank": 10,
        "localized_name": "London",
        "english_name": "London",
        "primary_postal_code": "EC4A 2",
        "region": {
            "id": "EUR",
            "localized_name": "Europe",
            "english_name": "Europe"
        },
        "country": {
            "id": "GB",
            "localized_name": "United Kingdom",
            "english_name": "United Kingdom"
        },
        "administrative_area": {
            "id": "LND",
            "localized_name": "London",
            "english_name": "London",
            "level": 1,
            "localized_type": "London Borough",
            "english_type": "London Borough",
            "country_id": "GB"
        },
        "time_zone": {
            "code": "GMT",
            "name": "Europe/London",
            "gmt_offset": 0,
            "is_daylight_saving": false,
            "next_offset_change": "2027-03-28T01:00:00Z"
        },
        "geo_position": {
            "latitude": 51.514,
            "longitude": -0.107,
            "elevation": {
                "metric": {
                    "value": 18,
                    "unit": "m",
                    "unit_type": 5
                },
                "imperial": {
                    "value": 59,
                    "unit": "ft",
                    "unit_type": 0
                }
            }
        },
        "is_alias": false,
        "supplemental_admin_areas": [
            {
                "level": 0,
                "localized_name": "England",
                "english_name": "England"
            },
            {
                "level": 3,
                "localized_name": "Castle Baynard",
                "english_name": "Castle Baynard"
            }
        ],
        "data_sets": [
            "AirQualityCurrentConditions",
            "AirQualityForecasts",
            "Alerts",
            "DailyPollenForecast",
            "ForecastConfidence",
            "FutureRadar",
            "MinuteCast",
            "Radar",
            "Severe Weather Push Notifications",
            "TidalForecast"
        ],
        "details": {
            "key": "328328",
            "station_code": "EGRB",
            "station_gmt_offset": 0,
            "band_map": "ENGL",
            "climo": "EGLC",
            "local_radar": null,
            "media_region": null,
            "metar": "EGLC",
            "nx_metro": null,
            "nx_state": "EUR3",
            "population": 7517700,
            "primary_warning_county_code": null,
            "primary_warning_zone_code": null,
            "satellite": "EUR3",
            "synoptic": "03770",
            "marine_station": null,
            "marine_station_gmt_offset": null,
            "video_code": null,
            "location_stem": "gb/london/ec4a-2",
            "partner_id": null,
            "sources": [
                {
                    "data_type": "AirQualityCurrentConditions",
                    "source": "Plume Labs",
                    "source_id": 63,
                    "partner_source_url": "https://air.plumelabs.com/air-quality-in-london-b5L1"
                },
                {
                    "data_type": "AirQualityForecasts",
                    "source": "Plume Labs",
                    "source_id": 63,
                    "partner_source_url": "https://air.plumelabs.com/air-quality-in-london-b5L1"
                },
                {
                    "data_type": "Alerts",
                    "source": "Met Office National Severe Weather Warnings",
                    "source_id": 4
                },
                {
                    "data_type": "Alerts",
                    "source": "UK Environment Agency",
                    "source_id": 42
                },
                {
                    "data_type": "CurrentConditions",
                    "source": "AccuWeather",
                    "source_id": 1
                },
                {
                    "data_type": "DailyForecast",
                    "source": "AccuWeather",
                    "source_id": 1
                },
                {
                    "data_type": "DailyPollenForecast",
                    "source": "Copernicus Atmosphere Monitoring Service",
                    "source_id": 78
                },
                {
                    "data_type": "ForecastConfidence",
                    "source": "AccuWeather",
                    "source_id": 1
                },
                {
                    "data_type": "FutureRadar",
                    "source": "AccuWeather",
                    "source_id": 1
                },
                {
                    "data_type": "Historical",
                    "source": "AccuWeather",
                    "source_id": 1
                },
                {
                    "data_type": "HourlyForecast",
                    "source": "AccuWeather",
                    "source_id": 1
                },
                {
                    "data_type": "MinuteCast",
                    "source": "AccuWeather",
                    "source_id": 1
                },
                {
                    "data_type": "Radar",
                    "source": "UK Met Office",
                    "source_id": 60
                },
                {
                    "data_type": "Severe Weather Push Notifications",
                    "source": "Met Office National Severe Weather Warnings",
                    "source_id": 4
                },
                {
                    "data_type": "Severe Weather Push Notifications",
                    "source": "UK Environment Agency",
                    "source_id": 42
                },
                {
                    "data_type": "TidalForecast",
                    "source": "AccuWeather",
                    "source_id": 1
                }
            ],
            "canonical_postal_code": "EC4A 2",
            "canonical_location_key": "328328"
        }
    }
]
搜索位置 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43355/search+locations?query=London&type=city&country_code=GB&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
建议最多列出 10 个名称以输入文本开头的城市,并提供每个城市的位置键、国家和行政区
Endpoint ID: 43356
GET https://zylalabs.com/api/15821/accuweather+api/43356/autocomplete+locations
输入参数

自动补全位置 — 端点功能

对象 描述
query 必需 Start of a city name (e.g. "Lond").
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

query
language
API 示例响应
JSON
[
    {
        "key": "328328",
        "type": "City",
        "rank": 10,
        "localized_name": "London",
        "country": {
            "id": "GB",
            "localized_name": "United Kingdom"
        },
        "administrative_area": {
            "id": "LND",
            "localized_name": "London"
        }
    },
    {
        "key": "44945",
        "type": "City",
        "rank": 35,
        "localized_name": "Londrina",
        "country": {
            "id": "BR",
            "localized_name": "Brazil"
        },
        "administrative_area": {
            "id": "PR",
            "localized_name": "Paraná"
        }
    },
    {
        "key": "55489",
        "type": "City",
        "rank": 35,
        "localized_name": "London",
        "country": {
            "id": "CA",
            "localized_name": "Canada"
        },
        "administrative_area": {
            "id": "ON",
            "localized_name": "Ontario"
        }
    },
    {
        "key": "329139",
        "type": "City",
        "rank": 41,
        "localized_name": "Londonderry",
        "country": {
            "id": "GB",
            "localized_name": "United Kingdom"
        },
        "administrative_area": {
            "id": "DRS",
            "localized_name": "Derry City and Strabane"
        }
    },
    {
        "key": "31679",
        "type": "City",
        "rank": 63,
        "localized_name": "Londerzeel",
        "country": {
            "id": "BE",
            "localized_name": "Belgium"
        },
        "administrative_area": {
            "id": "VBR",
            "localized_name": "Flemish Brabant"
        }
    },
    {
        "key": "2174076",
        "type": "City",
        "rank": 65,
        "localized_name": "Londonderry",
        "country": {
            "id": "US",
            "localized_name": "United States"
        },
        "administrative_area": {
            "id": "NH",
            "localized_name": "New Hampshire"
        }
    },
    {
        "key": "711822",
        "type": "City",
        "rank": 75,
        "localized_name": "London Colney",
        "country": {
            "id": "GB",
            "localized_name": "United Kingdom"
        },
        "administrative_area": {
            "id": "HRT",
            "localized_name": "Hertfordshire"
        }
    },
    {
        "key": "203973",
        "type": "City",
        "rank": 75,
        "localized_name": "Londa",
        "country": {
            "id": "IN",
            "localized_name": "India"
        },
        "administrative_area": {
            "id": "KA",
            "localized_name": "Karnataka"
        }
    },
    {
        "key": "333298",
        "type": "City",
        "rank": 75,
        "localized_name": "London",
        "country": {
            "id": "US",
            "localized_name": "United States"
        },
        "administrative_area": {
            "id": "KY",
            "localized_name": "Kentucky"
        }
    },
    {
        "key": "335012",
        "type": "City",
        "rank": 75,
        "localized_name": "London",
        "country": {
            "id": "US",
            "localized_name": "United States"
        },
        "administrative_area": {
            "id": "OH",
            "localized_name": "Ohio"
        }
    }
]
自动补全位置 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43356/autocomplete+locations?query=Lond&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
根据位置键返回地点或根据经纬度返回城市:其名称、类型、排名、地区、国家、行政区域、包含下次时区偏移变更的时区、坐标、海拔、该地点可用的数据集(MinuteCast、预警、空气质量、花粉、雷达……)、人口、气象站代码以及各类数据的来源
Endpoint ID: 43357
GET https://zylalabs.com/api/15821/accuweather+api/43357/get+location+details
输入参数

获取位置详情 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
language
API 示例响应
JSON
{
    "key": "349727",
    "type": "City",
    "rank": 15,
    "localized_name": "New York",
    "english_name": "New York",
    "primary_postal_code": "10021",
    "region": {
        "id": "NAM",
        "localized_name": "North America",
        "english_name": "North America"
    },
    "country": {
        "id": "US",
        "localized_name": "United States",
        "english_name": "United States"
    },
    "administrative_area": {
        "id": "NY",
        "localized_name": "New York",
        "english_name": "New York",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "US"
    },
    "time_zone": {
        "code": "EST",
        "name": "America/New_York",
        "gmt_offset": -5,
        "is_daylight_saving": false,
        "next_offset_change": "2027-03-14T07:00:00Z"
    },
    "geo_position": {
        "latitude": 40.779,
        "longitude": -73.969,
        "elevation": {
            "metric": {
                "value": 8,
                "unit": "m",
                "unit_type": 5
            },
            "imperial": {
                "value": 26,
                "unit": "ft",
                "unit_type": 0
            }
        }
    },
    "is_alias": false,
    "supplemental_admin_areas": [
        {
            "level": 2,
            "localized_name": "New York",
            "english_name": "New York"
        }
    ],
    "data_sets": [
        "AccuWeatherAlerts",
        "ActiveEvents-Lightning",
        "AirQualityCurrentConditions",
        "AirQualityForecasts",
        "Alerts",
        "DailyAirQualityForecast",
        "DailyPollenForecast",
        "ForecastConfidence",
        "ForecastEvents-Hail",
        "ForecastEvents-Lightning",
        "ForecastEvents-Precipitation",
        "FutureRadar",
        "MinuteCast",
        "ProximityNotification-Lightning",
        "Radar",
        "Severe Weather Push Notifications",
        "TidalForecast"
    ],
    "details": {
        "key": "349727",
        "station_code": "NYC",
        "station_gmt_offset": -5,
        "band_map": "USNY",
        "climo": "NYC",
        "local_radar": "KPHL",
        "media_region": "NE",
        "metar": "KNYC",
        "nx_metro": "NYC",
        "nx_state": "NY_",
        "population": 8584629,
        "primary_warning_county_code": "NYC005",
        "primary_warning_zone_code": "NYZ073",
        "satellite": "NY_",
        "synoptic": "72506",
        "marine_station": "ANZ338",
        "marine_station_gmt_offset": -5,
        "video_code": "LGA",
        "location_stem": "us/new-york-ny/10021",
        "dma": {
            "id": "501",
            "english_name": "New York, NY"
        },
        "partner_id": "1",
        "sources": [
            {
                "data_type": "AccuWeatherAlerts",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ActiveEvents-Lightning",
                "source": "AccuWeather Lightning Network",
                "source_id": 86
            },
            {
                "data_type": "AirQualityCurrentConditions",
                "source": "Plume Labs",
                "source_id": 63,
                "partner_source_url": "https://air.plumelabs.com/air-quality-in-new-york-ny-lwb3"
            },
            {
                "data_type": "AirQualityForecasts",
                "source": "Plume Labs",
                "source_id": 63,
                "partner_source_url": "https://air.plumelabs.com/air-quality-in-new-york-ny-lwb3"
            },
            {
                "data_type": "Alerts",
                "source": "U.S. National Weather Service",
                "source_id": 2
            },
            {
                "data_type": "CurrentConditions",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "DailyAirQualityForecast",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "DailyForecast",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "DailyPollenForecast",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ForecastConfidence",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ForecastEvents-Hail",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ForecastEvents-Lightning",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ForecastEvents-Precipitation",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "FutureRadar",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "Historical",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "HourlyForecast",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "MinuteCast",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ProximityNotification-Lightning",
                "source": "AccuWeather Lightning Network",
                "source_id": 86
            },
            {
                "data_type": "Radar",
                "source": "U.S. National Weather Service",
                "source_id": 2
            },
            {
                "data_type": "Severe Weather Push Notifications",
                "source": "U.S. National Weather Service",
                "source_id": 2
            },
            {
                "data_type": "TidalForecast",
                "source": "AccuWeather",
                "source_id": 1
            }
        ],
        "canonical_postal_code": "10021",
        "canonical_location_key": "349727"
    }
}
获取位置详情 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43357/get+location+details?location=349727&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回 IP 地址所在的城市、其位置键以及 /location/details 端点的所有详细信息
Endpoint ID: 43358
GET https://zylalabs.com/api/15821/accuweather+api/43358/get+location+by+ip+address
输入参数

通过 IP 地址获取位置 — 端点功能

对象 描述
ip_address 必需 Public IPv4 or IPv6 address (e.g. "8.8.8.8").
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

ip_address
language
API 示例响应
JSON
{
    "key": "337169",
    "type": "City",
    "rank": 45,
    "localized_name": "Mountain View",
    "english_name": "Mountain View",
    "primary_postal_code": "94041",
    "region": {
        "id": "NAM",
        "localized_name": "North America",
        "english_name": "North America"
    },
    "country": {
        "id": "US",
        "localized_name": "United States",
        "english_name": "United States"
    },
    "administrative_area": {
        "id": "CA",
        "localized_name": "California",
        "english_name": "California",
        "level": 1,
        "localized_type": "State",
        "english_type": "State",
        "country_id": "US"
    },
    "time_zone": {
        "code": "PST",
        "name": "America/Los_Angeles",
        "gmt_offset": -8,
        "is_daylight_saving": false,
        "next_offset_change": "2027-03-14T10:00:00Z"
    },
    "geo_position": {
        "latitude": 37.386,
        "longitude": -122.084,
        "elevation": {
            "metric": {
                "value": 27,
                "unit": "m",
                "unit_type": 5
            },
            "imperial": {
                "value": 88,
                "unit": "ft",
                "unit_type": 0
            }
        }
    },
    "is_alias": false,
    "supplemental_admin_areas": [
        {
            "level": 2,
            "localized_name": "Santa Clara",
            "english_name": "Santa Clara"
        }
    ],
    "data_sets": [
        "AccuWeatherAlerts",
        "ActiveEvents-Lightning",
        "AirQualityCurrentConditions",
        "AirQualityForecasts",
        "Alerts",
        "DailyAirQualityForecast",
        "DailyPollenForecast",
        "ForecastConfidence",
        "ForecastEvents-Hail",
        "ForecastEvents-Lightning",
        "ForecastEvents-Precipitation",
        "FutureRadar",
        "MinuteCast",
        "ProximityNotification-Lightning",
        "Radar",
        "Severe Weather Push Notifications",
        "TidalForecast"
    ],
    "details": {
        "key": "337169",
        "station_code": "CA80",
        "station_gmt_offset": -8,
        "band_map": "USCAC",
        "climo": "NUQ",
        "local_radar": "KSFO",
        "media_region": "SW",
        "metar": "KNUQ",
        "nx_metro": "SFO",
        "nx_state": "CAC",
        "population": 85438,
        "primary_warning_county_code": "CAC085",
        "primary_warning_zone_code": "CAZ508",
        "satellite": "CAC",
        "synoptic": "72494",
        "marine_station": "WCBMAR",
        "marine_station_gmt_offset": -8,
        "video_code": "SFO",
        "location_stem": "us/mountain-view-ca/94041",
        "dma": {
            "id": "807",
            "english_name": "San Francisco-Oakland-San Jose, CA"
        },
        "partner_id": "4",
        "sources": [
            {
                "data_type": "AccuWeatherAlerts",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ActiveEvents-Lightning",
                "source": "AccuWeather Lightning Network",
                "source_id": 86
            },
            {
                "data_type": "AirQualityCurrentConditions",
                "source": "Plume Labs",
                "source_id": 63
            },
            {
                "data_type": "AirQualityForecasts",
                "source": "Plume Labs",
                "source_id": 63
            },
            {
                "data_type": "Alerts",
                "source": "U.S. National Weather Service",
                "source_id": 2
            },
            {
                "data_type": "CurrentConditions",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "DailyAirQualityForecast",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "DailyForecast",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "DailyPollenForecast",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ForecastConfidence",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ForecastEvents-Hail",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ForecastEvents-Lightning",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ForecastEvents-Precipitation",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "FutureRadar",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "Historical",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "HourlyForecast",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "MinuteCast",
                "source": "AccuWeather",
                "source_id": 1
            },
            {
                "data_type": "ProximityNotification-Lightning",
                "source": "AccuWeather Lightning Network",
                "source_id": 86
            },
            {
                "data_type": "Radar",
                "source": "U.S. National Weather Service",
                "source_id": 2
            },
            {
                "data_type": "Severe Weather Push Notifications",
                "source": "U.S. National Weather Service",
                "source_id": 2
            },
            {
                "data_type": "TidalForecast",
                "source": "AccuWeather",
                "source_id": 1
            }
        ],
        "canonical_postal_code": "94041",
        "canonical_location_key": "337169"
    }
}
通过 IP 地址获取位置 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43358/get+location+by+ip+address?ip_address=8.8.8.8&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某个城市周边的城市列表,每个城市都包含其位置键、排名、国家、行政区域、时区和坐标
Endpoint ID: 43359
GET https://zylalabs.com/api/15821/accuweather+api/43359/get+neighboring+cities
输入参数

获取邻近城市 — 端点功能

对象 描述
location 必需 Location key of a city (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
language
API 示例响应
JSON
[
    {
        "key": "2171932",
        "type": "City",
        "rank": 385,
        "localized_name": "Amalgamated Dwellings",
        "english_name": "Amalgamated Dwellings",
        "primary_postal_code": "10002",
        "region": {
            "id": "NAM",
            "localized_name": "North America",
            "english_name": "North America"
        },
        "country": {
            "id": "US",
            "localized_name": "United States",
            "english_name": "United States"
        },
        "administrative_area": {
            "id": "NY",
            "localized_name": "New York",
            "english_name": "New York",
            "level": 1,
            "localized_type": "State",
            "english_type": "State",
            "country_id": "US"
        },
        "time_zone": {
            "code": "EST",
            "name": "America/New_York",
            "gmt_offset": -5,
            "is_daylight_saving": false,
            "next_offset_change": "2027-03-14T07:00:00Z"
        },
        "geo_position": {
            "latitude": 40.715,
            "longitude": -73.983,
            "elevation": {
                "metric": {
                    "value": 7,
                    "unit": "m",
                    "unit_type": 5
                },
                "imperial": {
                    "value": 22,
                    "unit": "ft",
                    "unit_type": 0
                }
            }
        },
        "is_alias": false,
        "supplemental_admin_areas": [
            {
                "level": 2,
                "localized_name": "New York",
                "english_name": "New York"
            }
        ],
        "data_sets": [
            "AccuWeatherAlerts",
            "ActiveEvents-Lightning",
            "AirQualityCurrentConditions",
            "AirQualityForecasts",
            "Alerts",
            "DailyAirQualityForecast",
            "DailyPollenForecast",
            "ForecastConfidence",
            "ForecastEvents-Hail",
            "ForecastEvents-Lightning",
            "ForecastEvents-Precipitation",
            "FutureRadar",
            "MinuteCast",
            "ProximityNotification-Lightning",
            "Radar",
            "Severe Weather Push Notifications",
            "TidalForecast"
        ]
    },
    {
        "key": "2171930",
        "type": "City",
        "rank": 385,
        "localized_name": "East River Houses",
        "english_name": "East River Houses",
        "primary_postal_code": "10002",
        "region": {
            "id": "NAM",
            "localized_name": "North America",
            "english_name": "North America"
        },
        "country": {
            "id": "US",
            "localized_name": "United States",
            "english_name": "United States"
        },
        "administrative_area": {
            "id": "NY",
            "localized_name": "New York",
            "english_name": "New York",
            "level": 1,
            "localized_type": "State",
            "english_type": "State",
            "country_id": "US"
        },
        "time_zone": {
            "code": "EST",
            "name": "America/New_York",
            "gmt_offset": -5,
            "is_daylight_saving": false,
            "next_offset_change": "2027-03-14T07:00:00Z"
        },
        "geo_position": {
            "latitude": 40.713,
            "longitude": -73.979,
            "elevation": {
                "metric": {
                    "value": 7,
                    "unit": "m",
                    "unit_type": 5
                },
                "imperial": {
                    "value": 22,
                    "unit": "ft",
                    "unit_type": 0
                }
            }
        },
        "is_alias": false,
        "supplemental_admin_areas": [
            {
                "level": 2,
                "localized_name": "New York",
                "english_name": "New York"
            }
        ],
        "data_sets": [
            "AccuWeatherAlerts",
            "ActiveEvents-Lightning",
            "AirQualityCurrentConditions",
            "AirQualityForecasts",
            "Alerts",
            "DailyAirQualityForecast",
            "DailyPollenForecast",
            "ForecastConfidence",
            "ForecastEvents-Hail",
            "ForecastEvents-Lightning",
            "ForecastEvents-Precipitation",
            "FutureRadar",
            "MinuteCast",
            "ProximityNotification-Lightning",
            "Radar",
            "Severe Weather Push Notifications",
            "TidalForecast"
        ]
    }
]
获取邻近城市 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43359/get+neighboring+cities?location=349727&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回全球最大的50座、100座或150座城市,每座城市均包含其位置键、国家、行政区、时区和坐标
Endpoint ID: 43360
GET https://zylalabs.com/api/15821/accuweather+api/43360/get+top+cities
输入参数

获取热门城市 — 端点功能

对象 描述
count 可选 Optional number of cities: 50, 100 or 150 (defaults to 50).
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

count
language
API 示例响应
JSON
[
    {
        "key": "28143",
        "type": "City",
        "rank": 10,
        "localized_name": "Dhaka",
        "english_name": "Dhaka",
        "primary_postal_code": null,
        "region": {
            "id": "ASI",
            "localized_name": "Asia",
            "english_name": "Asia"
        },
        "country": {
            "id": "BD",
            "localized_name": "Bangladesh",
            "english_name": "Bangladesh"
        },
        "administrative_area": {
            "id": "C",
            "localized_name": "Dhaka",
            "english_name": "Dhaka",
            "level": 1,
            "localized_type": "Division",
            "english_type": "Division",
            "country_id": "BD"
        },
        "time_zone": {
            "code": "BDT",
            "name": "Asia/Dhaka",
            "gmt_offset": 6,
            "is_daylight_saving": false,
            "next_offset_change": null
        },
        "geo_position": {
            "latitude": 23.71,
            "longitude": 90.407,
            "elevation": {
                "metric": {
                    "value": 5,
                    "unit": "m",
                    "unit_type": 5
                },
                "imperial": {
                    "value": 16,
                    "unit": "ft",
                    "unit_type": 0
                }
            }
        },
        "is_alias": false,
        "supplemental_admin_areas": [],
        "data_sets": [
            "AirQualityCurrentConditions",
            "AirQualityForecasts",
            "FutureRadar",
            "MinuteCast"
        ]
    },
    {
        "key": "113487",
        "type": "City",
        "rank": 10,
        "localized_name": "Kinshasa",
        "english_name": "Kinshasa",
        "primary_postal_code": null,
        "region": {
            "id": "AFR",
            "localized_name": "Africa",
            "english_name": "Africa"
        },
        "country": {
            "id": "CD",
            "localized_name": "Democratic Republic of the Congo",
            "english_name": "Democratic Republic of the Congo"
        },
        "administrative_area": {
            "id": "KN",
            "localized_name": "Kinshasa",
            "english_name": "Kinshasa",
            "level": 1,
            "localized_type": "City",
            "english_type": "City",
            "country_id": "CD"
        },
        "time_zone": {
            "code": "WAT",
            "name": "Africa/Kinshasa",
            "gmt_offset": 1,
            "is_daylight_saving": false,
            "next_offset_change": null
        },
        "geo_position": {
            "latitude": -4.316,
            "longitude": 15.298,
            "elevation": {
                "metric": {
                    "value": 180,
                    "unit": "m",
                    "unit_type": 5
                },
                "imperial": {
                    "value": 590,
                    "unit": "ft",
                    "unit_type": 0
                }
            }
        },
        "is_alias": false,
        "supplemental_admin_areas": [],
        "data_sets": [
            "AirQualityCurrentConditions",
            "AirQualityForecasts",
            "MinuteCast"
        ]
    },
    {
        "key": "60449",
        "type": "City",
        "rank": 10,
        "localized_name": "Santiago",
        "english_name": "Santiago",
        "primary_postal_code": null,
        "region": {
            "id": "SAM",
            "localized_name": "South America",
            "english_name": "South America"
        },
        "country": {
            "id": "CL",
            "localized_name": "Chile",
            "english_name": "Chile"
        },
        "administrative_area": {
            "id": "RM",
            "localized_name": "Región Metropolitana de Santiago",
            "english_name": "Región Metropolitana de Santiago",
            "level": 1,
            "localized_type": "Region",
            "english_type": "Region",
            "country_id": "CL"
        },
        "time_zone": {
            "code": "CLST",
            "name": "America/Santiago",
            "gmt_offset": -3,
            "is_daylight_saving": true,
            "next_offset_change": null
        },
        "geo_position": {
            "latitude": -33.446,
            "longitude": -70.659,
            "elevation": {
                "metric": {
                    "value": 522,
                    "unit": "m",
                    "unit_type": 5
                },
                "imperial": {
                    "value": 1712,
                    "unit": "ft",
                    "unit_type": 0
                }
            }
        },
        "is_alias": false,
        "supplemental_admin_areas": [
            {
                "level": 2,
                "localized_name": "Santiago",
                "english_name": "Santiago"
            }
        ],
        "data_sets": [
            "AirQualityCurrentConditions",
            "AirQualityForecasts",
            "FutureRadar",
            "MinuteCast",
            "Radar"
        ]
    }
]
获取热门城市 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43360/get+top+cities?count=50&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某一年所有海盆或单个海盆中的每场热带风暴,并列出其风暴编号、名称、海盆、序号以及其是否处于活跃状态(当前正在追踪)、已退役或为亚热带风暴
Endpoint ID: 43361
GET https://zylalabs.com/api/15821/accuweather+api/43361/get+storms+of+a+year
输入参数

获得一年的风暴 — 端点功能

对象 描述
year 可选 Optional year from 1950 on (defaults to the current year).
basin 可选 Optional basin: "AL", "EP", "CP", "NP", "NI", "SI" or "SP". Use the /general/tropical-basins endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

year
basin
API 示例响应
JSON
[
    {
        "storm_id": "AL012025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 1,
        "name": "Andrea",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 1,
        "atcf_id": 1,
        "gov_id": 1
    },
    {
        "storm_id": "AL022025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 2,
        "name": "Barry",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 2,
        "atcf_id": 2,
        "gov_id": 2
    },
    {
        "storm_id": "AL032025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 3,
        "name": "Chantal",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 3,
        "atcf_id": 3,
        "gov_id": 3
    },
    {
        "storm_id": "AL042025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 4,
        "name": "Dexter",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 5,
        "atcf_id": 4,
        "gov_id": 4
    },
    {
        "storm_id": "AL052025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 5,
        "name": "Erin",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 6,
        "atcf_id": 5,
        "gov_id": 5
    },
    {
        "storm_id": "AL062025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 6,
        "name": "Fernand",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 8,
        "atcf_id": 6,
        "gov_id": 6
    },
    {
        "storm_id": "AL072025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 7,
        "name": "Gabrielle",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 10,
        "atcf_id": 7,
        "gov_id": 7
    },
    {
        "storm_id": "AL082025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 8,
        "name": "HUMBERTO",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 11,
        "atcf_id": 8,
        "gov_id": 8
    },
    {
        "storm_id": "AL092025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 9,
        "name": "Imelda",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 13,
        "atcf_id": 9,
        "gov_id": 9
    },
    {
        "storm_id": "AL102025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 10,
        "name": "Jerry",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 14,
        "atcf_id": 10,
        "gov_id": 10
    },
    {
        "storm_id": "AL112025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 11,
        "name": "Karen",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 16,
        "atcf_id": 11,
        "gov_id": 11
    },
    {
        "storm_id": "AL122025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 12,
        "name": "Lorenzo",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 17,
        "atcf_id": 12,
        "gov_id": 12
    },
    {
        "storm_id": "AL132025",
        "year": 2025,
        "basin_id": "AL",
        "depression_number": 13,
        "name": "Melissa",
        "is_active": false,
        "is_retired": false,
        "is_subtropical": false,
        "accu_id": 18,
        "atcf_id": 13,
        "gov_id": 13
    }
]
获得一年的风暴 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43361/get+storms+of+a+year?year=2025&basin=AL' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回一场热带风暴及其名称、海盆、编号和状态,以及其最新位置:坐标、状态、等级、最大持续风速和阵风、最低气压、移动方向和速度,以及其最近的地标
Endpoint ID: 43362
GET https://zylalabs.com/api/15821/accuweather+api/43362/get+storm+details
输入参数

获取风暴详情 — 端点功能

对象 描述
storm_id 必需 Storm id (e.g. "AL092025"). Use the /tropical/storms endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

storm_id
language
API 示例响应
JSON
{
    "storm_id": "AL092025",
    "year": 2025,
    "basin_id": "AL",
    "depression_number": 9,
    "name": "Imelda",
    "is_active": false,
    "is_retired": false,
    "is_subtropical": false,
    "accu_id": 13,
    "atcf_id": 9,
    "gov_id": 9,
    "current_position": {
        "valid_date_time": "2025-10-02T15:00:00+00:00",
        "valid_epoch_date_time": 1759417200,
        "position": {
            "latitude": 33.2,
            "longitude": -59.5
        },
        "max_wind_gust": {
            "metric": {
                "value": 148.2,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 92,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "sustained_wind": {
            "metric": {
                "value": 120.4,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 75,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "minimum_pressure": {
            "metric": {
                "value": 980,
                "unit": "mb",
                "unit_type": 14
            },
            "imperial": {
                "value": 28.94,
                "unit": "inHg",
                "unit_type": 12
            }
        },
        "movement": {
            "direction": {
                "degrees": 75,
                "localized": "ENE",
                "english": "ENE"
            },
            "speed": {
                "metric": {
                    "value": 46.3,
                    "unit": "km/h",
                    "unit_type": 7
                },
                "imperial": {
                    "value": 29,
                    "unit": "mi/h",
                    "unit_type": 9
                }
            }
        },
        "status": "Post-Tropical Cyclone",
        "localized_status": "Post-Tropical Cyclone",
        "is_subtropical": null,
        "has_tropical_potential": false,
        "is_post_tropical": true,
        "landmark_references": [
            {
                "landmark": "BERMUDA",
                "direction": {
                    "degrees": 67,
                    "english": "ENE"
                },
                "range": {
                    "metric": {
                        "value": 506.9,
                        "unit": "km",
                        "unit_type": 6
                    },
                    "imperial": {
                        "value": 315,
                        "unit": "mi",
                        "unit_type": 2
                    }
                }
            }
        ],
        "wind_radii_summary": [
            {
                "valid_date_time": "2025-10-02T15:00:00+00:00",
                "valid_epoch_date_time": 1759417200,
                "wind_speed": {
                    "metric": {
                        "value": 63,
                        "unit": "km/h",
                        "unit_type": 7
                    },
                    "imperial": {
                        "value": 39,
                        "unit": "mi/h",
                        "unit_type": 9
                    }
                },
                "radius_sector_data": [
                    {
                        "begin_bearing": 0,
                        "end_bearing": 90,
                        "range": 120
                    },
                    {
                        "begin_bearing": 90,
                        "end_bearing": 180,
                        "range": 240
                    },
                    {
                        "begin_bearing": 180,
                        "end_bearing": 270,
                        "range": 180
                    },
                    {
                        "begin_bearing": 270,
                        "end_bearing": 360,
                        "range": 270
                    }
                ]
            },
            {
                "valid_date_time": "2025-10-02T15:00:00+00:00",
                "valid_epoch_date_time": 1759417200,
                "wind_speed": {
                    "metric": {
                        "value": 118.5,
                        "unit": "km/h",
                        "unit_type": 7
                    },
                    "imperial": {
                        "value": 74,
                        "unit": "mi/h",
                        "unit_type": 9
                    }
                },
                "radius_sector_data": [
                    {
                        "begin_bearing": 0,
                        "end_bearing": 90,
                        "range": 0
                    },
                    {
                        "begin_bearing": 90,
                        "end_bearing": 180,
                        "range": 0
                    },
                    {
                        "begin_bearing": 180,
                        "end_bearing": 270,
                        "range": 40
                    },
                    {
                        "begin_bearing": 270,
                        "end_bearing": 360,
                        "range": 40
                    }
                ]
            }
        ]
    }
}
获取风暴详情 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43362/get+storm+details?storm_id=AL092025&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回热带风暴的路径:其每个观测位置及对应时间、坐标、状态、级别、最大持续风速和阵风、最低气压和移动情况
Endpoint ID: 43363
GET https://zylalabs.com/api/15821/accuweather+api/43363/get+storm+positions
输入参数

获取风暴位置 — 端点功能

对象 描述
storm_id 必需 Storm id (e.g. "AL092025"). Use the /tropical/storms endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

storm_id
API 示例响应
JSON
[
    {
        "valid_date_time": "2025-10-02T15:00:00+00:00",
        "valid_epoch_date_time": 1759417200,
        "position": {
            "latitude": 33.2,
            "longitude": -59.5
        },
        "max_wind_gust": {
            "metric": {
                "value": 148.2,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 92,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "sustained_wind": {
            "metric": {
                "value": 120.4,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 75,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "minimum_pressure": {
            "metric": {
                "value": 980,
                "unit": "mb",
                "unit_type": 14
            },
            "imperial": {
                "value": 28.94,
                "unit": "inHg",
                "unit_type": 12
            }
        },
        "movement": {
            "direction": {
                "degrees": 75,
                "localized": "ENE",
                "english": "ENE"
            },
            "speed": {
                "metric": {
                    "value": 46.3,
                    "unit": "km/h",
                    "unit_type": 7
                },
                "imperial": {
                    "value": 29,
                    "unit": "mi/h",
                    "unit_type": 9
                }
            }
        },
        "status": "Post-Tropical Cyclone",
        "localized_status": "Post-Tropical Cyclone",
        "is_subtropical": false,
        "has_tropical_potential": false,
        "is_post_tropical": true,
        "landmark_references": [
            {
                "landmark": "BERMUDA",
                "direction": {
                    "degrees": 67,
                    "english": "ENE"
                },
                "range": {
                    "metric": {
                        "value": 506.9,
                        "unit": "km",
                        "unit_type": 6
                    },
                    "imperial": {
                        "value": 315,
                        "unit": "mi",
                        "unit_type": 2
                    }
                }
            }
        ],
        "wind_radii_summary": [
            {
                "valid_date_time": "2025-10-02T15:00:00+00:00",
                "valid_epoch_date_time": 1759417200,
                "wind_speed": {
                    "metric": {
                        "value": 63,
                        "unit": "km/h",
                        "unit_type": 7
                    },
                    "imperial": {
                        "value": 39,
                        "unit": "mi/h",
                        "unit_type": 9
                    }
                },
                "radius_sector_data": [
                    {
                        "begin_bearing": 0,
                        "end_bearing": 90,
                        "range": 120
                    },
                    {
                        "begin_bearing": 90,
                        "end_bearing": 180,
                        "range": 240
                    },
                    {
                        "begin_bearing": 180,
                        "end_bearing": 270,
                        "range": 180
                    },
                    {
                        "begin_bearing": 270,
                        "end_bearing": 360,
                        "range": 270
                    }
                ]
            },
            {
                "valid_date_time": "2025-10-02T15:00:00+00:00",
                "valid_epoch_date_time": 1759417200,
                "wind_speed": {
                    "metric": {
                        "value": 118.5,
                        "unit": "km/h",
                        "unit_type": 7
                    },
                    "imperial": {
                        "value": 74,
                        "unit": "mi/h",
                        "unit_type": 9
                    }
                },
                "radius_sector_data": [
                    {
                        "begin_bearing": 0,
                        "end_bearing": 90,
                        "range": 0
                    },
                    {
                        "begin_bearing": 90,
                        "end_bearing": 180,
                        "range": 0
                    },
                    {
                        "begin_bearing": 180,
                        "end_bearing": 270,
                        "range": 40
                    },
                    {
                        "begin_bearing": 270,
                        "end_bearing": 360,
                        "range": 40
                    }
                ]
            }
        ]
    },
    {
        "valid_date_time": "2025-10-02T12:00:00+00:00",
        "valid_epoch_date_time": 1759406400,
        "position": {
            "latitude": 32.9,
            "longitude": -60.9
        },
        "max_wind_gust": null,
        "sustained_wind": {
            "metric": {
                "value": 129.6,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 81,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "minimum_pressure": {
            "metric": {
                "value": 979,
                "unit": "mb",
                "unit_type": 14
            },
            "imperial": {
                "value": 28.91,
                "unit": "inHg",
                "unit_type": 12
            }
        },
        "movement": {
            "direction": {
                "degrees": 75,
                "localized": "ENE",
                "english": "ENE"
            },
            "speed": {
                "metric": {
                    "value": 48.2,
                    "unit": "km/h",
                    "unit_type": 7
                },
                "imperial": {
                    "value": 30,
                    "unit": "mi/h",
                    "unit_type": 9
                }
            }
        },
        "status": "Hurricane - Category 1",
        "localized_status": "Hurricane - Category 1",
        "is_subtropical": false,
        "has_tropical_potential": false,
        "is_post_tropical": false,
        "landmark_references": [
            {
                "landmark": "BERMUDA",
                "direction": {
                    "degrees": 90,
                    "english": "E"
                },
                "range": {
                    "metric": {
                        "value": 370.1,
                        "unit": "km",
                        "unit_type": 6
                    },
                    "imperial": {
                        "value": 230,
                        "unit": "mi",
                        "unit_type": 2
                    }
                }
            }
        ]
    }
]
获取风暴位置 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43363/get+storm+positions?storm_id=AL092025' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回热带风暴的预报路径:每个预报位置及其时间、坐标、状态、等级、最大持续风速和阵风以及不确定性范围
Endpoint ID: 43364
GET https://zylalabs.com/api/15821/accuweather+api/43364/get+storm+forecast
输入参数

获取风暴预报 — 端点功能

对象 描述
storm_id 必需 Storm id (e.g. "AL092025"). Use the /tropical/storms endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

storm_id
language
API 示例响应
JSON
[
    {
        "valid_date_time": "2025-10-03T00:00:00+00:00",
        "valid_epoch_date_time": 1759449600,
        "initialized_date_time": "2025-10-02T15:00:00+00:00",
        "epoch_initialized_date_time": 1759417200,
        "position": {
            "latitude": 34.3,
            "longitude": -55
        },
        "max_wind_gust": {
            "metric": {
                "value": 148.2,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 92,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "sustained_wind": {
            "metric": {
                "value": 120.4,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 75,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "status": "Hurricane - Category 1",
        "localized_status": "Hurricane - Category 1",
        "window": {
            "left": {
                "latitude": 34.65997,
                "longitude": -55.13847
            },
            "right": {
                "latitude": 33.93988,
                "longitude": -54.86153
            }
        },
        "wind_radii_summary": [
            {
                "valid_date_time": "2025-10-03T00:00:00+00:00",
                "valid_epoch_date_time": 1759449600,
                "wind_speed": {
                    "metric": {
                        "value": 63,
                        "unit": "km/h",
                        "unit_type": 7
                    },
                    "imperial": {
                        "value": 39,
                        "unit": "mi/h",
                        "unit_type": 9
                    }
                },
                "radius_sector_data": [
                    {
                        "begin_bearing": 0,
                        "end_bearing": 90,
                        "range": 180
                    },
                    {
                        "begin_bearing": 90,
                        "end_bearing": 180,
                        "range": 240
                    },
                    {
                        "begin_bearing": 180,
                        "end_bearing": 270,
                        "range": 170
                    },
                    {
                        "begin_bearing": 270,
                        "end_bearing": 360,
                        "range": 270
                    }
                ]
            },
            {
                "valid_date_time": "2025-10-03T00:00:00+00:00",
                "valid_epoch_date_time": 1759449600,
                "wind_speed": {
                    "metric": {
                        "value": 118.5,
                        "unit": "km/h",
                        "unit_type": 7
                    },
                    "imperial": {
                        "value": 74,
                        "unit": "mi/h",
                        "unit_type": 9
                    }
                },
                "radius_sector_data": [
                    {
                        "begin_bearing": 0,
                        "end_bearing": 90,
                        "range": 0
                    },
                    {
                        "begin_bearing": 90,
                        "end_bearing": 180,
                        "range": 0
                    },
                    {
                        "begin_bearing": 180,
                        "end_bearing": 270,
                        "range": 20
                    },
                    {
                        "begin_bearing": 270,
                        "end_bearing": 360,
                        "range": 30
                    }
                ]
            }
        ]
    },
    {
        "valid_date_time": "2025-10-03T12:00:00+00:00",
        "valid_epoch_date_time": 1759492800,
        "initialized_date_time": "2025-10-02T15:00:00+00:00",
        "epoch_initialized_date_time": 1759417200,
        "position": {
            "latitude": 36.3,
            "longitude": -51.4
        },
        "max_wind_gust": {
            "metric": {
                "value": 138.9,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 86,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "sustained_wind": {
            "metric": {
                "value": 111.1,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 69,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "status": "Tropical Storm",
        "localized_status": "Tropical Storm",
        "window": {
            "left": {
                "latitude": 36.80602,
                "longitude": -51.84486
            },
            "right": {
                "latitude": 35.79234,
                "longitude": -50.95515
            }
        },
        "wind_radii_summary": [
            {
                "valid_date_time": "2025-10-03T12:00:00+00:00",
                "valid_epoch_date_time": 1759492800,
                "wind_speed": {
                    "metric": {
                        "value": 63,
                        "unit": "km/h",
                        "unit_type": 7
                    },
                    "imperial": {
                        "value": 39,
                        "unit": "mi/h",
                        "unit_type": 9
                    }
                },
                "radius_sector_data": [
                    {
                        "begin_bearing": 0,
                        "end_bearing": 90,
                        "range": 240
                    },
                    {
                        "begin_bearing": 90,
                        "end_bearing": 180,
                        "range": 220
                    },
                    {
                        "begin_bearing": 180,
                        "end_bearing": 270,
                        "range": 200
                    },
                    {
                        "begin_bearing": 270,
                        "end_bearing": 360,
                        "range": 270
                    }
                ]
            }
        ]
    },
    {
        "valid_date_time": "2025-10-04T00:00:00+00:00",
        "valid_epoch_date_time": 1759536000,
        "initialized_date_time": "2025-10-02T15:00:00+00:00",
        "epoch_initialized_date_time": 1759417200,
        "position": {
            "latitude": 38.9,
            "longitude": -49.1
        },
        "max_wind_gust": {
            "metric": {
                "value": 138.9,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 86,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "sustained_wind": {
            "metric": {
                "value": 111.1,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 69,
                "unit": "mi/h",
                "unit_type": 9
            }
        },
        "status": "Tropical Storm",
        "localized_status": "Tropical Storm",
        "window": {
            "left": {
                "latitude": 39.38049,
                "longitude": -50.0108
            },
            "right": {
                "latitude": 38.41244,
                "longitude": -48.1892
            }
        },
        "wind_radii_summary": [
            {
                "valid_date_time": "2025-10-04T00:00:00+00:00",
                "valid_epoch_date_time": 1759536000,
                "wind_speed": {
                    "metric": {
                        "value": 63,
                        "unit": "km/h",
                        "unit_type": 7
                    },
                    "imperial": {
                        "value": 39,
                        "unit": "mi/h",
                        "unit_type": 9
                    }
                },
                "radius_sector_data": [
                    {
                        "begin_bearing": 0,
                        "end_bearing": 90,
                        "range": 240
                    },
                    {
                        "begin_bearing": 90,
                        "end_bearing": 180,
                        "range": 220
                    },
                    {
                        "begin_bearing": 180,
                        "end_bearing": 270,
                        "range": 210
                    },
                    {
                        "begin_bearing": 270,
                        "end_bearing": 360,
                        "range": 250
                    }
                ]
            }
        ]
    }
]
获取风暴预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43364/get+storm+forecast?storm_id=AL092025&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
以公制和英制单位返回某地当前天气:天气文字和图标、降水量、温度、阳光下和阴影处的体感温度 RealFeel®、湿度、露点、风速和阵风、紫外线指数、能见度、云量、云底高度、气压及其变化趋势、体感温度、风寒温度和湿球温度、与昨天相比的温度变化、过去 1 到 24 小时的降水量以及过去 6 到 24 小时的温度范围
Endpoint ID: 43365
GET https://zylalabs.com/api/15821/accuweather+api/43365/get+current+conditions
输入参数

获取当前状况 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
language
API 示例响应
JSON
{
    "local_observation_date_time": "2026-12-01T02:53:00-05:00",
    "epoch_time": 1796111580,
    "weather_text": "Mostly cloudy",
    "weather_icon": 38,
    "has_precipitation": false,
    "precipitation_type": null,
    "is_day_time": false,
    "temperature": {
        "metric": {
            "value": 6.1,
            "unit": "C",
            "unit_type": 17
        },
        "imperial": {
            "value": 43,
            "unit": "F",
            "unit_type": 18
        }
    },
    "real_feel_temperature": {
        "metric": {
            "value": 4.3,
            "unit": "C",
            "unit_type": 17,
            "phrase": "Chilly"
        },
        "imperial": {
            "value": 40,
            "unit": "F",
            "unit_type": 18,
            "phrase": "Chilly"
        }
    },
    "real_feel_temperature_shade": {
        "metric": {
            "value": 4.3,
            "unit": "C",
            "unit_type": 17,
            "phrase": "Chilly"
        },
        "imperial": {
            "value": 40,
            "unit": "F",
            "unit_type": 18,
            "phrase": "Chilly"
        }
    },
    "relative_humidity": 48,
    "indoor_relative_humidity": 34,
    "dew_point": {
        "metric": {
            "value": -3.9,
            "unit": "C",
            "unit_type": 17
        },
        "imperial": {
            "value": 25,
            "unit": "F",
            "unit_type": 18
        }
    },
    "wind": {
        "direction": {
            "degrees": 293,
            "localized": "WNW",
            "english": "WNW"
        },
        "speed": {
            "metric": {
                "value": 10.2,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 6.3,
                "unit": "mi/h",
                "unit_type": 9
            }
        }
    },
    "wind_gust": {
        "speed": {
            "metric": {
                "value": 10.2,
                "unit": "km/h",
                "unit_type": 7
            },
            "imperial": {
                "value": 6.3,
                "unit": "mi/h",
                "unit_type": 9
            }
        }
    },
    "uv_index": 0,
    "uv_index_float": 0
}
获取当前状况 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43365/get+current+conditions?location=349727&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地点过去24小时的逐小时观测数据,按时间从新到旧排序,每条数据都包含 /weather/current 端点的所有字段
Endpoint ID: 43366
GET https://zylalabs.com/api/15821/accuweather+api/43366/get+past+24+hours+conditions
输入参数

过去24小时的情况 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
language
API 示例响应
JSON
[
    {
        "local_observation_date_time": "2026-12-01T01:58:00-05:00",
        "epoch_time": 1796108280,
        "weather_text": "Mostly cloudy",
        "weather_icon": 38,
        "has_precipitation": false,
        "precipitation_type": null,
        "is_day_time": false,
        "temperature": {
            "metric": {
                "value": 6.1,
                "unit": "C",
                "unit_type": 17
            },
            "imperial": {
                "value": 43,
                "unit": "F",
                "unit_type": 18
            }
        },
        "real_feel_temperature": {
            "metric": {
                "value": 3.4,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Cold"
            },
            "imperial": {
                "value": 38,
                "unit": "F",
                "unit_type": 18,
                "phrase": "Cold"
            }
        },
        "real_feel_temperature_shade": {
            "metric": {
                "value": 3.4,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Cold"
            },
            "imperial": {
                "value": 38,
                "unit": "F",
                "unit_type": 18,
                "phrase": "Cold"
            }
        },
        "relative_humidity": 51,
        "indoor_relative_humidity": 35,
        "dew_point": {
            "metric": {
                "value": -3.3,
                "unit": "C",
                "unit_type": 17
            },
            "imperial": {
                "value": 26,
                "unit": "F",
                "unit_type": 18
            }
        },
        "wind": {
            "direction": {
                "degrees": 293,
                "localized": "WNW",
                "english": "WNW"
            },
            "speed": {
                "metric": {
                    "value": 12.4,
                    "unit": "km/h",
                    "unit_type": 7
                },
                "imperial": {
                    "value": 7.7,
                    "unit": "mi/h",
                    "unit_type": 9
                }
            }
        },
        "wind_gust": {
            "speed": {
                "metric": {
                    "value": 12.4,
                    "unit": "km/h",
                    "unit_type": 7
                },
                "imperial": {
                    "value": 7.7,
                    "unit": "mi/h",
                    "unit_type": 9
                }
            }
        },
        "uv_index": 0,
        "uv_index_float": 0
    }
]
过去24小时的情况 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43366/get+past+24+hours+conditions?location=349727&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
一次性返回全球规模最大的50、100或150个城市的当前天气:每个城市的地点密钥、国家、时区和坐标,以及天气描述和图标、降水情况、昼夜状态和温度
Endpoint ID: 43367
GET https://zylalabs.com/api/15821/accuweather+api/43367/get+current+conditions+of+top+cities
输入参数

获取主要城市的当前天气状况 — 端点功能

对象 描述
count 可选 Optional number of cities: 50, 100 or 150 (defaults to 50).
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

count
language
API 示例响应
JSON
[
    {
        "key": "28143",
        "localized_name": "Dhaka",
        "english_name": "Dhaka",
        "country": {
            "id": "BD",
            "localized_name": "Bangladesh",
            "english_name": "Bangladesh"
        },
        "time_zone": {
            "code": "BDT",
            "name": "Asia/Dhaka",
            "gmt_offset": 6,
            "is_daylight_saving": false,
            "next_offset_change": null
        },
        "geo_position": {
            "latitude": 23.7098,
            "longitude": 90.40711,
            "elevation": {
                "metric": {
                    "value": 5,
                    "unit": "m",
                    "unit_type": 5
                },
                "imperial": {
                    "value": 16,
                    "unit": "ft",
                    "unit_type": 0
                }
            }
        },
        "local_observation_date_time": "2026-12-01T14:03:00+06:00",
        "epoch_time": 1796112180,
        "weather_text": "Sunny",
        "weather_icon": 1,
        "has_precipitation": false,
        "precipitation_type": null,
        "is_day_time": true,
        "temperature": {
            "metric": {
                "value": 29.4,
                "unit": "C",
                "unit_type": 17
            },
            "imperial": {
                "value": 85,
                "unit": "F",
                "unit_type": 18
            }
        },
        "link": "http://www.accuweather.com/en/bd/dhaka/28143/current-weather/28143?lang=en-us"
    },
    {
        "key": "113487",
        "localized_name": "Kinshasa",
        "english_name": "Kinshasa",
        "country": {
            "id": "CD",
            "localized_name": "Democratic Republic of the Congo",
            "english_name": "Democratic Republic of the Congo"
        },
        "time_zone": {
            "code": "WAT",
            "name": "Africa/Kinshasa",
            "gmt_offset": 1,
            "is_daylight_saving": false,
            "next_offset_change": null
        },
        "geo_position": {
            "latitude": -4.31642,
            "longitude": 15.29834,
            "elevation": {
                "metric": {
                    "value": 180,
                    "unit": "m",
                    "unit_type": 5
                },
                "imperial": {
                    "value": 590,
                    "unit": "ft",
                    "unit_type": 0
                }
            }
        },
        "local_observation_date_time": "2026-12-01T08:56:00+01:00",
        "epoch_time": 1796111760,
        "weather_text": "Mostly cloudy",
        "weather_icon": 6,
        "has_precipitation": false,
        "precipitation_type": null,
        "is_day_time": true,
        "temperature": {
            "metric": {
                "value": 26.6,
                "unit": "C",
                "unit_type": 17
            },
            "imperial": {
                "value": 80,
                "unit": "F",
                "unit_type": 18
            }
        },
        "link": "http://www.accuweather.com/en/cd/kinshasa/113487/current-weather/113487?lang=en-us"
    },
    {
        "key": "60449",
        "localized_name": "Santiago",
        "english_name": "Santiago",
        "country": {
            "id": "CL",
            "localized_name": "Chile",
            "english_name": "Chile"
        },
        "time_zone": {
            "code": "CLST",
            "name": "America/Santiago",
            "gmt_offset": -3,
            "is_daylight_saving": true,
            "next_offset_change": null
        },
        "geo_position": {
            "latitude": -33.44643,
            "longitude": -70.65901,
            "elevation": {
                "metric": {
                    "value": 522,
                    "unit": "m",
                    "unit_type": 5
                },
                "imperial": {
                    "value": 1712,
                    "unit": "ft",
                    "unit_type": 0
                }
            }
        },
        "local_observation_date_time": "2026-12-01T04:55:00-03:00",
        "epoch_time": 1796111700,
        "weather_text": "Mostly clear",
        "weather_icon": 34,
        "has_precipitation": false,
        "precipitation_type": null,
        "is_day_time": false,
        "temperature": {
            "metric": {
                "value": 14.8,
                "unit": "C",
                "unit_type": 17
            },
            "imperial": {
                "value": 59,
                "unit": "F",
                "unit_type": 18
            }
        },
        "link": "http://www.accuweather.com/en/cl/santiago/60449/current-weather/60449?lang=en-us"
    }
]
获取主要城市的当前天气状况 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43367/get+current+conditions+of+top+cities?count=50&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地点最多 90 天的每日天气预报:该时段的标题,以及每天的日出日落和月升月落时间与月相、最低和最高气温、阳光下和阴凉处的 RealFeel® 体感温度、日照时长、度日数、空气质量和花粉情况(草、霉菌、豚草、树木、紫外线),以及白天和夜间的天气图标、简短和详细描述、降水、雷暴、雨、雪和冰的概率与量、降水时长、风速和阵风、云量、湿度、蒸散量和太阳辐照度
Endpoint ID: 43368
GET https://zylalabs.com/api/15821/accuweather+api/43368/get+daily+forecast
输入参数

获取每日天气预报 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
days 可选 Optional number of days: 1, 5, 10, 15, 25, 45 or 90 (defaults to 15).
units 可选 Optional units: "metric" or "imperial" (defaults to "metric"). Use the /general/units endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
days
units
language
API 示例响应
JSON
{
    "headline": {
        "effective_date": "2026-12-01T07:00:00-05:00",
        "effective_epoch_date": 1796126400,
        "severity": 1,
        "text": "Dry and nice to start the month of December this week",
        "category": "special",
        "end_date": "2026-12-05T07:00:00-05:00",
        "end_epoch_date": 1796472000,
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/daily-weather-forecast/349727?unit=c&lang=en-us"
    }
}
获取每日天气预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43368/get+daily+forecast?location=349727&days=15&units=metric&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地最长 240 小时(10 天)的逐小时预报:每小时的图标和描述、白天或夜间、温度、阳光下和阴凉处的 RealFeel® 体感温度、湿球温度和露点温度、风速和阵风、湿度、能见度、云底高度、紫外线指数、降水、雷暴、雨、雪和冰的概率及数量,以及云量
Endpoint ID: 43369
GET https://zylalabs.com/api/15821/accuweather+api/43369/get+hourly+forecast
输入参数

获取每小时预报 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
hours 可选 Optional number of hours: 1, 12, 24, 72, 120 or 240 (defaults to 24).
units 可选 Optional units: "metric" or "imperial" (defaults to "metric"). Use the /general/units endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
hours
units
language
API 示例响应
JSON
[
    {
        "date_time": "2026-12-01T04:00:00-05:00",
        "epoch_date_time": 1796115600,
        "weather_icon": 33,
        "icon_phrase": "Clear",
        "has_precipitation": false,
        "is_daylight": false,
        "temperature": {
            "value": 7.8,
            "unit": "C",
            "unit_type": 17
        },
        "real_feel_temperature": {
            "value": 2.8,
            "unit": "C",
            "unit_type": 17,
            "phrase": "Cold"
        },
        "real_feel_temperature_shade": {
            "value": 2.8,
            "unit": "C",
            "unit_type": 17,
            "phrase": "Cold"
        },
        "wet_bulb_temperature": {
            "value": 3.3,
            "unit": "C",
            "unit_type": 17
        },
        "wet_bulb_globe_temperature": {
            "value": 7.8,
            "unit": "C",
            "unit_type": 17
        },
        "dew_point": {
            "value": -3.3,
            "unit": "C",
            "unit_type": 17
        },
        "wind": {
            "speed": {
                "value": 22.5,
                "unit": "km/h",
                "unit_type": 7
            },
            "direction": {
                "degrees": 309,
                "localized": "NW",
                "english": "NW"
            }
        },
        "wind_gust": {
            "speed": {
                "value": 32.2,
                "unit": "km/h",
                "unit_type": 7
            },
            "direction": {
                "degrees": 309,
                "localized": "NW",
                "english": "NW"
            }
        },
        "relative_humidity": 45,
        "indoor_relative_humidity": 35,
        "visibility": {
            "value": 16.1,
            "unit": "km",
            "unit_type": 6
        },
        "ceiling": {
            "value": 12192,
            "unit": "m",
            "unit_type": 5
        },
        "uv_index": 0,
        "uv_index_float": 0,
        "uv_index_text": "Low",
        "precipitation_probability": 0,
        "thunderstorm_probability": 0,
        "rain_probability": 0,
        "snow_probability": 0,
        "ice_probability": 0,
        "total_liquid": {
            "value": 0,
            "unit": "mm",
            "unit_type": 3
        },
        "rain": {
            "value": 0,
            "unit": "mm",
            "unit_type": 3
        },
        "snow": {
            "value": 0,
            "unit": "cm",
            "unit_type": 4
        },
        "ice": {
            "value": 0,
            "unit": "mm",
            "unit_type": 3
        },
        "cloud_cover": 0,
        "evapotranspiration": {
            "value": 0,
            "unit": "mm",
            "unit_type": 3
        },
        "solar_irradiance": {
            "value": 0,
            "unit": "W/m²",
            "unit_type": 33
        },
        "accu_lumen_brightness_index": null,
        "wind_chill_temperature": {
            "value": 4.4,
            "unit": "C",
            "unit_type": 17
        },
        "heat_index": {
            "value": 5.6,
            "unit": "C",
            "unit_type": 17
        },
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/hourly-weather-forecast/349727?day=1&hbhhour=4&unit=c&lang=en-us"
    }
]
获取每小时预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43369/get+hourly+forecast?location=349727&hours=24&units=metric&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地最多 15 天内每天各时段(上午、下午、傍晚、夜间)的预报:图标和描述、温度范围、RealFeel®、露点、湿度、风和阵风、能见度、云量和降水、雷暴、降雨、降雪和结冰的概率及量值
Endpoint ID: 43370
GET https://zylalabs.com/api/15821/accuweather+api/43370/get+quarter-day+forecast
输入参数

获取每刻钟天气预报 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
days 可选 Optional number of days: 1, 5, 10 or 15 (defaults to 5).
units 可选 Optional units: "metric" or "imperial" (defaults to "metric"). Use the /general/units endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
days
units
language
API 示例响应
JSON
[
    {
        "date": "2026-11-30T00:00:00",
        "effective_date": "2026-11-30T07:00:00-05:00",
        "quarter": 0,
        "icon": 18,
        "icon_phrase": "Rain",
        "phrase": "Rain",
        "temperature": {
            "minimum": {
                "value": 11.7,
                "unit": "C",
                "unit_type": 17
            },
            "maximum": {
                "value": 13.9,
                "unit": "C",
                "unit_type": 17
            },
            "average": {
                "value": 12.8,
                "unit": "C",
                "unit_type": 17
            }
        },
        "real_feel_temperature": {
            "minimum": {
                "value": 8.3,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Chilly"
            },
            "maximum": {
                "value": 12.3,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Cool"
            },
            "average": {
                "value": 10.3,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Chilly"
            }
        },
        "real_feel_temperature_shade": {
            "minimum": {
                "value": 8.3,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Chilly"
            },
            "maximum": {
                "value": 12.3,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Cool"
            },
            "average": {
                "value": 10.3,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Chilly"
            }
        },
        "dew_point": {
            "value": 10.5,
            "unit": "C",
            "unit_type": 17
        },
        "relative_humidity": 87,
        "wind": {
            "speed": {
                "value": 13,
                "unit": "km/h",
                "unit_type": 7
            },
            "direction": {
                "degrees": 226,
                "localized": "SW",
                "english": "SW"
            }
        },
        "wind_gust": {
            "speed": {
                "value": 38.9,
                "unit": "km/h",
                "unit_type": 7
            },
            "direction": {
                "degrees": 262,
                "localized": "W",
                "english": "W"
            }
        },
        "visibility": {
            "value": 9,
            "unit": "km",
            "unit_type": 6
        },
        "cloud_cover": 99,
        "has_precipitation": true,
        "precipitation_type": "Rain",
        "precipitation_intensity": "Moderate",
        "precipitation_probability": 100,
        "thunderstorm_probability": 0,
        "total_liquid": {
            "value": 1.5,
            "unit": "mm",
            "unit_type": 3
        },
        "rain": {
            "value": 1.5,
            "unit": "mm",
            "unit_type": 3
        },
        "snow": {
            "value": 0,
            "unit": "cm",
            "unit_type": 4
        },
        "ice": {
            "value": 0,
            "unit": "mm",
            "unit_type": 3
        },
        "evapotranspiration": {
            "value": 0.5,
            "unit": "mm",
            "unit_type": 3
        },
        "solar_irradiance": {
            "value": 104.4,
            "unit": "W/m²",
            "unit_type": 33
        },
        "wet_bulb_temperature": {
            "minimum": {
                "value": 11.2,
                "unit": "C",
                "unit_type": 17
            },
            "maximum": {
                "value": 11.9,
                "unit": "C",
                "unit_type": 17
            },
            "average": {
                "value": 11.6,
                "unit": "C",
                "unit_type": 17
            }
        },
        "wet_bulb_globe_temperature": {
            "minimum": {
                "value": 11.2,
                "unit": "C",
                "unit_type": 17
            },
            "maximum": {
                "value": 12.2,
                "unit": "C",
                "unit_type": 17
            },
            "average": {
                "value": 11.8,
                "unit": "C",
                "unit_type": 17
            }
        },
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/morning-weather-forecast/349727?day=1&unit=c&lang=en-us"
    },
    {
        "date": "2026-11-30T00:00:00",
        "effective_date": "2026-11-30T13:00:00-05:00",
        "quarter": 1,
        "icon": 6,
        "icon_phrase": "Mostly cloudy",
        "phrase": "Mostly cloudy and windy",
        "temperature": {
            "minimum": {
                "value": 10,
                "unit": "C",
                "unit_type": 17
            },
            "maximum": {
                "value": 14.4,
                "unit": "C",
                "unit_type": 17
            },
            "average": {
                "value": 12.2,
                "unit": "C",
                "unit_type": 17
            }
        },
        "real_feel_temperature": {
            "minimum": {
                "value": 5.6,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Chilly"
            },
            "maximum": {
                "value": 12.5,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Cool"
            },
            "average": {
                "value": 9.1,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Chilly"
            }
        },
        "real_feel_temperature_shade": {
            "minimum": {
                "value": 5.6,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Chilly"
            },
            "maximum": {
                "value": 12.5,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Cool"
            },
            "average": {
                "value": 9.1,
                "unit": "C",
                "unit_type": 17,
                "phrase": "Chilly"
            }
        },
        "dew_point": {
            "value": 2.9,
            "unit": "C",
            "unit_type": 17
        },
        "relative_humidity": 52,
        "wind": {
            "speed": {
                "value": 24.1,
                "unit": "km/h",
                "unit_type": 7
            },
            "direction": {
                "degrees": 308,
                "localized": "NW",
                "english": "NW"
            }
        },
        "wind_gust": {
            "speed": {
                "value": 40.7,
                "unit": "km/h",
                "unit_type": 7
            },
            "direction": {
                "degrees": 310,
                "localized": "NW",
                "english": "NW"
            }
        },
        "visibility": {
            "value": 10,
            "unit": "km",
            "unit_type": 6
        },
        "cloud_cover": 87,
        "has_precipitation": false,
        "precipitation_probability": 25,
        "thunderstorm_probability": 5,
        "total_liquid": {
            "value": 0,
            "unit": "mm",
            "unit_type": 3
        },
        "rain": {
            "value": 0,
            "unit": "mm",
            "unit_type": 3
        },
        "snow": {
            "value": 0,
            "unit": "cm",
            "unit_type": 4
        },
        "ice": {
            "value": 0,
            "unit": "mm",
            "unit_type": 3
        },
        "evapotranspiration": {
            "value": 0.8,
            "unit": "mm",
            "unit_type": 3
        },
        "solar_irradiance": {
            "value": 164.1,
            "unit": "W/m²",
            "unit_type": 33
        },
        "wet_bulb_temperature": {
            "minimum": {
                "value": 5.4,
                "unit": "C",
                "unit_type": 17
            },
            "maximum": {
                "value": 11.3,
                "unit": "C",
                "unit_type": 17
            },
            "average": {
                "value": 7.9,
                "unit": "C",
                "unit_type": 17
            }
        },
        "wet_bulb_globe_temperature": {
            "minimum": {
                "value": 6.8,
                "unit": "C",
                "unit_type": 17
            },
            "maximum": {
                "value": 12.1,
                "unit": "C",
                "unit_type": 17
            },
            "average": {
                "value": 9.3,
                "unit": "C",
                "unit_type": 17
            }
        },
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/afternoon-weather-forecast/349727?day=1&unit=c&lang=en-us"
    }
]
获取每刻钟天气预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43370/get+quarter-day+forecast?location=349727&days=5&units=metric&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某个地点未来120分钟的逐分钟降水预报(MinuteCast®):未来60分钟和120分钟的摘要短语,降雨、降雪、冰冻降水或无降水的时段,以及每分钟的雷达反射率(dBZ)、降水类型、云量和闪电频率
Endpoint ID: 43371
GET https://zylalabs.com/api/15821/accuweather+api/43371/get+minutecast
输入参数

获取 MinuteCast — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or location key (e.g. "349727"). Use the /location/search endpoint to list valid values.
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
language
API 示例响应
JSON
{
    "summary": {
        "phrase": "No precipitation for at least 120 min",
        "phrase_60": "No precipitation for at least 60 min",
        "widget_phrase": "Check MinuteCast®",
        "short_phrase": "No precip for 120 min",
        "brief_phrase": "No precipitation for at least 120 min",
        "long_phrase": "No precipitation for at least 120 min",
        "icon_code": 38
    },
    "summaries": [
        {
            "start_minute": 0,
            "end_minute": 119,
            "count_minute": 120,
            "minute_text": "No precipitation for at least %MINUTE_VALUE min",
            "minutes_text": "No precipitation for at least %MINUTE_VALUE min",
            "widget_phrase": "Check MinuteCast®",
            "short_phrase": "No precip for %MINUTE_VALUE min",
            "brief_phrase": "No precipitation for at least %MINUTE_VALUE min",
            "long_phrase": "No precipitation for at least %MINUTE_VALUE min",
            "icon_code": 38
        }
    ],
    "intervals": [
        {
            "start_date_time": "2026-12-01T03:07:00-05:00",
            "start_epoch_date_time": 1796112420000,
            "minute": 0,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:08:00-05:00",
            "start_epoch_date_time": 1796112480000,
            "minute": 1,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:09:00-05:00",
            "start_epoch_date_time": 1796112540000,
            "minute": 2,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:10:00-05:00",
            "start_epoch_date_time": 1796112600000,
            "minute": 3,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:11:00-05:00",
            "start_epoch_date_time": 1796112660000,
            "minute": 4,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:12:00-05:00",
            "start_epoch_date_time": 1796112720000,
            "minute": 5,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:13:00-05:00",
            "start_epoch_date_time": 1796112780000,
            "minute": 6,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:14:00-05:00",
            "start_epoch_date_time": 1796112840000,
            "minute": 7,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:15:00-05:00",
            "start_epoch_date_time": 1796112900000,
            "minute": 8,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:16:00-05:00",
            "start_epoch_date_time": 1796112960000,
            "minute": 9,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:17:00-05:00",
            "start_epoch_date_time": 1796113020000,
            "minute": 10,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:18:00-05:00",
            "start_epoch_date_time": 1796113080000,
            "minute": 11,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:19:00-05:00",
            "start_epoch_date_time": 1796113140000,
            "minute": 12,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:20:00-05:00",
            "start_epoch_date_time": 1796113200000,
            "minute": 13,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        },
        {
            "start_date_time": "2026-12-01T03:21:00-05:00",
            "start_epoch_date_time": 1796113260000,
            "minute": 14,
            "dbz": 0,
            "short_phrase": "No Precipitation",
            "icon_code": 38,
            "cloud_cover": 59,
            "lightning_rate": 0
        }
    ],
    "link": "http://www.accuweather.com/en/us/financial-district-ny/10005/minute-weather-forecast/2627461?lang=en-us&lat=40.71&lon=-74.01"
}
获取 MinuteCast — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43371/get+minutecast?location=40.71,-74.01&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回未来1至15天内预报达到 AccuWeather 警报阈值(暴雨、降雪、结冰、大风、阵风、极端高温或低温、雷暴)的日期,并列出每种警报类型以及全天、白天和夜间的预报值
Endpoint ID: 43372
GET https://zylalabs.com/api/15821/accuweather+api/43372/get+weather+alarms
输入参数

获取天气警报 — 端点功能

对象 描述
location 必需 Location key (e.g. "349727") or latitude and longitude (e.g. "40.71,-74.01"). Use the /location/search endpoint to list valid values.
days 可选 Optional number of days: 1, 5, 10 or 15 (defaults to 15).
language 可选 Optional language code (e.g. "en-us", defaults to "en-us"). Use the /general/languages endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

location
days
language
API 示例响应
JSON
[
    {
        "date": "2026-12-07T00:00:00-05:00",
        "epoch_date": 1796601600,
        "alarms": [
            {
                "alarm_type": "Rain",
                "value": {
                    "metric": {
                        "value": 28.14,
                        "unit": "mm",
                        "unit_type": 3
                    },
                    "imperial": {
                        "value": 1.11,
                        "unit": "in",
                        "unit_type": 1
                    }
                },
                "day": {
                    "metric": {
                        "value": 21.49,
                        "unit": "mm",
                        "unit_type": 3
                    },
                    "imperial": {
                        "value": 0.85,
                        "unit": "in",
                        "unit_type": 1
                    }
                },
                "night": {
                    "metric": {
                        "value": 6.65,
                        "unit": "mm",
                        "unit_type": 3
                    },
                    "imperial": {
                        "value": 0.26,
                        "unit": "in",
                        "unit_type": 1
                    }
                }
            }
        ],
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/daily-weather-forecast/349727?day=7&lang=en-us"
    },
    {
        "date": "2026-12-11T00:00:00-05:00",
        "epoch_date": 1796947200,
        "alarms": [
            {
                "alarm_type": "Rain",
                "value": {
                    "metric": {
                        "value": 18.67,
                        "unit": "mm",
                        "unit_type": 3
                    },
                    "imperial": {
                        "value": 0.74,
                        "unit": "in",
                        "unit_type": 1
                    }
                },
                "day": {
                    "metric": {
                        "value": 14.12,
                        "unit": "mm",
                        "unit_type": 3
                    },
                    "imperial": {
                        "value": 0.56,
                        "unit": "in",
                        "unit_type": 1
                    }
                },
                "night": {
                    "metric": {
                        "value": 4.55,
                        "unit": "mm",
                        "unit_type": 3
                    },
                    "imperial": {
                        "value": 0.18,
                        "unit": "in",
                        "unit_type": 1
                    }
                }
            }
        ],
        "link": "http://www.accuweather.com/en/us/new-york-ny/10021/daily-weather-forecast/349727?day=11&lang=en-us"
    }
]
获取天气警报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15821/accuweather+api/43372/get+weather+alarms?location=349727&days=15&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 AccuWeather API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

(年度计费可节省 2 个月 🎉)

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

地球上任何地点的天气:当前天气状况、每日、每小时和每分钟预报、警报、空气质量、健康和生活方式指数、气候记录和热带风暴

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API