Weather com API

API ID 16045

任何地点的天气:当前天气、15天逐日和逐小时预报、降水临近预报、预警、历史天气、气候常年值、空气质量、花粉和热带风暴

API 文档

端点

请求
返回某个地点当前生效的天气警报(国家气象服务机构发布的警告、观察和预警),每条警报包含警报 ID、事件、标题、严重程度、紧迫性、确定性、发布机构、区域、发布时间、生效时间、开始时间和结束时间,以及来源
Endpoint ID: 45593
GET https://zylalabs.com/api/16045/weather+com+api/45593/get+weather+alerts
输入参数

获取天气预警 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. 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
[
    {
        "alert_id": "1484f3da-92ea-355c-b2a8-06ea07e13168",
        "message_type_code": 1,
        "message_type": "New",
        "product_identifier": "MWW",
        "phenomena": "SC",
        "significance": "Y",
        "event_tracking_number": "0092",
        "office_code": "KBUF",
        "office_name": "Buffalo",
        "office_admin_district": "New York",
        "office_admin_district_code": "NY",
        "office_country_code": "US",
        "event_description": "Small Craft Advisory",
        "severity_code": 4,
        "severity": "Minor",
        "source_color_name": null,
        "categories": [
            {
                "category": "Met",
                "category_code": 2
            }
        ],
        "response_types": [
            {
                "response_type": "Avoid",
                "response_type_code": 5
            }
        ],
        "urgency": "Expected",
        "urgency_code": 2,
        "certainty": "Likely",
        "certainty_code": 2,
        "effective_time_local": "2026-12-04T22:00:00-05:00",
        "effective_time_local_time_zone": "EST",
        "expire_time_local": "2026-12-05T13:00:00-05:00",
        "expire_time_local_time_zone": "EST",
        "expire_time_utc": 1796493600,
        "onset_time_local": "2026-12-04T22:00:00-05:00",
        "onset_time_local_time_zone": "EST",
        "flood": null,
        "area_type_code": "Z",
        "latitude": 42.67,
        "longitude": -79.12,
        "area_id": "LEZ041",
        "area_name": "Dunkirk to Buffalo NY",
        "iana_time_zone": "America/New_York",
        "admin_district_code": null,
        "admin_district": null,
        "country_code": "US",
        "country_name": "UNITED STATES OF AMERICA",
        "headline_text": "Small Craft Advisory from FRI 10:00 PM EST until SAT 1:00 PM EST",
        "summary_headline": "Small Craft Advisory: SW winds 15-25 kt and waves 3-5 ft from Ripley to Buffalo 10 PM tonight-1 PM EST Sat. Avoid navigation.",
        "source": "National Weather Service",
        "disclaimer": null,
        "issue_time_local": "2026-12-04T02:47:00-05:00",
        "issue_time_local_time_zone": "EST",
        "identifier": "64bddf063dcab29ffa888129ff82c149",
        "end_time_local": "2026-12-05T13:00:00-05:00",
        "end_time_local_time_zone": "EST",
        "end_time_utc": 1796493600,
        "display_rank": 506
    }
]
获取天气预警 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45593/get+weather+alerts?location=42.89,-78.88&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回天气警报,包含与 /alert/list 端点相同的数据,以及完整文本:描述、说明和概述,并在来源提供时包含其覆盖区域的多边形 geometry
Endpoint ID: 45594
GET https://zylalabs.com/api/16045/weather+com+api/45594/get+weather+alert+details
输入参数

获取天气预警详情 — 端点功能

对象 描述
alert_id 必需 Alert id (e.g. "284631e1-5702-3af2-a815-e828cbf9ee74"). Use the /alert/list 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。


输入参数

alert_id
language
API 示例响应
JSON
{
    "alert_id": "1484f3da-92ea-355c-b2a8-06ea07e13168",
    "message_type_code": 1,
    "message_type": "New",
    "product_identifier": "MWW",
    "phenomena": "SC",
    "significance": "Y",
    "event_tracking_number": "0092",
    "office_code": "KBUF",
    "office_name": "Buffalo",
    "office_admin_district": "New York",
    "office_admin_district_code": "NY",
    "office_country_code": "US",
    "event_description": "Small Craft Advisory",
    "severity_code": 4,
    "severity": "Minor",
    "source_color_name": null,
    "categories": [
        {
            "category": "Met",
            "category_code": 2
        }
    ],
    "response_types": [
        {
            "response_type": "Avoid",
            "response_type_code": 5
        }
    ],
    "urgency": "Expected",
    "urgency_code": 2,
    "certainty": "Likely",
    "certainty_code": 2,
    "effective_time_local": "2026-12-04T22:00:00-05:00",
    "effective_time_local_time_zone": "EST",
    "expire_time_local": "2026-12-05T13:00:00-05:00",
    "expire_time_local_time_zone": "EST",
    "expire_time_utc": 1796493600,
    "onset_time_local": "2026-12-04T22:00:00-05:00",
    "onset_time_local_time_zone": "EST",
    "flood": null,
    "area_type_code": "Z",
    "latitude": 42.67,
    "longitude": -79.12,
    "area_id": "LEZ041",
    "area_name": "Dunkirk to Buffalo NY",
    "iana_time_zone": "America/New_York",
    "admin_district_code": null,
    "admin_district": null,
    "country_code": "US",
    "country_name": "UNITED STATES OF AMERICA",
    "headline_text": "Small Craft Advisory from FRI 10:00 PM EST until SAT 1:00 PM EST",
    "summary_headline": "Small Craft Advisory: SW winds 15-25 kt and waves 3-5 ft from Ripley to Buffalo 10 PM tonight-1 PM EST Sat. Avoid navigation.",
    "source": "National Weather Service",
    "disclaimer": null,
    "issue_time_local": "2026-12-04T02:47:00-05:00",
    "issue_time_local_time_zone": "EST",
    "identifier": "64bddf063dcab29ffa888129ff82c149",
    "end_time_local": "2026-12-05T13:00:00-05:00",
    "end_time_local_time_zone": "EST",
    "end_time_utc": 1796493600,
    "texts": [
        {
            "language_code": "en-US",
            "description": "...SMALL CRAFT ADVISORY IN EFFECT FROM 10 PM THIS EVENING TO 1 PM\nEST SATURDAY...\n\n* WHAT...Southwest winds 15 to 25 knots and waves 3 to 5 feet\nexpected.\n\n* WHERE...The nearshore waters of Lake Erie from Ripley to\nBuffalo.\n\n* WHEN...From 10 PM this evening to 1 PM EST Saturday.\n\n* IMPACTS...Winds and/or waves will cause hazardous conditions\nthat could capsize or damage small craft.\n\nPRECAUTIONARY/PREPAREDNESS ACTIONS...\n\nInexperienced mariners, especially those operating smaller\nvessels, should avoid navigating in hazardous conditions.\n\n&&",
            "instruction": null,
            "overview": null
        }
    ],
    "polygon": null,
    "synopsis": null,
    "supplement": null,
    "geospatial_shapes": null
}
获取天气预警详情 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45594/get+weather+alert+details?alert_id=1484f3da-92ea-355c-b2a8-06ea07e13168&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某个地点从开始日期起每天的气候常年值:平均最高和最低气温、最高和最低纪录及其年份、平均降水量和降雪量,以及这些平均值所涵盖的年份范围
Endpoint ID: 45595
GET https://zylalabs.com/api/16045/weather+com+api/45595/get+daily+almanac
输入参数

获取每日黄历 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
start_date 可选 Optional first day, in YYYY-MM-DD format (e.g. "2026-12-01", defaults to today); only the month and day are used.
days 可选 Optional number of days: 1, 5, 7, 10, 15 or 30 (defaults to 7).
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (defaults to "metric"). Use the /general/units endpoint to list valid values.

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


输入参数

location
start_date
days
units
API 示例响应
JSON
[
    {
        "almanac_interval": "D",
        "almanac_record_date": "1201",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1927,
        "almanac_record_year_min": 1936,
        "precipitation_average": 3.3,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 8,
        "temperature_average_min": 0,
        "temperature_mean": 4,
        "temperature_record_max": 19,
        "temperature_record_min": -11
    },
    {
        "almanac_interval": "D",
        "almanac_record_date": "1202",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1970,
        "almanac_record_year_min": 1946,
        "precipitation_average": 3.3,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 8,
        "temperature_average_min": 0,
        "temperature_mean": 4,
        "temperature_record_max": 18,
        "temperature_record_min": -10
    },
    {
        "almanac_interval": "D",
        "almanac_record_date": "1203",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1970,
        "almanac_record_year_min": 1976,
        "precipitation_average": 3.3,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 8,
        "temperature_average_min": 0,
        "temperature_mean": 4,
        "temperature_record_max": 17,
        "temperature_record_min": -13
    },
    {
        "almanac_interval": "D",
        "almanac_record_date": "1204",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1982,
        "almanac_record_year_min": 1989,
        "precipitation_average": 3.3,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 8,
        "temperature_average_min": -1,
        "temperature_mean": 4,
        "temperature_record_max": 21,
        "temperature_record_min": -14
    },
    {
        "almanac_interval": "D",
        "almanac_record_date": "1205",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1973,
        "almanac_record_year_min": 1926,
        "precipitation_average": 3.3,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 7,
        "temperature_average_min": -1,
        "temperature_mean": 3,
        "temperature_record_max": 18,
        "temperature_record_min": -12
    },
    {
        "almanac_interval": "D",
        "almanac_record_date": "1206",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1982,
        "almanac_record_year_min": 1980,
        "precipitation_average": 3.3,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 7,
        "temperature_average_min": -1,
        "temperature_mean": 3,
        "temperature_record_max": 20,
        "temperature_record_min": -11
    },
    {
        "almanac_interval": "D",
        "almanac_record_date": "1207",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1956,
        "almanac_record_year_min": 1926,
        "precipitation_average": 3.3,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 7,
        "temperature_average_min": -1,
        "temperature_mean": 3,
        "temperature_record_max": 19,
        "temperature_record_min": -12
    }
]
获取每日黄历 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45595/get+daily+almanac?location=40.71,-74.01&start_date=2026-12-01&days=7&units=metric' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某个地点从起始月份开始的12个月气候常值:每个月的平均最高和最低气温、历史最高和最低气温及其年份,以及平均降水量和降雪量
Endpoint ID: 45596
GET https://zylalabs.com/api/16045/weather+com+api/45596/get+monthly+almanac
输入参数

获取月历 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
start_month 可选 Optional first month, from 1 (January) to 12 (defaults to 1).
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (defaults to "metric"). Use the /general/units endpoint to list valid values.

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


输入参数

location
start_month
units
API 示例响应
JSON
[
    {
        "almanac_interval": "M",
        "almanac_record_date": "0101",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1950,
        "almanac_record_year_min": 1994,
        "precipitation_average": 93.73,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 2,
        "temperature_average_min": -5,
        "temperature_mean": -1,
        "temperature_record_max": 21,
        "temperature_record_min": -20
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "0201",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1930,
        "almanac_record_year_min": 1934,
        "precipitation_average": 77.72,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 4,
        "temperature_average_min": -4,
        "temperature_mean": 0,
        "temperature_record_max": 23,
        "temperature_record_min": -26
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "0301",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1945,
        "almanac_record_year_min": 1981,
        "precipitation_average": 103.63,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 9,
        "temperature_average_min": 0,
        "temperature_mean": 4,
        "temperature_record_max": 29,
        "temperature_record_min": -15
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "0401",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1915,
        "almanac_record_year_min": 1923,
        "precipitation_average": 103.12,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 14,
        "temperature_average_min": 6,
        "temperature_mean": 10,
        "temperature_record_max": 34,
        "temperature_record_min": -11
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "0501",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1996,
        "almanac_record_year_min": 1966,
        "precipitation_average": 113.79,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 20,
        "temperature_average_min": 12,
        "temperature_mean": 16,
        "temperature_record_max": 36,
        "temperature_record_min": 1
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "0601",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1952,
        "almanac_record_year_min": 1945,
        "precipitation_average": 87.63,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 25,
        "temperature_average_min": 17,
        "temperature_mean": 21,
        "temperature_record_max": 38,
        "temperature_record_min": 6
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "0701",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1936,
        "almanac_record_year_min": 1979,
        "precipitation_average": 105.92,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 28,
        "temperature_average_min": 20,
        "temperature_mean": 24,
        "temperature_record_max": 41,
        "temperature_record_min": 9
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "0801",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1918,
        "almanac_record_year_min": 1982,
        "precipitation_average": 102.87,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 27,
        "temperature_average_min": 19,
        "temperature_mean": 23,
        "temperature_record_max": 41,
        "temperature_record_min": 8
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "0901",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1983,
        "almanac_record_year_min": 1995,
        "precipitation_average": 102.87,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 23,
        "temperature_average_min": 14,
        "temperature_mean": 19,
        "temperature_record_max": 37,
        "temperature_record_min": -3
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "1001",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1941,
        "almanac_record_year_min": 1988,
        "precipitation_average": 88.9,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 17,
        "temperature_average_min": 8,
        "temperature_mean": 13,
        "temperature_record_max": 34,
        "temperature_record_min": -3
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "1101",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1974,
        "almanac_record_year_min": 1929,
        "precipitation_average": 101.6,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 11,
        "temperature_average_min": 3,
        "temperature_mean": 7,
        "temperature_record_max": 27,
        "temperature_record_min": -12
    },
    {
        "almanac_interval": "M",
        "almanac_record_date": "1201",
        "almanac_record_period": 30,
        "almanac_record_year_max": 1982,
        "almanac_record_year_min": 1917,
        "precipitation_average": 98.04,
        "snow_accumulation_average": null,
        "station_id": "284339",
        "station_name": "JERSEY CITY",
        "temperature_average_max": 6,
        "temperature_average_min": -2,
        "temperature_mean": 2,
        "temperature_record_max": 21,
        "temperature_record_min": -24
    }
]
获取月历 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45596/get+monthly+almanac?location=40.71,-74.01&start_month=1&units=metric' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回从开始日期起过去或未来 30 天的日月数据:日出、日落和太阳正午,民用、航海和天文晨曦与暮光,月出和月落,月相、照明度和月龄
Endpoint ID: 45597
GET https://zylalabs.com/api/16045/weather+com+api/45597/get+astronomy
输入参数

获取天文学 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
start_date 可选 Optional first day, in YYYY-MM-DD format (e.g. "2026-12-01", defaults to today).
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
start_date
units
language
API 示例响应
JSON
[
    {
        "astronomical_dawn_time_local": "2026-12-01T05:23:21.000-05:00",
        "astronomical_dawn_time_utc": 1796120601,
        "astronomical_dusk_time_local": "2026-12-01T18:06:38.000-05:00",
        "astronomical_dusk_time_utc": 1796166398,
        "civil_dawn_time_local": "2026-12-01T06:30:19.000-05:00",
        "civil_dawn_time_utc": 1796124619,
        "civil_dusk_time_local": "2026-12-01T16:59:40.000-05:00",
        "civil_dusk_time_utc": 1796162380,
        "day_of_week": "TUESDAY",
        "lunar_age": 21.91521990740741,
        "lunar_phase_code": 7,
        "lunar_phase_description": "Last Quarter",
        "moon_illumination": 50.65,
        "moon_rise_icon_code": 22,
        "moon_set_icon_code": 22,
        "moonrise_time_local": null,
        "moonset_time_local": "2026-12-01T12:30:26.000-05:00",
        "moonrise_time_utc": null,
        "moonset_time_utc": 1796146226,
        "nautical_dawn_time_local": "2026-12-01T05:56:20.000-05:00",
        "nautical_dawn_time_utc": 1796122580,
        "nautical_dusk_time_local": "2026-12-01T17:33:39.000-05:00",
        "nautical_dusk_time_utc": 1796164419,
        "sunrise_time_local": "2026-12-01T07:00:44.000-05:00",
        "sunrise_time_utc": 1796126444,
        "sunset_time_local": "2026-12-01T16:29:16.000-05:00",
        "sunset_time_utc": 1796160556,
        "zenith_time_local": "2026-12-01T11:45:08.000-05:00",
        "zenith_time_utc": 1796143508
    },
    {
        "astronomical_dawn_time_local": "2026-12-02T05:24:14.000-05:00",
        "astronomical_dawn_time_utc": 1796207054,
        "astronomical_dusk_time_local": "2026-12-02T18:06:32.000-05:00",
        "astronomical_dusk_time_utc": 1796252792,
        "civil_dawn_time_local": "2026-12-02T06:31:17.000-05:00",
        "civil_dawn_time_utc": 1796211077,
        "civil_dusk_time_local": "2026-12-02T16:59:29.000-05:00",
        "civil_dusk_time_utc": 1796248769,
        "day_of_week": "WEDNESDAY",
        "lunar_age": 22.940520833333334,
        "lunar_phase_code": 8,
        "lunar_phase_description": "Waning Crescent",
        "moon_illumination": 39.69,
        "moon_rise_icon_code": 23,
        "moon_set_icon_code": 23,
        "moonrise_time_local": "2026-12-02T00:36:26.000-05:00",
        "moonset_time_local": "2026-12-02T12:52:39.000-05:00",
        "moonrise_time_utc": 1796189786,
        "moonset_time_utc": 1796233959,
        "nautical_dawn_time_local": "2026-12-02T05:57:15.000-05:00",
        "nautical_dawn_time_utc": 1796209035,
        "nautical_dusk_time_local": "2026-12-02T17:33:31.000-05:00",
        "nautical_dusk_time_utc": 1796250811,
        "sunrise_time_local": "2026-12-02T07:01:44.000-05:00",
        "sunrise_time_utc": 1796212904,
        "sunset_time_local": "2026-12-02T16:29:02.000-05:00",
        "sunset_time_utc": 1796246942,
        "zenith_time_local": "2026-12-02T11:45:30.000-05:00",
        "zenith_time_utc": 1796229930
    },
    {
        "astronomical_dawn_time_local": "2026-12-03T05:25:06.000-05:00",
        "astronomical_dawn_time_utc": 1796293506,
        "astronomical_dusk_time_local": "2026-12-03T18:06:28.000-05:00",
        "astronomical_dusk_time_utc": 1796339188,
        "civil_dawn_time_local": "2026-12-03T06:32:13.000-05:00",
        "civil_dawn_time_utc": 1796297533,
        "civil_dusk_time_local": "2026-12-03T16:59:21.000-05:00",
        "civil_dusk_time_utc": 1796335161,
        "day_of_week": "THURSDAY",
        "lunar_age": 24.05787037037037,
        "lunar_phase_code": 8,
        "lunar_phase_description": "Waning Crescent",
        "moon_illumination": 29.3,
        "moon_rise_icon_code": 24,
        "moon_set_icon_code": 25,
        "moonrise_time_local": "2026-12-03T01:42:37.000-05:00",
        "moonset_time_local": "2026-12-03T13:14:42.000-05:00",
        "moonrise_time_utc": 1796280157,
        "moonset_time_utc": 1796321682,
        "nautical_dawn_time_local": "2026-12-03T05:58:09.000-05:00",
        "nautical_dawn_time_utc": 1796295489,
        "nautical_dusk_time_local": "2026-12-03T17:33:25.000-05:00",
        "nautical_dusk_time_utc": 1796337205,
        "sunrise_time_local": "2026-12-03T07:02:44.000-05:00",
        "sunrise_time_utc": 1796299364,
        "sunset_time_local": "2026-12-03T16:28:50.000-05:00",
        "sunset_time_utc": 1796333330,
        "zenith_time_local": "2026-12-03T11:45:54.000-05:00",
        "zenith_time_utc": 1796316354
    }
]
获取天文学 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45597/get+astronomy?location=40.71,-74.01&start_date=2026-12-01&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出“language”参数可接受的值,该参数用于设置文本(短语、叙述、日期名称、提醒)的语言。
Endpoint ID: 45598
GET https://zylalabs.com/api/16045/weather+com+api/45598/get+languages
输入参数

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

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

API 示例响应
JSON
[
    "ar-AE",
    "ar-BH",
    "ar-DJ",
    "ar-DZ",
    "ar-EG",
    "ar-ER",
    "ar-IL",
    "ar-IQ",
    "ar-JO",
    "ar-KM",
    "ar-KW",
    "ar-LB",
    "ar-LY",
    "ar-MA",
    "ar-MR",
    "ar-OM",
    "ar-QA",
    "ar-SA",
    "ar-SD",
    "ar-SO",
    "ar-SY",
    "ar-TD",
    "ar-TN",
    "ar-YE",
    "az-AZ",
    "bg-BG",
    "bn-BD",
    "bn-IN",
    "bs-BA",
    "ca-AD",
    "ca-ES",
    "cs-CZ",
    "da-DK",
    "de-AT",
    "de-CH",
    "de-DE",
    "de-LI",
    "el-CY",
    "el-GR",
    "en-AG",
    "en-AS",
    "en-AU",
    "en-BB",
    "en-BS",
    "en-BZ",
    "en-CA",
    "en-CM",
    "en-DM",
    "en-FJ",
    "en-FM",
    "en-GB",
    "en-GD",
    "en-GH",
    "en-GM",
    "en-GY",
    "en-IE",
    "en-IN",
    "en-JM",
    "en-KE",
    "en-KI",
    "en-KN",
    "en-LC",
    "en-LR",
    "en-LS",
    "en-MH",
    "en-MT",
    "en-MU",
    "en-NA",
    "en-NG",
    "en-NZ",
    "en-PA",
    "en-PH",
    "en-PK",
    "en-PW",
    "en-RW",
    "en-SB",
    "en-SG",
    "en-SL",
    "en-SS",
    "en-SZ",
    "en-TO",
    "en-TT",
    "en-TV",
    "en-TZ",
    "en-UG",
    "en-US",
    "en-VC",
    "en-VU",
    "en-ZA",
    "en-ZM",
    "en-ZW",
    "es-AR",
    "es-BO",
    "es-CL",
    "es-CO",
    "es-CR",
    "es-DO",
    "es-EC",
    "es-ES",
    "es-GQ",
    "es-GT",
    "es-HN",
    "es-MX",
    "es-NI",
    "es-PA",
    "es-PE",
    "es-PY",
    "es-SV",
    "es-US",
    "es-UY",
    "es-VE",
    "et-EE",
    "fi-FI",
    "fr-AD",
    "fr-BE",
    "fr-BF",
    "fr-BI",
    "fr-BJ",
    "fr-CA",
    "fr-CD",
    "fr-CF",
    "fr-CG",
    "fr-CI",
    "fr-CM",
    "fr-DJ",
    "fr-DZ",
    "fr-FR",
    "fr-GA",
    "fr-GN",
    "fr-HT",
    "fr-KM",
    "fr-LU",
    "fr-MA",
    "fr-MC",
    "fr-MG",
    "fr-ML",
    "fr-MU",
    "fr-NE",
    "fr-RW",
    "fr-SN",
    "fr-TD",
    "fr-TG",
    "fr-VU",
    "gu-IN",
    "he-IL",
    "hi-IN",
    "hr-BA",
    "hr-HR",
    "hu-HU",
    "id-ID",
    "is-IS",
    "it-IT",
    "it-SM",
    "it-VA",
    "ja-JP",
    "jv-ID",
    "ka-GE",
    "kk-KZ",
    "kn-IN",
    "ko-KP",
    "ko-KR",
    "lt-LT",
    "lv-LV",
    "mk-MK",
    "mn-MN",
    "ms-BN",
    "ms-MY",
    "nl-BE",
    "nl-NL",
    "nl-SR",
    "no-NO",
    "pl-PL",
    "pt-AO",
    "pt-BR",
    "pt-CV",
    "pt-GW",
    "pt-MZ",
    "pt-PT",
    "pt-ST",
    "pt-TP",
    "ro-RO",
    "ru-BY",
    "ru-EE",
    "ru-KG",
    "si-LK",
    "sk-SK",
    "sl-SI",
    "sq-AL",
    "sr-BA",
    "sr-ME",
    "sr-RS",
    "sv-SE",
    "sw-CD",
    "sw-KE",
    "sw-TZ",
    "sw-UG",
    "ta-IN",
    "ta-LK",
    "te-IN",
    "tg-TJ",
    "th-TH",
    "tk-TM",
    "tl-PH",
    "tr-TR",
    "uk-UA",
    "ur-PK",
    "uz-UZ",
    "vi-VN",
    "zh-CN",
    "zh-HK",
    "zh-SG",
    "zh-TW"
]
获取语言 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45598/get+languages' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出“units”参数接受的值,以及每个值对应的温度、风速、降水量、距离和气压单位
Endpoint ID: 45599
GET https://zylalabs.com/api/16045/weather+com+api/45599/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"
    },
    {
        "value": "hybrid",
        "label": "UK hybrid: °C, mph, mm, mi, mb"
    },
    {
        "value": "si",
        "label": "SI: °C, m/s, mm, km, mb"
    }
]
获取单位 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45599/get+units' --header 'Authorization: Bearer YOUR_API_KEY' 


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

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

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

API 示例响应
JSON
[
    {
        "value": "city",
        "label": "Cities and towns"
    },
    {
        "value": "locality",
        "label": "Localities"
    },
    {
        "value": "neighborhood",
        "label": "Neighborhoods"
    },
    {
        "value": "postCode",
        "label": "Postal codes"
    },
    {
        "value": "airport",
        "label": "Airports"
    },
    {
        "value": "poi",
        "label": "Points of interest"
    },
    {
        "value": "state",
        "label": "States and regions"
    },
    {
        "value": "county",
        "label": "Counties"
    },
    {
        "value": "country",
        "label": "Countries"
    }
]
获取位置类型 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45600/get+location+types' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出 /location/nearby 端点的“type”参数接受的值
Endpoint ID: 45601
GET https://zylalabs.com/api/16045/weather+com+api/45601/get+nearby+types
输入参数

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

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

API 示例响应
JSON
[
    {
        "value": "airport",
        "label": "Airports, heliports and seaplane bases"
    },
    {
        "value": "observation",
        "label": "Weather observation stations"
    },
    {
        "value": "pws",
        "label": "Personal weather stations"
    },
    {
        "value": "ski",
        "label": "Ski resorts"
    }
]
获取附近类型 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45601/get+nearby+types' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出 /air-quality/current 端点的“scale”参数可接受的值,这些值采用的国家空气质量指数标准
Endpoint ID: 45602
GET https://zylalabs.com/api/16045/weather+com+api/45602/get+air+quality+scales
输入参数

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

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

API 示例响应
JSON
[
    {
        "value": "EPA",
        "label": "United States (EPA AQI)"
    },
    {
        "value": "CAQI",
        "label": "Europe (Common Air Quality Index)"
    },
    {
        "value": "DAQI",
        "label": "United Kingdom (Daily Air Quality Index)"
    },
    {
        "value": "ATMO",
        "label": "France (ATMO)"
    },
    {
        "value": "UBA",
        "label": "Germany (UBA)"
    },
    {
        "value": "HJ6332012",
        "label": "China (HJ 633-2012)"
    },
    {
        "value": "NAQI",
        "label": "India (National Air Quality Index)"
    },
    {
        "value": "IMECA",
        "label": "Mexico (IMECA)"
    }
]
获取空气质量等级 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45602/get+air+quality+scales' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
列出 /index/forecast 端点的“type”参数所接受的值,该端点可预测未来 15 天的健康和活动指数
Endpoint ID: 45603
GET https://zylalabs.com/api/16045/weather+com+api/45603/get+index+types
输入参数

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

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

API 示例响应
JSON
[
    {
        "value": "achePain",
        "label": "Aches and pains"
    },
    {
        "value": "breathing",
        "label": "Breathing"
    },
    {
        "value": "drivingDifficulty",
        "label": "Driving difficulty"
    },
    {
        "value": "frizz",
        "label": "Hair frizz"
    },
    {
        "value": "frost",
        "label": "Frost potential"
    },
    {
        "value": "golf",
        "label": "Golf"
    },
    {
        "value": "heatCool",
        "label": "Heating and cooling"
    },
    {
        "value": "mosquito",
        "label": "Mosquito activity"
    },
    {
        "value": "pollen",
        "label": "Pollen"
    },
    {
        "value": "runWeather",
        "label": "Running weather"
    },
    {
        "value": "travel",
        "label": "Travel"
    },
    {
        "value": "uv",
        "label": "UV"
    }
]
获取索引类型 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45603/get+index+types' --header 'Authorization: Bearer YOUR_API_KEY' 


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

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

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

API 示例响应
JSON
[
    {
        "value": "all",
        "label": "All basins"
    },
    {
        "value": "AL",
        "label": "Atlantic"
    },
    {
        "value": "EP",
        "label": "Eastern Pacific"
    },
    {
        "value": "CP",
        "label": "Central Pacific"
    },
    {
        "value": "WP",
        "label": "Western Pacific"
    },
    {
        "value": "IO",
        "label": "North Indian Ocean"
    },
    {
        "value": "SH",
        "label": "Southern Hemisphere"
    }
]
获取热带盆地 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45604/get+tropical+basins' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回所选国家标准下某地点当前的空气质量:指数、类别及其颜色、主要污染物、所有污染物(臭氧、PM2.5、PM10、二氧化氮、二氧化硫、一氧化碳)及其浓度、指数和类别,以及该标准的健康建议
Endpoint ID: 45605
GET https://zylalabs.com/api/16045/weather+com+api/45605/get+air+quality
输入参数

获取空气质量 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
scale 可选 Optional air quality scale, e.g. "EPA", "CAQI" or "DAQI" (defaults to "EPA"). Use the /general/air-quality-scales 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
scale
language
API 示例响应
JSON
{
    "scale": "EPA",
    "latitude": 40.72,
    "longitude": -74,
    "source": "Contains Copernicus Atmosphere Monitoring Service information 2026 and/or modified Copernicus Atmosphere Monitoring Service information 2026. May also contain SILAM information and/or modified SILAM information from the Finnish Meteorological Institute, made available via https://en.ilmatieteenlaitos.fi/open-data-licence",
    "disclaimer": "Neither the European Commission nor ECMWF is responsible for any use of this information.",
    "air_quality_index": 84,
    "air_quality_category": "Moderate",
    "air_quality_category_index": 2,
    "air_quality_category_index_color": "FFFF24",
    "primary_pollutant": "PM2.5",
    "pollutants": [
        {
            "name": "CO",
            "phrase": "Carbon Monoxide",
            "amount": 566.67,
            "unit": "µg/m3",
            "category": "Good",
            "category_index": 1,
            "index": 5
        },
        {
            "name": "NO2",
            "phrase": "Nitrogen Dioxide",
            "amount": 52.87,
            "unit": "µg/m3",
            "category": "Good",
            "category_index": 1,
            "index": 25
        },
        {
            "name": "O3",
            "phrase": "Ozone",
            "amount": 11.42,
            "unit": "µg/m3",
            "category": "Good",
            "category_index": 1,
            "index": 7
        },
        {
            "name": "PM10",
            "phrase": "Particulate matter less than 10 microns",
            "amount": 39.28,
            "unit": "µg/m3",
            "category": "Good",
            "category_index": 1,
            "index": 34
        },
        {
            "name": "PM2.5",
            "phrase": "Particulate matter less than 2.5 microns",
            "amount": 29.03,
            "unit": "µg/m3",
            "category": "Moderate",
            "category_index": 2,
            "index": 84
        },
        {
            "name": "SO2",
            "phrase": "Sulfur Dioxide",
            "amount": 2.23,
            "unit": "µg/m3",
            "category": "Good",
            "category_index": 1,
            "index": 1
        }
    ],
    "messages": [
        {
            "title": "General",
            "text": "Air quality is acceptable; however, for some pollutants there may be a moderate health concern for a very small number of people who are unusually sensitive to air pollution."
        },
        {
            "title": "Sensitive Groups",
            "text": "Consider reducing prolonged or heavy exertion. Watch for symptoms such as coughing or shortness of breath. These are signs to take it easier."
        }
    ]
}
获取空气质量 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45605/get+air+quality?location=40.71,-74.01&scale=EPA&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回未来 5 天的花粉预报:每天的总花粉、树木花粉、草类花粉和杂草花粉计数、风险和指数(最低值、最高值和平均值),以及每种花粉(橡树、桦树、豚草等)的相同信息
Endpoint ID: 45606
GET https://zylalabs.com/api/16045/weather+com+api/45606/get+pollen+forecast
输入参数

获取花粉预报 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. 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
[
    {
        "valid_time_utc": 1796360400,
        "valid_time_local": "2026-12-04T00:00:00-0500",
        "day_of_week": "Friday",
        "total_pollen_count_min": 14,
        "total_pollen_count_max": 26,
        "total_pollen_count_mean": 17,
        "total_pollen_risk_min": "Low",
        "total_pollen_risk_max": "Low",
        "total_pollen_risk_mean": "Low",
        "total_pollen_index_min": 1,
        "total_pollen_index_max": 1,
        "total_pollen_index_mean": 1,
        "grass_pollen_count_min": 0,
        "grass_pollen_count_max": 0,
        "grass_pollen_count_mean": 0,
        "grass_pollen_risk_min": "Low",
        "grass_pollen_risk_max": "Low",
        "grass_pollen_risk_mean": "Low",
        "grass_pollen_index_min": 1,
        "grass_pollen_index_max": 1,
        "grass_pollen_index_mean": 1,
        "tree_pollen_count_min": 13,
        "tree_pollen_count_max": 24,
        "tree_pollen_count_mean": 16,
        "tree_pollen_risk_min": "Low",
        "tree_pollen_risk_max": "Low",
        "tree_pollen_risk_mean": "Low",
        "tree_pollen_index_min": 1,
        "tree_pollen_index_max": 1,
        "tree_pollen_index_mean": 1,
        "weed_pollen_count_min": 1,
        "weed_pollen_count_max": 2,
        "weed_pollen_count_mean": 1,
        "weed_pollen_risk_min": "Low",
        "weed_pollen_risk_max": "Low",
        "weed_pollen_risk_mean": "Low",
        "weed_pollen_index_min": 1,
        "weed_pollen_index_max": 1,
        "weed_pollen_index_mean": 1,
        "species": [
            {
                "group": "Grass",
                "name": "Grass",
                "count_min": 0,
                "count_max": 0,
                "count_mean": 0,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            },
            {
                "group": "Tree",
                "name": "Oak",
                "count_min": 0,
                "count_max": 0,
                "count_mean": 0,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            },
            {
                "group": "Tree",
                "name": "Ash",
                "count_min": 0,
                "count_max": 0,
                "count_mean": 0,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            },
            {
                "group": "Tree",
                "name": "Birch",
                "count_min": 0,
                "count_max": 0,
                "count_mean": 0,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            },
            {
                "group": "Tree",
                "name": "Cypress / Juniper / Cedar",
                "count_min": 9,
                "count_max": 16,
                "count_mean": 11,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            },
            {
                "group": "Tree",
                "name": "Elm",
                "count_min": 0,
                "count_max": 0,
                "count_mean": 0,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            },
            {
                "group": "Tree",
                "name": "Maple",
                "count_min": 0,
                "count_max": 0,
                "count_mean": 0,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            },
            {
                "group": "Tree",
                "name": "Mulberry",
                "count_min": 0,
                "count_max": 0,
                "count_mean": 0,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            },
            {
                "group": "Tree",
                "name": "Pine",
                "count_min": 0,
                "count_max": 0,
                "count_mean": 0,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            },
            {
                "group": "Tree",
                "name": "Poplar / Cottonwood",
                "count_min": 0,
                "count_max": 0,
                "count_mean": 0,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            },
            {
                "group": "Weed",
                "name": "Ragweed",
                "count_min": 1,
                "count_max": 2,
                "count_mean": 1,
                "risk_min": "Low",
                "risk_max": "Low",
                "risk_mean": "Low",
                "index_min": 1,
                "index_max": 1,
                "index_mean": 1
            }
        ]
    }
]
获取花粉预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45606/get+pollen+forecast?location=40.71,-74.01&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回过去十年每个月的总花粉树木花粉草类花粉和豚草花粉平均计数以及各自的峰值月份和峰值计数
Endpoint ID: 45607
GET https://zylalabs.com/api/16045/weather+com+api/45607/get+pollen+history
输入参数

获取花粉历史记录 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. 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
{
    "data_start_year": "2016",
    "data_end_year": "2025",
    "total_pollen_count_max": 261.3,
    "total_pollen_peak_month": 4,
    "tree_pollen_count_max": 261.2,
    "tree_pollen_peak_month": 4,
    "grass_pollen_count_max": 18.6,
    "grass_pollen_peak_month": 6,
    "ragweed_pollen_count_max": 53.4,
    "ragweed_pollen_peak_month": 10,
    "months": [
        {
            "month": 1,
            "month_name": "January",
            "total_pollen_count_avg": 32,
            "tree_pollen_count_avg": 32,
            "grass_pollen_count_avg": 0,
            "ragweed_pollen_count_avg": 0
        },
        {
            "month": 2,
            "month_name": "February",
            "total_pollen_count_avg": 71.4,
            "tree_pollen_count_avg": 71.4,
            "grass_pollen_count_avg": 0,
            "ragweed_pollen_count_avg": 0
        },
        {
            "month": 3,
            "month_name": "March",
            "total_pollen_count_avg": 147.3,
            "tree_pollen_count_avg": 147.3,
            "grass_pollen_count_avg": 0,
            "ragweed_pollen_count_avg": 0
        },
        {
            "month": 4,
            "month_name": "April",
            "total_pollen_count_avg": 261.3,
            "tree_pollen_count_avg": 261.2,
            "grass_pollen_count_avg": 0,
            "ragweed_pollen_count_avg": 0
        },
        {
            "month": 5,
            "month_name": "May",
            "total_pollen_count_avg": 195.8,
            "tree_pollen_count_avg": 188.9,
            "grass_pollen_count_avg": 6.8,
            "ragweed_pollen_count_avg": 0
        },
        {
            "month": 6,
            "month_name": "June",
            "total_pollen_count_avg": 56.2,
            "tree_pollen_count_avg": 35.9,
            "grass_pollen_count_avg": 18.6,
            "ragweed_pollen_count_avg": 1.7
        },
        {
            "month": 7,
            "month_name": "July",
            "total_pollen_count_avg": 25,
            "tree_pollen_count_avg": 0.2,
            "grass_pollen_count_avg": 16,
            "ragweed_pollen_count_avg": 8.8
        },
        {
            "month": 8,
            "month_name": "August",
            "total_pollen_count_avg": 42.8,
            "tree_pollen_count_avg": 16.6,
            "grass_pollen_count_avg": 3.5,
            "ragweed_pollen_count_avg": 22.7
        },
        {
            "month": 9,
            "month_name": "September",
            "total_pollen_count_avg": 92.3,
            "tree_pollen_count_avg": 45.3,
            "grass_pollen_count_avg": 0,
            "ragweed_pollen_count_avg": 46.9
        },
        {
            "month": 10,
            "month_name": "October",
            "total_pollen_count_avg": 53.8,
            "tree_pollen_count_avg": 0.4,
            "grass_pollen_count_avg": 0,
            "ragweed_pollen_count_avg": 53.4
        },
        {
            "month": 11,
            "month_name": "November",
            "total_pollen_count_avg": 16.5,
            "tree_pollen_count_avg": 0,
            "grass_pollen_count_avg": 0,
            "ragweed_pollen_count_avg": 16.5
        },
        {
            "month": 12,
            "month_name": "December",
            "total_pollen_count_avg": 14.9,
            "tree_pollen_count_avg": 14.8,
            "grass_pollen_count_avg": 0,
            "ragweed_pollen_count_avg": 0.1
        }
    ]
}
获取花粉历史记录 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45607/get+pollen+history?location=40.71,-74.01&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回未来15天每个白天和夜晚的健康或活动指数及其数值和类别:疼痛、呼吸、驾驶难度、头发毛躁、霜冻、高尔夫、供暖和制冷、蚊虫活动、花粉、跑步天气、旅行或紫外线
Endpoint ID: 45608
GET https://zylalabs.com/api/16045/weather+com+api/45608/get+index+forecast
输入参数

获取指数预测 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
type 必需 Index type, e.g. "runWeather", "achePain" or "golf". 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
type
language
API 示例响应
JSON
{
    "dayparts": [
        {
            "valid_time_local": "2026-12-04T07:00:00-0500",
            "day_or_night": "D",
            "daypart_name": "Today",
            "long_run_weather_index": 7,
            "long_run_weather_category": "Good",
            "short_run_weather_index": 7,
            "short_run_weather_category": "Good"
        },
        {
            "valid_time_local": "2026-12-04T19:00:00-0500",
            "day_or_night": "N",
            "daypart_name": "Tonight",
            "long_run_weather_index": 1,
            "long_run_weather_category": "Very Poor",
            "short_run_weather_index": 1,
            "short_run_weather_category": "Very Poor"
        },
        {
            "valid_time_local": "2026-12-05T07:00:00-0500",
            "day_or_night": "D",
            "daypart_name": "Tomorrow",
            "long_run_weather_index": 6,
            "long_run_weather_category": "Fair",
            "short_run_weather_index": 6,
            "short_run_weather_category": "Fair"
        },
        {
            "valid_time_local": "2026-12-05T19:00:00-0500",
            "day_or_night": "N",
            "daypart_name": "Tomorrow night",
            "long_run_weather_index": 8,
            "long_run_weather_category": "Good",
            "short_run_weather_index": 7,
            "short_run_weather_category": "Good"
        },
        {
            "valid_time_local": "2026-12-06T07:00:00-0500",
            "day_or_night": "D",
            "daypart_name": "Sunday",
            "long_run_weather_index": 8,
            "long_run_weather_category": "Good",
            "short_run_weather_index": 7,
            "short_run_weather_category": "Good"
        },
        {
            "valid_time_local": "2026-12-06T19:00:00-0500",
            "day_or_night": "N",
            "daypart_name": "Sunday night",
            "long_run_weather_index": 1,
            "long_run_weather_category": "Very Poor",
            "short_run_weather_index": 1,
            "short_run_weather_category": "Very Poor"
        },
        {
            "valid_time_local": "2026-12-07T07:00:00-0500",
            "day_or_night": "D",
            "daypart_name": "Monday",
            "long_run_weather_index": 4,
            "long_run_weather_category": "Poor",
            "short_run_weather_index": 4,
            "short_run_weather_category": "Poor"
        },
        {
            "valid_time_local": "2026-12-07T19:00:00-0500",
            "day_or_night": "N",
            "daypart_name": "Monday night",
            "long_run_weather_index": 7,
            "long_run_weather_category": "Good",
            "short_run_weather_index": 5,
            "short_run_weather_category": "Fair"
        },
        {
            "valid_time_local": "2026-12-08T07:00:00-0500",
            "day_or_night": "D",
            "daypart_name": "Tuesday",
            "long_run_weather_index": 8,
            "long_run_weather_category": "Good",
            "short_run_weather_index": 7,
            "short_run_weather_category": "Good"
        },
        {
            "valid_time_local": "2026-12-08T19:00:00-0500",
            "day_or_night": "N",
            "daypart_name": "Tuesday night",
            "long_run_weather_index": 7,
            "long_run_weather_category": "Good",
            "short_run_weather_index": 5,
            "short_run_weather_category": "Fair"
        },
        {
            "valid_time_local": "2026-12-09T07:00:00-0500",
            "day_or_night": "D",
            "daypart_name": "Wednesday",
            "long_run_weather_index": 9,
            "long_run_weather_category": "Very Good",
            "short_run_weather_index": 8,
            "short_run_weather_category": "Good"
        },
        {
            "valid_time_local": "2026-12-09T19:00:00-0500",
            "day_or_night": "N",
            "daypart_name": "Wednesday night",
            "long_run_weather_index": 7,
            "long_run_weather_category": "Good",
            "short_run_weather_index": 5,
            "short_run_weather_category": "Fair"
        },
        {
            "valid_time_local": "2026-12-10T07:00:00-0500",
            "day_or_night": "D",
            "daypart_name": "Thursday",
            "long_run_weather_index": 8,
            "long_run_weather_category": "Good",
            "short_run_weather_index": 7,
            "short_run_weather_category": "Good"
        },
        {
            "valid_time_local": "2026-12-10T19:00:00-0500",
            "day_or_night": "N",
            "daypart_name": "Thursday night",
            "long_run_weather_index": 7,
            "long_run_weather_category": "Good",
            "short_run_weather_index": 5,
            "short_run_weather_category": "Fair"
        },
        {
            "valid_time_local": "2026-12-11T07:00:00-0500",
            "day_or_night": "D",
            "daypart_name": "Friday",
            "long_run_weather_index": 8,
            "long_run_weather_category": "Good",
            "short_run_weather_index": 7,
            "short_run_weather_category": "Good"
        }
    ]
}
获取指数预测 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45608/get+index+forecast?location=40.71,-74.01&type=runWeather&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回过去24小时内某地点每小时观测到的天气数据,与 /weather/current 端点返回的数据相同
Endpoint ID: 45609
GET https://zylalabs.com/api/16045/weather+com+api/45609/get+hourly+weather+history
输入参数

获取每小时天气历史记录 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
units
language
API 示例响应
JSON
[
    {
        "cloud_ceiling": null,
        "day_of_week": "Friday",
        "day_or_night": "N",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "precip24_hour": 0,
        "pressure_altimeter": 1025.7,
        "pressure_change": 1.6,
        "pressure_mean_sea_level": 1025.8,
        "pressure_tendency_code": 1,
        "pressure_tendency_trend": "Rising",
        "relative_humidity": 89,
        "snow24_hour": 0,
        "sunrise_time_local": "2026-12-04T07:03:40-0500",
        "sunrise_time_utc": 1796385820,
        "sunset_time_local": "2026-12-04T16:28:59-0500",
        "sunset_time_utc": 1796419739,
        "temperature": 9,
        "temperature_change24_hour": 2,
        "temperature_dew_point": 7,
        "temperature_feels_like": 7,
        "temperature_heat_index": 9,
        "temperature_max24_hour": 14,
        "temperature_max_since7_am": 14,
        "temperature_min24_hour": 5,
        "temperature_wind_chill": 8,
        "uv_description": "Low",
        "uv_index": 0,
        "valid_time_local": "2026-12-04T06:00:00-0500",
        "valid_time_utc": 1796382000,
        "visibility": 16,
        "wind_direction": 270,
        "wind_direction_cardinal": "W",
        "wind_gust": null,
        "wind_speed": 9,
        "wx_phrase_long": "Fair"
    },
    {
        "cloud_ceiling": null,
        "day_of_week": "Friday",
        "day_or_night": "N",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "precip24_hour": 0,
        "pressure_altimeter": 1025,
        "pressure_change": 1.3,
        "pressure_mean_sea_level": 1025.1,
        "pressure_tendency_code": 1,
        "pressure_tendency_trend": "Rising",
        "relative_humidity": 89,
        "snow24_hour": 0,
        "sunrise_time_local": "2026-12-04T07:03:40-0500",
        "sunrise_time_utc": 1796385820,
        "sunset_time_local": "2026-12-04T16:28:59-0500",
        "sunset_time_utc": 1796419739,
        "temperature": 9,
        "temperature_change24_hour": 3,
        "temperature_dew_point": 7,
        "temperature_feels_like": 8,
        "temperature_heat_index": 9,
        "temperature_max24_hour": 14,
        "temperature_max_since7_am": 14,
        "temperature_min24_hour": 5,
        "temperature_wind_chill": 8,
        "uv_description": "Low",
        "uv_index": 0,
        "valid_time_local": "2026-12-04T05:00:00-0500",
        "valid_time_utc": 1796378400,
        "visibility": 16,
        "wind_direction": 250,
        "wind_direction_cardinal": "WSW",
        "wind_gust": null,
        "wind_speed": 8,
        "wx_phrase_long": "Fair"
    },
    {
        "cloud_ceiling": null,
        "day_of_week": "Friday",
        "day_or_night": "N",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "precip24_hour": 0,
        "pressure_altimeter": 1024.3,
        "pressure_change": 1,
        "pressure_mean_sea_level": 1024.2,
        "pressure_tendency_code": 1,
        "pressure_tendency_trend": "Rising",
        "relative_humidity": 87,
        "snow24_hour": 0,
        "sunrise_time_local": "2026-12-04T07:03:40-0500",
        "sunrise_time_utc": 1796385820,
        "sunset_time_local": "2026-12-04T16:28:59-0500",
        "sunset_time_utc": 1796419739,
        "temperature": 9,
        "temperature_change24_hour": 3,
        "temperature_dew_point": 7,
        "temperature_feels_like": 8,
        "temperature_heat_index": 9,
        "temperature_max24_hour": 14,
        "temperature_max_since7_am": 14,
        "temperature_min24_hour": 5,
        "temperature_wind_chill": 8,
        "uv_description": "Low",
        "uv_index": 0,
        "valid_time_local": "2026-12-04T04:00:00-0500",
        "valid_time_utc": 1796374800,
        "visibility": 16,
        "wind_direction": 240,
        "wind_direction_cardinal": "WSW",
        "wind_gust": null,
        "wind_speed": 8,
        "wx_phrase_long": "Fair"
    },
    {
        "cloud_ceiling": null,
        "day_of_week": "Friday",
        "day_or_night": "N",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "precip24_hour": 0,
        "pressure_altimeter": 1023.7,
        "pressure_change": 0.3,
        "pressure_mean_sea_level": 1023.8,
        "pressure_tendency_code": 1,
        "pressure_tendency_trend": "Rising",
        "relative_humidity": 87,
        "snow24_hour": 0,
        "sunrise_time_local": "2026-12-04T07:03:40-0500",
        "sunrise_time_utc": 1796385820,
        "sunset_time_local": "2026-12-04T16:28:59-0500",
        "sunset_time_utc": 1796419739,
        "temperature": 9,
        "temperature_change24_hour": 3,
        "temperature_dew_point": 7,
        "temperature_feels_like": 8,
        "temperature_heat_index": 9,
        "temperature_max24_hour": 14,
        "temperature_max_since7_am": 14,
        "temperature_min24_hour": 5,
        "temperature_wind_chill": 8,
        "uv_description": "Low",
        "uv_index": 0,
        "valid_time_local": "2026-12-04T03:00:00-0500",
        "valid_time_utc": 1796371200,
        "visibility": 16,
        "wind_direction": 250,
        "wind_direction_cardinal": "WSW",
        "wind_gust": null,
        "wind_speed": 9,
        "wx_phrase_long": "Fair"
    },
    {
        "cloud_ceiling": null,
        "day_of_week": "Friday",
        "day_or_night": "N",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "precip24_hour": 0,
        "pressure_altimeter": 1023.3,
        "pressure_change": 0,
        "pressure_mean_sea_level": 1023.5,
        "pressure_tendency_code": 0,
        "pressure_tendency_trend": "Steady",
        "relative_humidity": 84,
        "snow24_hour": 0,
        "sunrise_time_local": "2026-12-04T07:03:40-0500",
        "sunrise_time_utc": 1796385820,
        "sunset_time_local": "2026-12-04T16:28:59-0500",
        "sunset_time_utc": 1796419739,
        "temperature": 10,
        "temperature_change24_hour": 3,
        "temperature_dew_point": 7,
        "temperature_feels_like": 8,
        "temperature_heat_index": 10,
        "temperature_max24_hour": 14,
        "temperature_max_since7_am": 14,
        "temperature_min24_hour": 5,
        "temperature_wind_chill": 8,
        "uv_description": "Low",
        "uv_index": 0,
        "valid_time_local": "2026-12-04T02:00:00-0500",
        "valid_time_utc": 1796367600,
        "visibility": 16,
        "wind_direction": 250,
        "wind_direction_cardinal": "WSW",
        "wind_gust": null,
        "wind_speed": 11,
        "wx_phrase_long": "Fair"
    },
    {
        "cloud_ceiling": null,
        "day_of_week": "Friday",
        "day_or_night": "N",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "precip24_hour": 0,
        "pressure_altimeter": 1023.3,
        "pressure_change": 0,
        "pressure_mean_sea_level": 1023.5,
        "pressure_tendency_code": 0,
        "pressure_tendency_trend": "Steady",
        "relative_humidity": 81,
        "snow24_hour": 0,
        "sunrise_time_local": "2026-12-04T07:03:40-0500",
        "sunrise_time_utc": 1796385820,
        "sunset_time_local": "2026-12-04T16:28:59-0500",
        "sunset_time_utc": 1796419739,
        "temperature": 10,
        "temperature_change24_hour": 3,
        "temperature_dew_point": 7,
        "temperature_feels_like": 8,
        "temperature_heat_index": 10,
        "temperature_max24_hour": 14,
        "temperature_max_since7_am": 14,
        "temperature_min24_hour": 5,
        "temperature_wind_chill": 9,
        "uv_description": "Low",
        "uv_index": 0,
        "valid_time_local": "2026-12-04T01:00:00-0500",
        "valid_time_utc": 1796364000,
        "visibility": 16,
        "wind_direction": 270,
        "wind_direction_cardinal": "W",
        "wind_gust": null,
        "wind_speed": 11,
        "wx_phrase_long": "Fair"
    }
]
获取每小时天气历史记录 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45609/get+hourly+weather+history?location=40.71,-74.01&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回过去30天内某地点每日观测天气的摘要:最高和最低气温、降水量和降雪量,按日期从新到旧排列
Endpoint ID: 45610
GET https://zylalabs.com/api/16045/weather+com+api/45610/get+daily+weather+history
输入参数

获取每日天气历史记录 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
units
language
API 示例响应
JSON
[
    {
        "day_of_week": "Thursday",
        "icon_code_day": 30,
        "icon_code_extend_day": 3000,
        "icon_code_extend_night": 2900,
        "icon_code_night": 29,
        "precip24_hour": 0,
        "rain24_hour": 0,
        "snow24_hour": 0,
        "temperature_max": 14,
        "temperature_min": 8,
        "valid_time_local": "2026-12-03T07:00:00-0500",
        "valid_time_utc": 1796299200,
        "wx_phrase_long_day": "Partly Cloudy",
        "wx_phrase_long_night": "Partly Cloudy"
    },
    {
        "day_of_week": "Wednesday",
        "icon_code_day": 32,
        "icon_code_extend_day": 3200,
        "icon_code_extend_night": 2900,
        "icon_code_night": 29,
        "precip24_hour": 0,
        "rain24_hour": 0,
        "snow24_hour": 0,
        "temperature_max": 11,
        "temperature_min": 5,
        "valid_time_local": "2026-12-02T07:00:00-0500",
        "valid_time_utc": 1796212800,
        "wx_phrase_long_day": "Sunny",
        "wx_phrase_long_night": "Partly Cloudy"
    },
    {
        "day_of_week": "Tuesday",
        "icon_code_day": 30,
        "icon_code_extend_day": 3000,
        "icon_code_extend_night": 2900,
        "icon_code_night": 29,
        "precip24_hour": 0,
        "rain24_hour": 0,
        "snow24_hour": 0,
        "temperature_max": 11,
        "temperature_min": 3,
        "valid_time_local": "2026-12-01T07:00:00-0500",
        "valid_time_utc": 1796126400,
        "wx_phrase_long_day": "Partly Cloudy",
        "wx_phrase_long_night": "Partly Cloudy"
    },
    {
        "day_of_week": "Monday",
        "icon_code_day": 12,
        "icon_code_extend_day": 6303,
        "icon_code_extend_night": 2700,
        "icon_code_night": 27,
        "precip24_hour": 0.25,
        "rain24_hour": 0.25,
        "snow24_hour": 0,
        "temperature_max": 15,
        "temperature_min": 5,
        "valid_time_local": "2026-11-30T07:00:00-0500",
        "valid_time_utc": 1796040000,
        "wx_phrase_long_day": "AM Rain",
        "wx_phrase_long_night": "Mostly Cloudy"
    },
    {
        "day_of_week": "Sunday",
        "icon_code_day": 30,
        "icon_code_extend_day": 3000,
        "icon_code_extend_night": 7300,
        "icon_code_night": 12,
        "precip24_hour": 14.22,
        "rain24_hour": 14.22,
        "snow24_hour": 0,
        "temperature_max": 15,
        "temperature_min": 10,
        "valid_time_local": "2026-11-29T07:00:00-0500",
        "valid_time_utc": 1795953600,
        "wx_phrase_long_day": "Partly Cloudy",
        "wx_phrase_long_night": "Rain Late"
    },
    {
        "day_of_week": "Saturday",
        "icon_code_day": 26,
        "icon_code_extend_day": 2600,
        "icon_code_extend_night": 3100,
        "icon_code_night": 31,
        "precip24_hour": 0,
        "rain24_hour": 0,
        "snow24_hour": 0,
        "temperature_max": 12,
        "temperature_min": 6,
        "valid_time_local": "2026-11-28T07:00:00-0500",
        "valid_time_utc": 1795867200,
        "wx_phrase_long_day": "Cloudy",
        "wx_phrase_long_night": "Clear"
    },
    {
        "day_of_week": "Friday",
        "icon_code_day": 12,
        "icon_code_extend_day": 7303,
        "icon_code_extend_night": 6110,
        "icon_code_night": 45,
        "precip24_hour": 3.81,
        "rain24_hour": 3.81,
        "snow24_hour": 0,
        "temperature_max": 13,
        "temperature_min": 6,
        "valid_time_local": "2026-11-27T07:00:00-0500",
        "valid_time_utc": 1795780800,
        "wx_phrase_long_day": "PM Rain",
        "wx_phrase_long_night": "Showers/Wind Early"
    },
    {
        "day_of_week": "Thursday",
        "icon_code_day": 12,
        "icon_code_extend_day": 1210,
        "icon_code_extend_night": 1210,
        "icon_code_night": 12,
        "precip24_hour": 32.25,
        "rain24_hour": 32.26,
        "snow24_hour": 0,
        "temperature_max": 9,
        "temperature_min": 8,
        "valid_time_local": "2026-11-26T07:00:00-0500",
        "valid_time_utc": 1795694400,
        "wx_phrase_long_day": "Rain/Wind",
        "wx_phrase_long_night": "Rain/Wind"
    },
    {
        "day_of_week": "Wednesday",
        "icon_code_day": 30,
        "icon_code_extend_day": 3000,
        "icon_code_extend_night": 2710,
        "icon_code_night": 24,
        "precip24_hour": 0,
        "rain24_hour": 0,
        "snow24_hour": 0,
        "temperature_max": 8,
        "temperature_min": 6,
        "valid_time_local": "2026-11-25T07:00:00-0500",
        "valid_time_utc": 1795608000,
        "wx_phrase_long_day": "Partly Cloudy",
        "wx_phrase_long_night": "Mostly Cloudy/Wind"
    },
    {
        "day_of_week": "Tuesday",
        "icon_code_day": 32,
        "icon_code_extend_day": 3200,
        "icon_code_extend_night": 3100,
        "icon_code_night": 31,
        "precip24_hour": 0,
        "rain24_hour": 0,
        "snow24_hour": 0,
        "temperature_max": 10,
        "temperature_min": 2,
        "valid_time_local": "2026-11-24T07:00:00-0500",
        "valid_time_utc": 1795521600,
        "wx_phrase_long_day": "Sunny",
        "wx_phrase_long_night": "Clear"
    },
    {
        "day_of_week": "Monday",
        "icon_code_day": 28,
        "icon_code_extend_day": 2800,
        "icon_code_extend_night": 9000,
        "icon_code_night": 29,
        "precip24_hour": 0,
        "rain24_hour": 0,
        "snow24_hour": 0,
        "temperature_max": 20,
        "temperature_min": 6,
        "valid_time_local": "2026-11-23T07:00:00-0500",
        "valid_time_utc": 1795435200,
        "wx_phrase_long_day": "Mostly Cloudy",
        "wx_phrase_long_night": "Clouds Early/Clearing Late"
    },
    {
        "day_of_week": "Sunday",
        "icon_code_day": 39,
        "icon_code_extend_day": 7103,
        "icon_code_extend_night": 2600,
        "icon_code_night": 26,
        "precip24_hour": 0.5,
        "rain24_hour": 0.51,
        "snow24_hour": 0,
        "temperature_max": 15,
        "temperature_min": 14,
        "valid_time_local": "2026-11-22T07:00:00-0500",
        "valid_time_utc": 1795348800,
        "wx_phrase_long_day": "PM Showers",
        "wx_phrase_long_night": "Cloudy"
    },
    {
        "day_of_week": "Saturday",
        "icon_code_day": 30,
        "icon_code_extend_day": 3000,
        "icon_code_extend_night": 9300,
        "icon_code_night": 20,
        "precip24_hour": 0,
        "rain24_hour": 0,
        "snow24_hour": 0,
        "temperature_max": 19,
        "temperature_min": 11,
        "valid_time_local": "2026-11-21T07:00:00-0500",
        "valid_time_utc": 1795262400,
        "wx_phrase_long_day": "Partly Cloudy",
        "wx_phrase_long_night": "Fog Late"
    },
    {
        "day_of_week": "Friday",
        "icon_code_day": 32,
        "icon_code_extend_day": 3200,
        "icon_code_extend_night": 3300,
        "icon_code_night": 33,
        "precip24_hour": 0,
        "rain24_hour": 0,
        "snow24_hour": 0,
        "temperature_max": 21,
        "temperature_min": 10,
        "valid_time_local": "2026-11-20T07:00:00-0500",
        "valid_time_utc": 1795176000,
        "wx_phrase_long_day": "Sunny",
        "wx_phrase_long_night": "Mostly Clear"
    },
    {
        "day_of_week": "Thursday",
        "icon_code_day": 32,
        "icon_code_extend_day": 3200,
        "icon_code_extend_night": 2900,
        "icon_code_night": 29,
        "precip24_hour": 0,
        "rain24_hour": 0,
        "snow24_hour": 0,
        "temperature_max": 19,
        "temperature_min": 8,
        "valid_time_local": "2026-11-19T07:00:00-0500",
        "valid_time_utc": 1795089600,
        "wx_phrase_long_day": "Sunny",
        "wx_phrase_long_night": "Partly Cloudy"
    }
]
获取每日天气历史记录 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45610/get+daily+weather+history?location=40.71,-74.01&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回两个日期之间距离某个位置最近的气象站的所有天气观测数据,每次最多31天,通常每小时一到两条:温度、体感温度、露点、热指数、风寒指数、湿度、气压、能见度、风、降水、降雪、云量、紫外线指数和天气描述。数据可追溯至数年前;没有观测记录的日期会返回404 乐彩
Endpoint ID: 45611
GET https://zylalabs.com/api/16045/weather+com+api/45611/get+historical+weather+observations
输入参数

获取历史天气观测记录 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
start_date 必需 First day, in YYYY-MM-DD format (e.g. "2025-11-01"), from 2000-01-01 to today.
end_date 可选 Optional last day, in YYYY-MM-DD format, at most 30 days after "start_date" (defaults to "start_date").
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
start_date
end_date
units
language
API 示例响应
JSON
[
    {
        "station_id": "KJRB",
        "station_name": "New York/Battery",
        "valid_time_utc": "2025-11-01T04:56:00Z",
        "day_or_night": "N",
        "temperature": 12,
        "temperature_feels_like": 12,
        "temperature_dew_point": 1,
        "temperature_heat_index": 12,
        "temperature_wind_chill": 12,
        "temperature_max": null,
        "temperature_min": null,
        "relative_humidity": 47,
        "pressure": 1004.5,
        "pressure_tendency": null,
        "visibility": 16,
        "wind_direction": null,
        "wind_direction_cardinal": "VAR",
        "wind_speed": 7,
        "wind_gust": null,
        "precipitation_hourly": 0,
        "precipitation_total": null,
        "snow_hourly": null,
        "clouds": "CLR",
        "uv_index": 0,
        "uv_description": "Low",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "phrase": "Fair",
        "water_temperature": null,
        "wave_height": null,
        "wave_period": null
    },
    {
        "station_id": "KJRB",
        "station_name": "New York/Battery",
        "valid_time_utc": "2025-11-01T05:56:00Z",
        "day_or_night": "N",
        "temperature": 12,
        "temperature_feels_like": 12,
        "temperature_dew_point": 1,
        "temperature_heat_index": 12,
        "temperature_wind_chill": 12,
        "temperature_max": null,
        "temperature_min": null,
        "relative_humidity": 47,
        "pressure": 1005.86,
        "pressure_tendency": "Rising Rapidly",
        "visibility": 16,
        "wind_direction": null,
        "wind_direction_cardinal": "VAR",
        "wind_speed": 9,
        "wind_gust": null,
        "precipitation_hourly": 0,
        "precipitation_total": null,
        "snow_hourly": null,
        "clouds": "CLR",
        "uv_index": 0,
        "uv_description": "Low",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "phrase": "Fair",
        "water_temperature": null,
        "wave_height": null,
        "wave_period": null
    },
    {
        "station_id": "KJRB",
        "station_name": "New York/Battery",
        "valid_time_utc": "2025-11-01T06:56:00Z",
        "day_or_night": "N",
        "temperature": 12,
        "temperature_feels_like": 12,
        "temperature_dew_point": 1,
        "temperature_heat_index": 12,
        "temperature_wind_chill": 12,
        "temperature_max": null,
        "temperature_min": null,
        "relative_humidity": 47,
        "pressure": 1007.21,
        "pressure_tendency": null,
        "visibility": 16,
        "wind_direction": null,
        "wind_direction_cardinal": "VAR",
        "wind_speed": 7,
        "wind_gust": null,
        "precipitation_hourly": 0,
        "precipitation_total": null,
        "snow_hourly": null,
        "clouds": "CLR",
        "uv_index": 0,
        "uv_description": "Low",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "phrase": "Fair",
        "water_temperature": null,
        "wave_height": null,
        "wave_period": null
    },
    {
        "station_id": "KJRB",
        "station_name": "New York/Battery",
        "valid_time_utc": "2025-11-01T07:56:00Z",
        "day_or_night": "N",
        "temperature": 12,
        "temperature_feels_like": 12,
        "temperature_dew_point": 1,
        "temperature_heat_index": 12,
        "temperature_wind_chill": 12,
        "temperature_max": null,
        "temperature_min": null,
        "relative_humidity": 47,
        "pressure": 1007.89,
        "pressure_tendency": null,
        "visibility": 16,
        "wind_direction": null,
        "wind_direction_cardinal": "VAR",
        "wind_speed": 7,
        "wind_gust": null,
        "precipitation_hourly": 0,
        "precipitation_total": null,
        "snow_hourly": null,
        "clouds": "CLR",
        "uv_index": 0,
        "uv_description": "Low",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "phrase": "Fair",
        "water_temperature": null,
        "wave_height": null,
        "wave_period": null
    },
    {
        "station_id": "KJRB",
        "station_name": "New York/Battery",
        "valid_time_utc": "2025-11-01T08:56:00Z",
        "day_or_night": "N",
        "temperature": 11,
        "temperature_feels_like": 11,
        "temperature_dew_point": 1,
        "temperature_heat_index": 11,
        "temperature_wind_chill": 11,
        "temperature_max": null,
        "temperature_min": null,
        "relative_humidity": 49,
        "pressure": 1008.9,
        "pressure_tendency": "Rising Rapidly",
        "visibility": 16,
        "wind_direction": null,
        "wind_direction_cardinal": "VAR",
        "wind_speed": 9,
        "wind_gust": null,
        "precipitation_hourly": 0,
        "precipitation_total": null,
        "snow_hourly": null,
        "clouds": "CLR",
        "uv_index": 0,
        "uv_description": "Low",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "phrase": "Fair",
        "water_temperature": null,
        "wave_height": null,
        "wave_period": null
    },
    {
        "station_id": "KJRB",
        "station_name": "New York/Battery",
        "valid_time_utc": "2025-11-01T09:56:00Z",
        "day_or_night": "N",
        "temperature": 11,
        "temperature_feels_like": 11,
        "temperature_dew_point": 1,
        "temperature_heat_index": 11,
        "temperature_wind_chill": 11,
        "temperature_max": null,
        "temperature_min": null,
        "relative_humidity": 52,
        "pressure": 1009.92,
        "pressure_tendency": null,
        "visibility": 16,
        "wind_direction": 260,
        "wind_direction_cardinal": "W",
        "wind_speed": 13,
        "wind_gust": 28,
        "precipitation_hourly": 0,
        "precipitation_total": null,
        "snow_hourly": null,
        "clouds": "CLR",
        "uv_index": 0,
        "uv_description": "Low",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "phrase": "Fair",
        "water_temperature": null,
        "wave_height": null,
        "wave_period": null
    }
]
获取历史天气观测记录 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45611/get+historical+weather+observations?location=40.71,-74.01&start_date=2025-11-01&end_date=2025-11-02&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
按名称或代码搜索全球城市 邮政编码 机场 兴趣点和其他地点 并返回每个地点的地址 城市 地区 国家 坐标 时区 邮政编码和地点 ID 坐标或地点 ID 可填入其他端点的“location”参数中
Endpoint ID: 45612
GET https://zylalabs.com/api/16045/weather+com+api/45612/search+locations
输入参数

搜索位置 — 端点功能

对象 描述
query 必需 Place name, postal code or airport code (e.g. "London", "10001", "JFK").
type 可选 Optional location type, e.g. "city", "postCode" or "airport". Use the /general/location-types endpoint to list valid values.
country_code 可选 Optional two-letter ISO country code to search in (e.g. "GB").
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
[
    {
        "address": "London, Greater London, England, United Kingdom",
        "admin_district": "England",
        "admin_district_code": null,
        "city": "London",
        "country": "United Kingdom",
        "country_code": "GB",
        "dma_cd": null,
        "display_name": "London",
        "display_context": "England, United Kingdom",
        "iana_time_zone": "Europe/London",
        "latitude": 51.507,
        "locale": {
            "locale1": "Greater London",
            "locale2": "London",
            "locale3": null,
            "locale4": null
        },
        "longitude": -0.128,
        "neighborhood": null,
        "place_id": "0b8697c01baca04214b4abd206319d3eba60db5fb05c191012c4e02f6bdb23a4",
        "feature_id": "place.6957135",
        "postal_code": "SW1A 2",
        "postal_key": "SW1A 2:GB",
        "disputed_area": false,
        "disputed_countries": null,
        "disputed_country_codes": null,
        "disputed_customers": null,
        "disputed_show_country": [
            false
        ],
        "iata_code": null,
        "icao_code": "EGLW",
        "loc_id": "UKXX0085:1:UK",
        "location_category": null,
        "pws_id": "ILONDO440",
        "type": "city"
    },
    {
        "address": "Gatwick Airport, West Sussex, England, United Kingdom",
        "admin_district": "England",
        "admin_district_code": null,
        "city": "Gatwick Airport",
        "country": "United Kingdom",
        "country_code": "GB",
        "dma_cd": null,
        "display_name": "Gatwick Airport",
        "display_context": "England, United Kingdom",
        "iana_time_zone": "Europe/London",
        "latitude": 51.156,
        "locale": {
            "locale1": "West Sussex",
            "locale2": "Gatwick Airport",
            "locale3": null,
            "locale4": null
        },
        "longitude": -0.163,
        "neighborhood": null,
        "place_id": "6ac8d74e2e26c032835d0ba3cbbaf9cbf8d16351a38d119fdfe7f7cadbbcdf03",
        "feature_id": "place.4433999",
        "postal_code": "RH6 0",
        "postal_key": "RH6 0:GB",
        "disputed_area": false,
        "disputed_countries": null,
        "disputed_country_codes": null,
        "disputed_customers": null,
        "disputed_show_country": [
            false
        ],
        "iata_code": "LGW",
        "icao_code": "EGKK",
        "loc_id": "27023:25:UK",
        "location_category": null,
        "pws_id": "IHORLE9",
        "type": "city"
    },
    {
        "address": "Londonderry, Derry City and Strabane, Northern Ireland, United Kingdom",
        "admin_district": "Northern Ireland",
        "admin_district_code": null,
        "city": "Londonderry",
        "country": "United Kingdom",
        "country_code": "GB",
        "dma_cd": null,
        "display_name": "Londonderry",
        "display_context": "Northern Ireland, United Kingdom",
        "iana_time_zone": "Europe/London",
        "latitude": 54.997,
        "locale": {
            "locale1": "Derry City and Strabane",
            "locale2": "Londonderry",
            "locale3": null,
            "locale4": null
        },
        "longitude": -7.322,
        "neighborhood": null,
        "place_id": "4e999dcb0b8f886154fbe611d30bf5012e4eb45b258d89b767c6d26af8a85679",
        "feature_id": "place.6965327",
        "postal_code": "BT48 6",
        "postal_key": "BT48 6:GB",
        "disputed_area": false,
        "disputed_countries": null,
        "disputed_country_codes": null,
        "disputed_customers": null,
        "disputed_show_country": [
            false
        ],
        "iata_code": "LDY",
        "icao_code": "EGAE",
        "loc_id": "gcfbchvw:10:UK",
        "location_category": null,
        "pws_id": "IDERRY16",
        "type": "city"
    },
    {
        "address": "Barnet, Greater London, England, United Kingdom",
        "admin_district": "England",
        "admin_district_code": null,
        "city": "Barnet",
        "country": "United Kingdom",
        "country_code": "GB",
        "dma_cd": null,
        "display_name": "Barnet",
        "display_context": "England, United Kingdom",
        "iana_time_zone": "Europe/London",
        "latitude": 51.655,
        "locale": {
            "locale1": "Greater London",
            "locale2": "Barnet",
            "locale3": null,
            "locale4": null
        },
        "longitude": -0.202,
        "neighborhood": null,
        "place_id": "81ad19c5b6a10e41925b0edf237b07497605118d7360c0988cde710f0c1f8664",
        "feature_id": "place.862287",
        "postal_code": "EN5 5",
        "postal_key": "EN5 5:GB",
        "disputed_area": false,
        "disputed_countries": null,
        "disputed_country_codes": null,
        "disputed_customers": null,
        "disputed_show_country": [
            false
        ],
        "iata_code": null,
        "icao_code": "EGTR",
        "loc_id": "UKXX3703:1:UK",
        "location_category": null,
        "pws_id": "IBARNET11",
        "type": "city"
    },
    {
        "address": "Enfield, Greater London, England, United Kingdom",
        "admin_district": "England",
        "admin_district_code": null,
        "city": "Enfield",
        "country": "United Kingdom",
        "country_code": "GB",
        "dma_cd": null,
        "display_name": "Enfield",
        "display_context": "England, United Kingdom",
        "iana_time_zone": "Europe/London",
        "latitude": 51.652,
        "locale": {
            "locale1": "Greater London",
            "locale2": "Enfield",
            "locale3": null,
            "locale4": null
        },
        "longitude": -0.081,
        "neighborhood": null,
        "place_id": "ad7745a3822908feef2ef0fe38e77ea555bc968d09a35618f80aeb968cf2e239",
        "feature_id": "place.3942479",
        "postal_code": "EN2 6",
        "postal_key": "EN2 6:GB",
        "disputed_area": false,
        "disputed_countries": null,
        "disputed_country_codes": null,
        "disputed_customers": null,
        "disputed_show_country": [
            false
        ],
        "iata_code": null,
        "icao_code": "EGLG",
        "loc_id": "UKXX1561:1:UK",
        "location_category": null,
        "pws_id": "ILONDO471",
        "type": "city"
    }
]
搜索位置 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45612/search+locations?query=London&type=city&country_code=GB&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某个地点的信息:名称、街区、城市、县、地区、邮政编码、国家、坐标、含夏令时日期的时区、地点 ID、最近的机场、观测站和个人气象站 ID,以及警报使用的气象区和县 ID
Endpoint ID: 45613
GET https://zylalabs.com/api/16045/weather+com+api/45613/get+location+details
输入参数

获取位置详情 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. 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
{
    "latitude": 40.708,
    "longitude": -74.009,
    "city": "New York City",
    "locale": {
        "locale1": "New York County",
        "locale2": "New York City",
        "locale3": "Manhattan",
        "locale4": "Financial District"
    },
    "neighborhood": "Financial District",
    "admin_district": "New York",
    "admin_district_code": "NY",
    "postal_code": "10007",
    "postal_key": "10007:US",
    "country": "United States",
    "country_code": "US",
    "iana_time_zone": "America/New_York",
    "display_name": "Manhattan",
    "dst_end": "2026-11-01T01:00:00-0500",
    "dst_start": "2027-03-14T03:00:00-0400",
    "dma_cd": "501",
    "place_id": "b4a920ad892363fe432d01ccaf9711005f4fde523ef9d5e562744f76fe332ab1",
    "feature_id": "neighborhood.214330604",
    "disputed_area": false,
    "disputed_countries": null,
    "disputed_country_codes": null,
    "disputed_customers": null,
    "disputed_show_country": [
        false
    ],
    "canonical_city_id": "60b5c1800361f33890fcedaa749a5e3a",
    "county_id": "NYC061",
    "loc_id": "NYNPFEHA:13:US",
    "location_category": null,
    "pollen_id": "LGA",
    "pws_id": "KNYNEWYO2198",
    "regional_satellite": "ne",
    "tide_id": "8518750",
    "type": "neighborhood",
    "zone_id": "NYZ212",
    "airport_name": null,
    "display_context": "New York City, United States",
    "icao_code": null,
    "iata_code": null
}
获取位置详情 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45613/get+location+details?location=40.71,-74.01&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回距离某个点最近的 10 个机场、气象观测站、个人气象站或滑雪场,并提供每个地点的名称、代码、坐标以及以公里和英里为单位的距离
Endpoint ID: 45614
GET https://zylalabs.com/api/16045/weather+com+api/45614/get+nearby+locations
输入参数

获取附近位置 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
type 必需 What to look for: "airport", "observation", "pws" or "ski". Use the /general/nearby-types endpoint to list valid values.

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


输入参数

location
type
API 示例响应
JSON
[
    {
        "airport_name": "One Police Plaza",
        "icao_code": null,
        "iata_code": null,
        "latitude": 40.7126022,
        "longitude": -73.9995836,
        "distance_km": 0.92,
        "distance_mi": 0.57
    },
    {
        "airport_name": "Wall St",
        "icao_code": "KJRB",
        "iata_code": null,
        "latitude": 40.7012136,
        "longitude": -74.0090283,
        "distance_km": 0.98,
        "distance_mi": 0.61
    },
    {
        "airport_name": "Paulus Hook Pier",
        "icao_code": null,
        "iata_code": null,
        "latitude": 40.7139911,
        "longitude": -74.0315289,
        "distance_km": 1.87,
        "distance_mi": 1.16
    },
    {
        "airport_name": "Newport Helistop",
        "icao_code": null,
        "iata_code": null,
        "latitude": 40.7245464,
        "longitude": -74.0295844,
        "distance_km": 2.31,
        "distance_mi": 1.44
    },
    {
        "airport_name": "New York Skyports Inc Seaplane Base",
        "icao_code": null,
        "iata_code": "NYS",
        "latitude": 40.735061,
        "longitude": -73.972814,
        "distance_km": 4.19,
        "distance_mi": 2.61
    },
    {
        "airport_name": "Liberty State Park",
        "icao_code": null,
        "iata_code": null,
        "latitude": 40.6931581,
        "longitude": -74.0583333,
        "distance_km": 4.48,
        "distance_mi": 2.79
    },
    {
        "airport_name": "East 34th Street Heliport",
        "icao_code": null,
        "iata_code": "TSS",
        "latitude": 40.742372,
        "longitude": -73.972074,
        "distance_km": 4.81,
        "distance_mi": 2.99
    },
    {
        "airport_name": "West 30th St",
        "icao_code": "KJRA",
        "iata_code": null,
        "latitude": 40.7545458,
        "longitude": -74.0070839,
        "distance_km": 4.96,
        "distance_mi": 3.08
    },
    {
        "airport_name": "Liberty National Golf Club",
        "icao_code": null,
        "iata_code": null,
        "latitude": 40.6981944,
        "longitude": -74.0724167,
        "distance_km": 5.42,
        "distance_mi": 3.37
    },
    {
        "airport_name": "Lincoln Tunnel",
        "icao_code": null,
        "iata_code": null,
        "latitude": 40.7645456,
        "longitude": -74.0237511,
        "distance_km": 6.17,
        "distance_mi": 3.84
    }
]
获取附近位置 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45614/get+nearby+locations?location=40.71,-74.01&type=airport' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回正在追踪的热带风暴、飓风、台风和气旋,每个风暴均包含其风暴 ID、名称、海域、来源、最新预报和当前位置、类型、最大持续风速、阵风、气压、移动方向和风圈半径。空季节返回 404。
Endpoint ID: 45615
GET https://zylalabs.com/api/16045/weather+com+api/45615/get+tropical+storms
输入参数

获取热带风暴 — 端点功能

对象 描述
basin 可选 Optional ocean basin, e.g. "AL" (Atlantic) or "WP" (Western Pacific), defaults to "all". Use the /general/tropical-basins endpoint to list valid values.
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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。


输入参数

basin
units
language
API 示例响应
JSON
[
    {
        "storm_key": "0a86ee98ecbb755194a53787214bcb5d",
        "storm_id": "SH052027",
        "storm_number": "05",
        "storm_name": "Bertrand",
        "alternate_storm_name": null,
        "source": "JTWC",
        "dsgnt_source": true,
        "basin": "SH",
        "issue_office": "PGTW",
        "wmo_id": "WTXS31",
        "pil": "TCW",
        "bulletin_id": "540340eb6a09e03dcad9c2d43ca21806",
        "related_bulletin_id": "540340eb6a09e03dcad9c2d43ca21806",
        "issue_dt_tm": "2026-12-04T09:00:00Z",
        "issue_dt_tm_tz_cd": "Etc/UTC",
        "issue_dt_tm_tz_abbrv": "UTC",
        "adv_num": "4",
        "adv_dt_tm": "2026-12-04T12:00:00+06:00",
        "adv_dt_tm_tz_cd": "Asia/Dhaka",
        "adv_dt_tm_tz_abbrv": "BST",
        "nxt_cmplt_advsry_dt_tm": "2026-12-05T03:00:00+06:00",
        "nxt_cmplt_advsry_dt_tm_tz_cd": "Asia/Dhaka",
        "nxt_cmplt_advsry_dt_tm_tz_abbrv": "BST",
        "nxt_intrmdt_advsry_dt_tm": null,
        "nxt_intrmdt_advsry_dt_tm_tz_cd": null,
        "nxt_intrmdt_advsry_dt_tm_tz_abbrv": null,
        "final_advisory": false,
        "alternate_final_advisory": false,
        "currentposition": {
            "lat": -5.4,
            "lat_hemisphere": "S",
            "lon": 87.8,
            "lon_hemisphere": "E",
            "storm_type_cd": "TC",
            "storm_type": "Tropical Cyclone",
            "storm_sub_type_cd": "3",
            "storm_sub_type": "Category 3 Tropical Cyclone",
            "headline": null,
            "min_pressure": null,
            "max_sustained_wind": 85,
            "wind_gust": 105,
            "heading": {
                "storm_dir": "310",
                "storm_dir_cardinal": "NW",
                "storm_spd": 8
            },
            "nearby_loc": [],
            "wind_radii": [
                {
                    "radii_wspd": 34,
                    "ne": 30,
                    "se": 30,
                    "sw": 35,
                    "nw": 35
                },
                {
                    "radii_wspd": 50,
                    "ne": 25,
                    "se": 25,
                    "sw": 25,
                    "nw": 25
                },
                {
                    "radii_wspd": 64,
                    "ne": 15,
                    "se": 15,
                    "sw": 15,
                    "nw": 15
                }
            ],
            "sea_radii": null
        }
    },
    {
        "storm_key": "bafeedf05a8b42dc8d663084d05e0693",
        "storm_id": "SH062027",
        "storm_number": "06",
        "storm_name": "Xavier",
        "alternate_storm_name": null,
        "source": "JTWC",
        "dsgnt_source": true,
        "basin": "SH",
        "issue_office": "PGTW",
        "wmo_id": "WTPS31",
        "pil": "TCW",
        "bulletin_id": "cdc298762f3c8f1581668fb16d51a733",
        "related_bulletin_id": "cdc298762f3c8f1581668fb16d51a733",
        "issue_dt_tm": "2026-12-04T03:00:00Z",
        "issue_dt_tm_tz_cd": "Etc/UTC",
        "issue_dt_tm_tz_abbrv": "UTC",
        "adv_num": "2",
        "adv_dt_tm": "2026-12-04T13:00:00+13:00",
        "adv_dt_tm_tz_cd": "Pacific/Auckland",
        "adv_dt_tm_tz_abbrv": "NZDT",
        "nxt_cmplt_advsry_dt_tm": "2026-12-05T04:00:00+13:00",
        "nxt_cmplt_advsry_dt_tm_tz_cd": "Pacific/Auckland",
        "nxt_cmplt_advsry_dt_tm_tz_abbrv": "NZDT",
        "nxt_intrmdt_advsry_dt_tm": null,
        "nxt_intrmdt_advsry_dt_tm_tz_cd": null,
        "nxt_intrmdt_advsry_dt_tm_tz_abbrv": null,
        "final_advisory": false,
        "alternate_final_advisory": false,
        "currentposition": {
            "lat": -10.7,
            "lat_hemisphere": "S",
            "lon": 174,
            "lon_hemisphere": "E",
            "storm_type_cd": "TC",
            "storm_type": "Tropical Cyclone",
            "storm_sub_type_cd": "1",
            "storm_sub_type": "Category 1 Tropical Cyclone",
            "headline": null,
            "min_pressure": null,
            "max_sustained_wind": 45,
            "wind_gust": 55,
            "heading": {
                "storm_dir": "250",
                "storm_dir_cardinal": "WSW",
                "storm_spd": 8
            },
            "nearby_loc": [],
            "wind_radii": [
                {
                    "radii_wspd": 34,
                    "ne": 25,
                    "se": 75,
                    "sw": 55,
                    "nw": 30
                }
            ],
            "sea_radii": null
        }
    }
]
获取热带风暴 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45615/get+tropical+storms?basin=all&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回热带风暴及其摘要(开始时间、最后一次报告、最强风力、最低气压、最高级别)、包含每次预报位置、类型、风力、气压和移动方向的路径、未来几天的预测路径及其位置和风力,以及作为 GeoJSON 多边形的预测锥区
Endpoint ID: 45616
GET https://zylalabs.com/api/16045/weather+com+api/45616/get+tropical+storm+details
输入参数

获取热带风暴详情 — 端点功能

对象 描述
storm_id 必需 Storm id (e.g. "AL092026"). Use the /tropical/storms endpoint to list valid values.
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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。


输入参数

storm_id
units
language
API 示例响应
JSON
{
    "storm_id": "AL092026",
    "storm_number": "09",
    "storm_name": "Isaias",
    "alternate_storm_name": null,
    "summary": {
        "start_dt_tm": "2026-10-06T15:00:00-06:00",
        "start_dt_tm_tz_cd": "America/Mexico_City",
        "start_dt_tm_tz_abbrv": "CST",
        "last_reported_dt_tm": "2026-10-11T11:00:00-04:00",
        "last_reported_dt_tm_tz_cd": "America/New_York",
        "last_reported_dt_tm_tz_abbrv": "EDT",
        "originating_basin": "AL",
        "last_reported_basin": "AL",
        "highest_max_sustained_wind": 105,
        "lowest_min_pressure": 1010,
        "max_storm_type_cd": "HU",
        "max_storm_type": "Hurricane",
        "max_storm_sub_type_cd": "3",
        "max_storm_sub_type": "Category 3 Hurricane"
    },
    "track": [
        {
            "source": "NHC",
            "dsgnt_source": true,
            "issue_office": "KNHC",
            "adv_num": "1",
            "adv_dt_tm": "2026-10-06T16:00:00-05:00",
            "adv_dt_tm_tz_cd": "America/Chicago",
            "adv_dt_tm_tz_abbrv": "CDT",
            "bulletin_id": "794e234bd27a1cf17cbb160e1892483f",
            "lat": 22.1,
            "lat_hemisphere": "N",
            "lon": -95.6,
            "lon_hemisphere": "W",
            "storm_type_cd": "TD",
            "storm_type": "Tropical Depression",
            "storm_sub_type_cd": null,
            "storm_sub_type": null,
            "headline": [
                "TROPICAL DEPRESSION FORMS OVER THE GULF OF AMERICA",
                "FORECAST TO STRENGTHEN QUICKLY"
            ],
            "basin": "AL",
            "max_sustained_wind": 30,
            "wind_gust": 40,
            "min_pressure": 1007,
            "heading": {
                "storm_dir": "90",
                "storm_dir_cardinal": "E",
                "storm_spd": 4
            },
            "nearby_loc": [
                {
                    "loc_nm": "PROGRESO MEXICO",
                    "dist": 330,
                    "dir_cardinal": "W",
                    "city_nm": null,
                    "st_cd": null
                },
                {
                    "loc_nm": "THE MOUTH OF THE MISSISSIPPI RIVER",
                    "dist": 547,
                    "dir_cardinal": "SW",
                    "city_nm": null,
                    "st_cd": null
                }
            ],
            "wind_radii": [],
            "sea_radii": null
        },
        {
            "source": "NHC",
            "dsgnt_source": true,
            "issue_office": "KNHC",
            "adv_num": "2",
            "adv_dt_tm": "2026-10-06T22:00:00-05:00",
            "adv_dt_tm_tz_cd": "America/Chicago",
            "adv_dt_tm_tz_abbrv": "CDT",
            "bulletin_id": "b24b811110559cf71d2a5112e611408a",
            "lat": 22.1,
            "lat_hemisphere": "N",
            "lon": -95,
            "lon_hemisphere": "W",
            "storm_type_cd": "TD",
            "storm_type": "Tropical Depression",
            "storm_sub_type_cd": null,
            "storm_sub_type": null,
            "headline": [
                "TROPICAL DEPRESSION FORECAST TO QUICKLY STRENGTHEN"
            ],
            "basin": "AL",
            "max_sustained_wind": 30,
            "wind_gust": 40,
            "min_pressure": 1005,
            "heading": {
                "storm_dir": "80",
                "storm_dir_cardinal": "E",
                "storm_spd": 4
            },
            "nearby_loc": [
                {
                    "loc_nm": "PROGRESO MEXICO",
                    "dist": 299,
                    "dir_cardinal": "W",
                    "city_nm": null,
                    "st_cd": null
                },
                {
                    "loc_nm": "THE MOUTH OF THE MISSISSIPPI RIVER",
                    "dist": 525,
                    "dir_cardinal": "SW",
                    "city_nm": null,
                    "st_cd": null
                }
            ],
            "wind_radii": [],
            "sea_radii": null
        },
        {
            "source": "NHC",
            "dsgnt_source": true,
            "issue_office": "KNHC",
            "adv_num": "3",
            "adv_dt_tm": "2026-10-07T04:00:00-05:00",
            "adv_dt_tm_tz_cd": "America/Chicago",
            "adv_dt_tm_tz_abbrv": "CDT",
            "bulletin_id": "29640dde597af48cfa36863e43f698db",
            "lat": 22,
            "lat_hemisphere": "N",
            "lon": -94.1,
            "lon_hemisphere": "W",
            "storm_type_cd": "TS",
            "storm_type": "Tropical Storm",
            "storm_sub_type_cd": null,
            "storm_sub_type": null,
            "headline": [
                "DEPRESSION BECOMES TROPICAL STORM ISAIAS",
                "FORECAST TO RAPIDLY STRENGTHEN OVER THE NEXT COUPLE OF DAYS"
            ],
            "basin": "AL",
            "max_sustained_wind": 35,
            "wind_gust": 45,
            "min_pressure": 1004,
            "heading": {
                "storm_dir": "75",
                "storm_dir_cardinal": "ENE",
                "storm_spd": 7
            },
            "nearby_loc": [
                {
                    "loc_nm": "PROGRESO MEXICO",
                    "dist": 247,
                    "dir_cardinal": "W",
                    "city_nm": null,
                    "st_cd": null
                },
                {
                    "loc_nm": "THE MOUTH OF THE MISSISSIPPI RIVER",
                    "dist": 504,
                    "dir_cardinal": "SW",
                    "city_nm": null,
                    "st_cd": null
                }
            ],
            "wind_radii": [
                {
                    "radii_wspd": 34,
                    "ne": 40,
                    "se": 0,
                    "sw": 0,
                    "nw": 40
                }
            ],
            "sea_radii": null
        },
        {
            "source": "NHC",
            "dsgnt_source": true,
            "issue_office": "KNHC",
            "adv_num": "4",
            "adv_dt_tm": "2026-10-07T10:00:00-05:00",
            "adv_dt_tm_tz_cd": "America/Chicago",
            "adv_dt_tm_tz_abbrv": "CDT",
            "bulletin_id": "d1a6070c64b2b45743ba08f92c8d2684",
            "lat": 22.4,
            "lat_hemisphere": "N",
            "lon": -93.6,
            "lon_hemisphere": "W",
            "storm_type_cd": "TS",
            "storm_type": "Tropical Storm",
            "storm_sub_type_cd": null,
            "storm_sub_type": null,
            "headline": [
                "HURRICANE AND STORM SURGE WATCHES ISSUED FOR PORTIONS OF THE NORTHERN GULF COAST FOR STRENGTHENING ISAIAS"
            ],
            "basin": "AL",
            "max_sustained_wind": 40,
            "wind_gust": 50,
            "min_pressure": 1000,
            "heading": {
                "storm_dir": "70",
                "storm_dir_cardinal": "ENE",
                "storm_spd": 7
            },
            "nearby_loc": [
                {
                    "loc_nm": "PROGRESO MEXICO",
                    "dist": 225,
                    "dir_cardinal": "WNW",
                    "city_nm": null,
                    "st_cd": null
                },
                {
                    "loc_nm": "THE MOUTH OF THE MISSISSIPPI RIVER",
                    "dist": 469,
                    "dir_cardinal": "SSW",
                    "city_nm": null,
                    "st_cd": null
                }
            ],
            "wind_radii": [
                {
                    "radii_wspd": 34,
                    "ne": 40,
                    "se": 0,
                    "sw": 40,
                    "nw": 40
                }
            ],
            "sea_radii": null
        },
        {
            "source": "NHC",
            "dsgnt_source": true,
            "issue_office": "KNHC",
            "adv_num": "4A",
            "adv_dt_tm": "2026-10-07T13:00:00-05:00",
            "adv_dt_tm_tz_cd": "America/Chicago",
            "adv_dt_tm_tz_abbrv": "CDT",
            "bulletin_id": "13e143e2df980b6e6fced5d319364088",
            "lat": 22.6,
            "lat_hemisphere": "N",
            "lon": -93.4,
            "lon_hemisphere": "W",
            "storm_type_cd": "TS",
            "storm_type": "Tropical Storm",
            "storm_sub_type_cd": null,
            "storm_sub_type": null,
            "headline": [
                "NOAA HURRICANE HUNTERS FIND ISAIAS GATHERING STRENGTH"
            ],
            "basin": "AL",
            "max_sustained_wind": 45,
            "wind_gust": null,
            "min_pressure": 997,
            "heading": {
                "storm_dir": "70",
                "storm_dir_cardinal": "ENE",
                "storm_spd": 7
            },
            "nearby_loc": [
                {
                    "loc_nm": "PROGRESO MEXICO",
                    "dist": 221,
                    "dir_cardinal": "WNW",
                    "city_nm": null,
                    "st_cd": null
                },
                {
                    "loc_nm": "THE MOUTH OF THE MISSISSIPPI RIVER",
                    "dist": 451,
                    "dir_cardinal": "SSW",
                    "city_nm": null,
                    "st_cd": null
                }
            ],
            "wind_radii": [],
            "sea_radii": null
        }
    ],
    "forecast": null,
    "cone": null
}
获取热带风暴详情 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45616/get+tropical+storm+details?storm_id=AL092026&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某地点的当前天气:气温、体感温度、露点、热指数、风寒指数、24 小时最高温、最低温及变化、湿度、气压及其趋势、能见度、云底高度和云量、风速、阵风及风向、紫外线指数、过去 1、6 和 24 小时的降水量和降雪量、天气描述和图标代码、昼夜状态以及日出和日落时间
Endpoint ID: 45617
GET https://zylalabs.com/api/16045/weather+com+api/45617/get+current+weather
输入参数

获取当前天气 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
units
language
API 示例响应
JSON
{
    "cloud_ceiling": null,
    "cloud_cover": 16,
    "cloud_cover_phrase": "Partly Cloudy",
    "day_of_week": "Friday",
    "day_or_night": "N",
    "icon_code": 31,
    "icon_code_extend": 3100,
    "obs_qualifier_code": null,
    "obs_qualifier_severity": null,
    "precip1_hour": 0,
    "precip6_hour": 0,
    "precip24_hour": 0,
    "pressure_altimeter": 1025.74,
    "pressure_change": 2.03,
    "pressure_mean_sea_level": 1026,
    "pressure_tendency_code": 1,
    "pressure_tendency_trend": "Rising",
    "relative_humidity": 88,
    "snow1_hour": 0,
    "snow6_hour": 0,
    "snow24_hour": 0,
    "sunrise_time_local": "2026-12-04T07:03:40-0500",
    "sunrise_time_utc": 1796385820,
    "sunset_time_local": "2026-12-04T16:28:57-0500",
    "sunset_time_utc": 1796419737,
    "temperature": 9,
    "temperature_change24_hour": 3,
    "temperature_dew_point": 8,
    "temperature_feels_like": 8,
    "temperature_heat_index": 9,
    "temperature_max24_hour": 14,
    "temperature_max_since7_am": 14,
    "temperature_min24_hour": 6,
    "temperature_wet_bulb_globe": 9,
    "temperature_wind_chill": 8,
    "uv_description": "Low",
    "uv_index": 0,
    "valid_time_local": "2026-12-04T06:45:54-0500",
    "valid_time_utc": 1796384754,
    "visibility": 16.09,
    "wind_direction": 280,
    "wind_direction_cardinal": "W",
    "wind_gust": null,
    "wind_speed": 8,
    "wx_phrase_long": "Clear",
    "wx_phrase_medium": "Clear",
    "wx_phrase_short": "Clear"
}
获取当前天气 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45617/get+current+weather?location=40.71,-74.01&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
一次返回最多 25 个地点的当前天气,每个地点的数据与 /weather/current 端点相同。
Endpoint ID: 45618
GET https://zylalabs.com/api/16045/weather+com+api/45618/get+current+weather+of+multiple+locations
输入参数

获取多个地点的当前天气 — 端点功能

对象 描述
locations 必需 Up to 25 latitude and longitude pairs separated by ";" (e.g. "40.71,-74.01;51.51,-0.13").
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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。


输入参数

locations
units
language
API 示例响应
JSON
[
    {
        "latitude": 40.71,
        "longitude": -74.01,
        "current": {
            "cloud_ceiling": null,
            "cloud_cover": 16,
            "cloud_cover_phrase": "Partly Cloudy",
            "day_of_week": "Friday",
            "day_or_night": "N",
            "icon_code": 31,
            "icon_code_extend": 3100,
            "obs_qualifier_code": null,
            "obs_qualifier_severity": null,
            "precip1_hour": 0,
            "precip6_hour": 0,
            "precip24_hour": 0,
            "pressure_altimeter": 1025.74,
            "pressure_change": 2.03,
            "pressure_mean_sea_level": 1026,
            "pressure_tendency_code": 1,
            "pressure_tendency_trend": "Rising",
            "relative_humidity": 88,
            "snow1_hour": 0,
            "snow6_hour": 0,
            "snow24_hour": 0,
            "sunrise_time_local": "2026-12-04T07:03:40-0500",
            "sunrise_time_utc": 1796385820,
            "sunset_time_local": "2026-12-04T16:28:57-0500",
            "sunset_time_utc": 1796419737,
            "temperature": 9,
            "temperature_change24_hour": 3,
            "temperature_dew_point": 8,
            "temperature_feels_like": 8,
            "temperature_heat_index": 9,
            "temperature_max24_hour": 14,
            "temperature_max_since7_am": 14,
            "temperature_min24_hour": 6,
            "temperature_wet_bulb_globe": 9,
            "temperature_wind_chill": 8,
            "uv_description": "Low",
            "uv_index": 0,
            "valid_time_local": "2026-12-04T06:45:28-0500",
            "valid_time_utc": 1796384728,
            "visibility": 16.09,
            "wind_direction": 270,
            "wind_direction_cardinal": "W",
            "wind_gust": null,
            "wind_speed": 8,
            "wx_phrase_long": "Clear",
            "wx_phrase_medium": "Clear",
            "wx_phrase_short": "Clear"
        }
    },
    {
        "latitude": 51.51,
        "longitude": -0.13,
        "current": {
            "cloud_ceiling": 300,
            "cloud_cover": 100,
            "cloud_cover_phrase": "Cloudy",
            "day_of_week": "Friday",
            "day_or_night": "D",
            "icon_code": 26,
            "icon_code_extend": 2600,
            "obs_qualifier_code": null,
            "obs_qualifier_severity": null,
            "precip1_hour": 0,
            "precip6_hour": 0,
            "precip24_hour": 1.78,
            "pressure_altimeter": 1036.23,
            "pressure_change": 0,
            "pressure_mean_sea_level": 1036.3,
            "pressure_tendency_code": 0,
            "pressure_tendency_trend": "Steady",
            "relative_humidity": 95,
            "snow1_hour": 0,
            "snow6_hour": 0,
            "snow24_hour": 0,
            "sunrise_time_local": "2026-12-04T07:48:03+0000",
            "sunrise_time_utc": 1796370483,
            "sunset_time_local": "2026-12-04T15:53:26+0000",
            "sunset_time_utc": 1796399606,
            "temperature": 11,
            "temperature_change24_hour": 1,
            "temperature_dew_point": 11,
            "temperature_feels_like": 11,
            "temperature_heat_index": 11,
            "temperature_max24_hour": 11,
            "temperature_max_since7_am": 11,
            "temperature_min24_hour": 10,
            "temperature_wet_bulb_globe": 12,
            "temperature_wind_chill": 11,
            "uv_description": "Low",
            "uv_index": 0,
            "valid_time_local": "2026-12-04T11:40:38+0000",
            "valid_time_utc": 1796384438,
            "visibility": 4.83,
            "wind_direction": 120,
            "wind_direction_cardinal": "ESE",
            "wind_gust": null,
            "wind_speed": 5,
            "wx_phrase_long": "Cloudy",
            "wx_phrase_medium": "Cloudy",
            "wx_phrase_short": "Cloudy"
        }
    }
]
获取多个地点的当前天气 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45618/get+current+weather+of+multiple+locations?locations=40.71,-74.01;51.51,-0.13&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回最多 15 天的每日预报:每天的最高温和最低温、文字描述、降水量(雨、雪、冰)、日出、日落、月出、月落和月相,以及每天白天和夜间的天气短语、文字描述、图标代码、降水概率和类型、温度、体感高温、风寒指数、湿度、云量、风、紫外线指数、雷暴风险和降雪范围。傍晚开始后,当天的白天部分为 null
Endpoint ID: 45619
GET https://zylalabs.com/api/16045/weather+com+api/45619/get+daily+forecast
输入参数

获取每日预报 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
days 可选 Optional number of days: 3, 5, 7, 10 or 15 (defaults to 7). The forecast also includes today.
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
[
    {
        "calendar_day_temperature_max": 16,
        "calendar_day_temperature_min": 9,
        "day_of_week": "Friday",
        "moon_phase": "Waning Crescent",
        "moon_phase_code": "WNC",
        "moon_phase_day": 25,
        "moonrise_time_local": "2026-12-04T02:48:03-0500",
        "moonrise_time_utc": 1796370483,
        "moonset_time_local": "2026-12-04T13:37:21-0500",
        "moonset_time_utc": 1796409441,
        "narrative": "Cloudy. Highs 15 to 17C and lows 11 to 13C.",
        "qpf": 13,
        "qpf_ice": 0,
        "qpf_rain": 13,
        "qpf_snow": 0,
        "sunrise_time_local": "2026-12-04T07:03:35-0500",
        "sunrise_time_utc": 1796385815,
        "sunset_time_local": "2026-12-04T16:28:48-0500",
        "sunset_time_utc": 1796419728,
        "temperature_max": 16,
        "temperature_min": 12,
        "valid_time_local": "2026-12-04T07:00:00-0500",
        "valid_time_utc": 1796385600,
        "day": {
            "cloud_cover": 70,
            "day_or_night": "D",
            "daypart_name": "Today",
            "icon_code": 26,
            "icon_code_extend": 2600,
            "narrative": "Overcast. High 16C. Winds ENE at 10 to 15 km/h.",
            "precip_chance": 5,
            "precip_type": "rain",
            "qpf": 0,
            "qpf_ice": 0,
            "qpf_rain": 0,
            "qpf_snow": 0,
            "qualifier_code": null,
            "qualifier_phrase": null,
            "relative_humidity": 73,
            "snow_range": null,
            "temperature": 16,
            "temperature_heat_index": 16,
            "temperature_wind_chill": 9,
            "thunder_category": "No thunder",
            "thunder_index": 0,
            "uv_description": "Low",
            "uv_index": 1,
            "wind_direction": 63,
            "wind_direction_cardinal": "ENE",
            "wind_phrase": "Winds ENE at 10 to 15 km/h.",
            "wind_speed": 12,
            "wx_phrase_long": "Cloudy",
            "wx_phrase_short": "Cloudy"
        },
        "night": {
            "cloud_cover": 99,
            "day_or_night": "N",
            "daypart_name": "Tonight",
            "icon_code": 12,
            "icon_code_extend": 1200,
            "narrative": "Rain likely. Low 12C. Winds S at 10 to 15 km/h. Chance of rain 100%. Rainfall near 12mm.",
            "precip_chance": 96,
            "precip_type": "rain",
            "qpf": 13,
            "qpf_ice": 0,
            "qpf_rain": 13,
            "qpf_snow": 0,
            "qualifier_code": null,
            "qualifier_phrase": null,
            "relative_humidity": 95,
            "snow_range": null,
            "temperature": 12,
            "temperature_heat_index": 13,
            "temperature_wind_chill": 11,
            "thunder_category": "No thunder",
            "thunder_index": 0,
            "uv_description": "Low",
            "uv_index": 0,
            "wind_direction": 171,
            "wind_direction_cardinal": "S",
            "wind_phrase": "Winds S at 10 to 15 km/h.",
            "wind_speed": 15,
            "wx_phrase_long": "Rain",
            "wx_phrase_short": "Rain"
        }
    },
    {
        "calendar_day_temperature_max": 20,
        "calendar_day_temperature_min": 13,
        "day_of_week": "Saturday",
        "moon_phase": "Waning Crescent",
        "moon_phase_code": "WNC",
        "moon_phase_day": 26,
        "moonrise_time_local": "2026-12-05T03:52:56-0500",
        "moonrise_time_utc": 1796460776,
        "moonset_time_local": "2026-12-05T14:03:26-0500",
        "moonset_time_utc": 1796497406,
        "narrative": "Mostly cloudy. Highs 19 to 21C and lows 7 to 9C.",
        "qpf": 0,
        "qpf_ice": 0,
        "qpf_rain": 0,
        "qpf_snow": 0,
        "sunrise_time_local": "2026-12-05T07:04:31-0500",
        "sunrise_time_utc": 1796472271,
        "sunset_time_local": "2026-12-05T16:28:40-0500",
        "sunset_time_utc": 1796506120,
        "temperature_max": 20,
        "temperature_min": 8,
        "valid_time_local": "2026-12-05T07:00:00-0500",
        "valid_time_utc": 1796472000,
        "day": {
            "cloud_cover": 67,
            "day_or_night": "D",
            "daypart_name": "Tomorrow",
            "icon_code": 26,
            "icon_code_extend": 2600,
            "narrative": "Cloudy. Warm. High around 20C. Winds WNW at 10 to 15 km/h.",
            "precip_chance": 20,
            "precip_type": "rain",
            "qpf": 0,
            "qpf_ice": 0,
            "qpf_rain": 0,
            "qpf_snow": 0,
            "qualifier_code": "Q600",
            "qualifier_phrase": "Warm.",
            "relative_humidity": 78,
            "snow_range": null,
            "temperature": 20,
            "temperature_heat_index": 20,
            "temperature_wind_chill": 13,
            "thunder_category": "No thunder",
            "thunder_index": 0,
            "uv_description": "Low",
            "uv_index": 2,
            "wind_direction": 286,
            "wind_direction_cardinal": "WNW",
            "wind_phrase": "Winds WNW at 10 to 15 km/h.",
            "wind_speed": 13,
            "wx_phrase_long": "Cloudy",
            "wx_phrase_short": "Cloudy"
        },
        "night": {
            "cloud_cover": 50,
            "day_or_night": "N",
            "daypart_name": "Tomorrow night",
            "icon_code": 29,
            "icon_code_extend": 2900,
            "narrative": "Partly cloudy skies. Low 8C. Winds N at 15 to 25 km/h.",
            "precip_chance": 4,
            "precip_type": "rain",
            "qpf": 0,
            "qpf_ice": 0,
            "qpf_rain": 0,
            "qpf_snow": 0,
            "qualifier_code": null,
            "qualifier_phrase": null,
            "relative_humidity": 69,
            "snow_range": null,
            "temperature": 8,
            "temperature_heat_index": 16,
            "temperature_wind_chill": 7,
            "thunder_category": "No thunder",
            "thunder_index": 0,
            "uv_description": "Low",
            "uv_index": 0,
            "wind_direction": 6,
            "wind_direction_cardinal": "N",
            "wind_phrase": "Winds N at 15 to 25 km/h.",
            "wind_speed": 17,
            "wx_phrase_long": "Partly Cloudy",
            "wx_phrase_short": "P Cloudy"
        }
    }
]
获取每日预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45619/get+daily+forecast?location=40.71,-74.01&days=7&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回最多 15 天的逐小时预报:每小时的温度、体感温度、露点、热指数、风寒指数、湿度、降水概率、降水类型和降水量(雨、雪)、云量、气压、能见度、风速、阵风和风向、紫外线指数、天气描述和图标代码,以及白天或夜间
Endpoint ID: 45620
GET https://zylalabs.com/api/16045/weather+com+api/45620/get+hourly+forecast
输入参数

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

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
hours 可选 Optional number of hours: 6, 12, 24, 48, 72, 240 or 360 (defaults to 48).
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
[
    {
        "cloud_cover": 29,
        "day_of_week": "Friday",
        "day_or_night": "N",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "precip_chance": 2,
        "precip_type": "rain",
        "pressure_mean_sea_level": 1025.6,
        "qpf": 0,
        "qpf_ice": 0,
        "qpf_rain": 0,
        "qpf_snow": 0,
        "relative_humidity": 88,
        "storm_id": null,
        "temperature": 10,
        "temperature_dew_point": 8,
        "temperature_feels_like": 9,
        "temperature_heat_index": 10,
        "temperature_wind_chill": 9,
        "uv_description": "Low",
        "uv_index": 0,
        "valid_time_local": "2026-12-04T07:00:00-0500",
        "valid_time_utc": 1796385600,
        "visibility": 15,
        "wind_direction": 300,
        "wind_direction_cardinal": "WNW",
        "wind_gust": null,
        "wind_speed": 7,
        "wx_phrase_long": "Mostly Clear",
        "wx_phrase_short": "M Clear",
        "wx_severity": 1
    },
    {
        "cloud_cover": 20,
        "day_of_week": "Friday",
        "day_or_night": "D",
        "icon_code": 34,
        "icon_code_extend": 3400,
        "precip_chance": 2,
        "precip_type": "rain",
        "pressure_mean_sea_level": 1026.2,
        "qpf": 0,
        "qpf_ice": 0,
        "qpf_rain": 0,
        "qpf_snow": 0,
        "relative_humidity": 87,
        "storm_id": null,
        "temperature": 10,
        "temperature_dew_point": 8,
        "temperature_feels_like": 9,
        "temperature_heat_index": 10,
        "temperature_wind_chill": 9,
        "uv_description": "Low",
        "uv_index": 0,
        "valid_time_local": "2026-12-04T08:00:00-0500",
        "valid_time_utc": 1796389200,
        "visibility": 16,
        "wind_direction": 339,
        "wind_direction_cardinal": "NNW",
        "wind_gust": null,
        "wind_speed": 7,
        "wx_phrase_long": "Mostly Sunny",
        "wx_phrase_short": "M Sunny",
        "wx_severity": 1
    },
    {
        "cloud_cover": 41,
        "day_of_week": "Friday",
        "day_or_night": "D",
        "icon_code": 30,
        "icon_code_extend": 3000,
        "precip_chance": 2,
        "precip_type": "rain",
        "pressure_mean_sea_level": 1027,
        "qpf": 0,
        "qpf_ice": 0,
        "qpf_rain": 0,
        "qpf_snow": 0,
        "relative_humidity": 82,
        "storm_id": null,
        "temperature": 11,
        "temperature_dew_point": 8,
        "temperature_feels_like": 10,
        "temperature_heat_index": 11,
        "temperature_wind_chill": 10,
        "uv_description": "Low",
        "uv_index": 1,
        "valid_time_local": "2026-12-04T09:00:00-0500",
        "valid_time_utc": 1796392800,
        "visibility": 16,
        "wind_direction": 7,
        "wind_direction_cardinal": "N",
        "wind_gust": null,
        "wind_speed": 9,
        "wx_phrase_long": "Partly Cloudy",
        "wx_phrase_short": "P Cloudy",
        "wx_severity": 1
    },
    {
        "cloud_cover": 80,
        "day_of_week": "Friday",
        "day_or_night": "D",
        "icon_code": 26,
        "icon_code_extend": 2600,
        "precip_chance": 1,
        "precip_type": "rain",
        "pressure_mean_sea_level": 1027.6,
        "qpf": 0,
        "qpf_ice": 0,
        "qpf_rain": 0,
        "qpf_snow": 0,
        "relative_humidity": 77,
        "storm_id": null,
        "temperature": 12,
        "temperature_dew_point": 8,
        "temperature_feels_like": 11,
        "temperature_heat_index": 12,
        "temperature_wind_chill": 11,
        "uv_description": "Low",
        "uv_index": 1,
        "valid_time_local": "2026-12-04T10:00:00-0500",
        "valid_time_utc": 1796396400,
        "visibility": 16,
        "wind_direction": 39,
        "wind_direction_cardinal": "NE",
        "wind_gust": null,
        "wind_speed": 9,
        "wx_phrase_long": "Cloudy",
        "wx_phrase_short": "Cloudy",
        "wx_severity": 1
    },
    {
        "cloud_cover": 84,
        "day_of_week": "Friday",
        "day_or_night": "D",
        "icon_code": 26,
        "icon_code_extend": 2600,
        "precip_chance": 1,
        "precip_type": "rain",
        "pressure_mean_sea_level": 1027.6,
        "qpf": 0,
        "qpf_ice": 0,
        "qpf_rain": 0,
        "qpf_snow": 0,
        "relative_humidity": 70,
        "storm_id": null,
        "temperature": 13,
        "temperature_dew_point": 8,
        "temperature_feels_like": 13,
        "temperature_heat_index": 13,
        "temperature_wind_chill": 13,
        "uv_description": "Low",
        "uv_index": 1,
        "valid_time_local": "2026-12-04T11:00:00-0500",
        "valid_time_utc": 1796400000,
        "visibility": 16,
        "wind_direction": 49,
        "wind_direction_cardinal": "NE",
        "wind_gust": null,
        "wind_speed": 9,
        "wx_phrase_long": "Cloudy",
        "wx_phrase_short": "Cloudy",
        "wx_severity": 1
    },
    {
        "cloud_cover": 82,
        "day_of_week": "Friday",
        "day_or_night": "D",
        "icon_code": 26,
        "icon_code_extend": 2600,
        "precip_chance": 1,
        "precip_type": "rain",
        "pressure_mean_sea_level": 1026.9,
        "qpf": 0,
        "qpf_ice": 0,
        "qpf_rain": 0,
        "qpf_snow": 0,
        "relative_humidity": 65,
        "storm_id": null,
        "temperature": 15,
        "temperature_dew_point": 8,
        "temperature_feels_like": 14,
        "temperature_heat_index": 15,
        "temperature_wind_chill": 14,
        "uv_description": "Low",
        "uv_index": 1,
        "valid_time_local": "2026-12-04T12:00:00-0500",
        "valid_time_utc": 1796403600,
        "visibility": 16,
        "wind_direction": 66,
        "wind_direction_cardinal": "ENE",
        "wind_gust": null,
        "wind_speed": 9,
        "wx_phrase_long": "Cloudy",
        "wx_phrase_short": "Cloudy",
        "wx_severity": 1
    }
]
获取每小时天气预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45620/get+hourly+forecast?location=40.71,-74.01&hours=48&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回未来 6 到 7 小时内以 15 分钟为间隔的预报:温度、体感温度、湿度、降水和降雪的概率、类型及速率、风速和风向、天气描述、严重程度和图标代码
Endpoint ID: 45621
GET https://zylalabs.com/api/16045/weather+com+api/45621/get+15-minute+forecast
输入参数

获取15分钟预报 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
units
language
API 示例响应
JSON
[
    {
        "day_of_week": "Friday",
        "icon_code": 33,
        "icon_code_extend": 3300,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 88,
        "snow_rate": 0,
        "temperature": 9,
        "temperature_feels_like": 8,
        "valid_time_local": "2026-12-04T06:45:00-0500",
        "wind_direction": 297,
        "wind_direction_cardinal": "WNW",
        "wind_speed": 8,
        "wx_phrase_long": "Mostly Clear",
        "wx_phrase_short": "M Clear",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 29,
        "icon_code_extend": 2900,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 89,
        "snow_rate": 0,
        "temperature": 9,
        "temperature_feels_like": 8,
        "valid_time_local": "2026-12-04T07:00:00-0500",
        "wind_direction": 300,
        "wind_direction_cardinal": "WNW",
        "wind_speed": 7,
        "wx_phrase_long": "Partly Cloudy",
        "wx_phrase_short": "P Cloudy",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 34,
        "icon_code_extend": 3400,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 88,
        "snow_rate": 0,
        "temperature": 10,
        "temperature_feels_like": 9,
        "valid_time_local": "2026-12-04T07:15:00-0500",
        "wind_direction": 309,
        "wind_direction_cardinal": "NW",
        "wind_speed": 7,
        "wx_phrase_long": "Mostly Sunny",
        "wx_phrase_short": "M Sunny",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 34,
        "icon_code_extend": 3400,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 88,
        "snow_rate": 0,
        "temperature": 10,
        "temperature_feels_like": 9,
        "valid_time_local": "2026-12-04T07:30:00-0500",
        "wind_direction": 319,
        "wind_direction_cardinal": "NW",
        "wind_speed": 7,
        "wx_phrase_long": "Mostly Sunny",
        "wx_phrase_short": "M Sunny",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 34,
        "icon_code_extend": 3400,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 87,
        "snow_rate": 0,
        "temperature": 10,
        "temperature_feels_like": 9,
        "valid_time_local": "2026-12-04T07:45:00-0500",
        "wind_direction": 329,
        "wind_direction_cardinal": "NNW",
        "wind_speed": 7,
        "wx_phrase_long": "Mostly Sunny",
        "wx_phrase_short": "M Sunny",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 32,
        "icon_code_extend": 3200,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 87,
        "snow_rate": 0,
        "temperature": 10,
        "temperature_feels_like": 9,
        "valid_time_local": "2026-12-04T08:00:00-0500",
        "wind_direction": 339,
        "wind_direction_cardinal": "NNW",
        "wind_speed": 7,
        "wx_phrase_long": "Sunny",
        "wx_phrase_short": "Sunny",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 34,
        "icon_code_extend": 3400,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 86,
        "snow_rate": 0,
        "temperature": 10,
        "temperature_feels_like": 9,
        "valid_time_local": "2026-12-04T08:15:00-0500",
        "wind_direction": 347,
        "wind_direction_cardinal": "NNW",
        "wind_speed": 8,
        "wx_phrase_long": "Mostly Sunny",
        "wx_phrase_short": "M Sunny",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 34,
        "icon_code_extend": 3400,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 84,
        "snow_rate": 0,
        "temperature": 10,
        "temperature_feels_like": 9,
        "valid_time_local": "2026-12-04T08:30:00-0500",
        "wind_direction": 355,
        "wind_direction_cardinal": "N",
        "wind_speed": 8,
        "wx_phrase_long": "Mostly Sunny",
        "wx_phrase_short": "M Sunny",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 30,
        "icon_code_extend": 3000,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 83,
        "snow_rate": 0,
        "temperature": 11,
        "temperature_feels_like": 10,
        "valid_time_local": "2026-12-04T08:45:00-0500",
        "wind_direction": 1,
        "wind_direction_cardinal": "N",
        "wind_speed": 9,
        "wx_phrase_long": "Partly Cloudy",
        "wx_phrase_short": "P Cloudy",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 30,
        "icon_code_extend": 3000,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 82,
        "snow_rate": 0,
        "temperature": 11,
        "temperature_feels_like": 10,
        "valid_time_local": "2026-12-04T09:00:00-0500",
        "wind_direction": 7,
        "wind_direction_cardinal": "N",
        "wind_speed": 9,
        "wx_phrase_long": "Partly Cloudy",
        "wx_phrase_short": "P Cloudy",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 30,
        "icon_code_extend": 3000,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 81,
        "snow_rate": 0,
        "temperature": 11,
        "temperature_feels_like": 10,
        "valid_time_local": "2026-12-04T09:15:00-0500",
        "wind_direction": 14,
        "wind_direction_cardinal": "NNE",
        "wind_speed": 9,
        "wx_phrase_long": "Partly Cloudy",
        "wx_phrase_short": "P Cloudy",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 30,
        "icon_code_extend": 3000,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 79,
        "snow_rate": 0,
        "temperature": 12,
        "temperature_feels_like": 11,
        "valid_time_local": "2026-12-04T09:30:00-0500",
        "wind_direction": 23,
        "wind_direction_cardinal": "NNE",
        "wind_speed": 9,
        "wx_phrase_long": "Partly Cloudy",
        "wx_phrase_short": "P Cloudy",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 28,
        "icon_code_extend": 2800,
        "precip_chance": 2,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 78,
        "snow_rate": 0,
        "temperature": 12,
        "temperature_feels_like": 11,
        "valid_time_local": "2026-12-04T09:45:00-0500",
        "wind_direction": 31,
        "wind_direction_cardinal": "NNE",
        "wind_speed": 9,
        "wx_phrase_long": "Mostly Cloudy",
        "wx_phrase_short": "M Cloudy",
        "wx_severity": 1
    },
    {
        "day_of_week": "Friday",
        "icon_code": 28,
        "icon_code_extend": 2800,
        "precip_chance": 1,
        "precip_rate": 0,
        "precip_type": "rain",
        "relative_humidity": 77,
        "snow_rate": 0,
        "temperature": 12,
        "temperature_feels_like": 11,
        "valid_time_local": "2026-12-04T10:00:00-0500",
        "wind_direction": 39,
        "wind_direction_cardinal": "NE",
        "wind_speed": 9,
        "wx_phrase_long": "Mostly Cloudy",
        "wx_phrase_short": "M Cloudy",
        "wx_severity": 1
    }
]
获取15分钟预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45621/get+15-minute+forecast?location=40.71,-74.01&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回未来一小时逐分钟的降水预报:每分钟的降水类型、降水率和强度。适用于美国及其他由雷达临近预报覆盖的地区;其他地区返回404
Endpoint ID: 45622
GET https://zylalabs.com/api/16045/weather+com+api/45622/get+minute+precipitation+forecast
输入参数

获取分钟级降水预报 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
units
language
API 示例响应
JSON
[
    {
        "valid_time_local": "2026-12-04T12:45:00+0100",
        "valid_time_utc": 1796384700,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:46:00+0100",
        "valid_time_utc": 1796384760,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:47:00+0100",
        "valid_time_utc": 1796384820,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:48:00+0100",
        "valid_time_utc": 1796384880,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:49:00+0100",
        "valid_time_utc": 1796384940,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:50:00+0100",
        "valid_time_utc": 1796385000,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:51:00+0100",
        "valid_time_utc": 1796385060,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:52:00+0100",
        "valid_time_utc": 1796385120,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:53:00+0100",
        "valid_time_utc": 1796385180,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:54:00+0100",
        "valid_time_utc": 1796385240,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:55:00+0100",
        "valid_time_utc": 1796385300,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:56:00+0100",
        "valid_time_utc": 1796385360,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:57:00+0100",
        "valid_time_utc": 1796385420,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:58:00+0100",
        "valid_time_utc": 1796385480,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T12:59:00+0100",
        "valid_time_utc": 1796385540,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:00:00+0100",
        "valid_time_utc": 1796385600,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:01:00+0100",
        "valid_time_utc": 1796385660,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:02:00+0100",
        "valid_time_utc": 1796385720,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:03:00+0100",
        "valid_time_utc": 1796385780,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:04:00+0100",
        "valid_time_utc": 1796385840,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:05:00+0100",
        "valid_time_utc": 1796385900,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:06:00+0100",
        "valid_time_utc": 1796385960,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:07:00+0100",
        "valid_time_utc": 1796386020,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:08:00+0100",
        "valid_time_utc": 1796386080,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:09:00+0100",
        "valid_time_utc": 1796386140,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:10:00+0100",
        "valid_time_utc": 1796386200,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:11:00+0100",
        "valid_time_utc": 1796386260,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:12:00+0100",
        "valid_time_utc": 1796386320,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:13:00+0100",
        "valid_time_utc": 1796386380,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    },
    {
        "valid_time_local": "2026-12-04T13:14:00+0100",
        "valid_time_utc": 1796386440,
        "precip_type_code": 1,
        "precip_intensity_code": 0,
        "d_bz": 0
    }
]
获取分钟级降水预报 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45622/get+minute+precipitation+forecast?location=60.39,5.32&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回一句话说明未来几小时内雨雪是否开始或停止以及何时开始或停止(例如“预计降雨将在接下来的几小时内持续”),并提供简短表述和预计降水时间
Endpoint ID: 45623
GET https://zylalabs.com/api/16045/weather+com+api/45623/get+precipitation+outlook
输入参数

获取降水展望 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
units
language
API 示例响应
JSON
{
    "valid_time_local": "2026-12-04T07:00:00-0500",
    "phrase": "Expect dry conditions for the next 6 hours.",
    "short_phrase": "Dry conditions for the next 6 hours.",
    "precipitation_day": null,
    "precipitation_time_local": null,
    "precipitation_time_12_hour": null,
    "precipitation_time_24_hour": null,
    "time_zone": "EST"
}
获取降水展望 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45623/get+precipitation+outlook?location=40.71,-74.01&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回某个地点显示的简短天气提示,每条提示有三种长度:即将开始或停止的降雨或降雪、降水概率、即将出现雷暴、与昨天相比的气温变化、晴天、花粉以及日出或日落时间
Endpoint ID: 45624
GET https://zylalabs.com/api/16045/weather+com+api/45624/get+weather+insights
输入参数

获取天气信息 — 端点功能

对象 描述
location 必需 Latitude and longitude (e.g. "40.71,-74.01") or place id. Use the /location/search endpoint to list valid values.
units 可选 Optional units: "metric", "imperial", "hybrid" or "si" (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
units
language
API 示例响应
JSON
[
    {
        "insight_type": "chancePrecipInsight",
        "insight_text": [
            "Rain expected this evening",
            "Rain expected",
            "Rain expected tonight"
        ],
        "insight_text_long": [
            "Rain expected this evening",
            "Rain expected",
            "Rain expected tonight"
        ],
        "insight_headline": [
            "Rain Coming",
            null,
            null
        ],
        "insight_image": [
            "https://s.w-x.co/SS_rain_1.jpeg"
        ],
        "insight_links_element": [
            "webChanceOfPrecipInsight"
        ],
        "insight_links_element_anchor": [
            "&cm_ven=chanceprecip_ins_us_en_1#detailIndex0"
        ],
        "insight_alternative_url": null,
        "insight_valid_time_utc": 1796428800,
        "insight_priority": 1,
        "insight_priority_alternative": 1,
        "insight_show_notification": true,
        "insight_show_widget": true,
        "insight_show_default": true,
        "insight_show_card": true,
        "supplement": {
            "insight_variation": "chanceprecip_ins_us_en_1",
            "precip_type": 1,
            "visual_data": "92%",
            "visual_description": null,
            "time_descriptor": "Tonight"
        }
    },
    {
        "insight_type": "temperatureChangeInsight",
        "insight_text": [
            "Temperatures a little higher than yesterday",
            "Temps higher than yesterday",
            "Higher temperature is expected today"
        ],
        "insight_text_long": [
            "Temperatures a little higher than yesterday",
            "Temps higher than yesterday",
            "Higher temperature is expected today"
        ],
        "insight_headline": [
            "Today's Temperature",
            null,
            null
        ],
        "insight_image": [
            "https://s.w-x.co/util/image/w/ss_temp_warmer.jpg"
        ],
        "insight_links_element": [
            "webTemperatureChangeInsight"
        ],
        "insight_links_element_anchor": [
            "&cm_ven=tempchange_ins_2"
        ],
        "insight_alternative_url": null,
        "insight_valid_time_utc": 1796385600,
        "insight_priority": 2,
        "insight_priority_alternative": 2,
        "insight_show_notification": false,
        "insight_show_widget": true,
        "insight_show_default": true,
        "insight_show_card": true,
        "supplement": {
            "visual_data": "2°↑",
            "visual_description": null,
            "time_descriptor": "Today"
        }
    },
    {
        "insight_type": "sunInsight",
        "insight_text": [
            "Sunrise will be at 7:03 AM",
            "Sunrise at 7:03 AM",
            "Sunrise at 7:03 AM"
        ],
        "insight_text_long": [
            "Sunrise will be at 7:03 AM",
            "Sunrise at 7:03 AM",
            "Sunrise at 7:03 AM"
        ],
        "insight_headline": [
            "Rise and shine",
            null,
            null
        ],
        "insight_image": null,
        "insight_links_element": [
            "webForecastDaily10"
        ],
        "insight_links_element_anchor": [
            "#detailIndex0"
        ],
        "insight_alternative_url": null,
        "insight_valid_time_utc": null,
        "insight_priority": 3,
        "insight_priority_alternative": 3,
        "insight_show_notification": false,
        "insight_show_widget": true,
        "insight_show_default": true,
        "insight_show_card": true,
        "supplement": {
            "visual_data": null,
            "visual_description": null,
            "sun_type": 1,
            "sunrise": 1796385820,
            "sunset": 1796419737,
            "time_format": 12,
            "civil_dusk": 1796421554,
            "civil_dawn": 1796383989,
            "nautical_dusk": 1796423601,
            "nautical_dawn": 1796381942,
            "astronomical_dusk": 1796425586,
            "astronomical_dawn": 1796379957
        }
    }
]
获取天气信息 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/16045/weather+com+api/45624/get+weather+insights?location=40.71,-74.01&units=metric&language=en-US' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

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

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

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

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

起价
$10,000/年


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

概览

任意地点的天气:当前天气、15天每日和每小时预报、降水临近预报、预警、历史天气、气候常年值、空气质量、花粉和热带风暴

一般常见问题

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