地理天气API旨在根据地理坐标为用户提供基本的天气信息。通过这个API,用户可以获取详细的天气预报、当前天气观测以及针对特定经纬度定义位置的实时警报。
API提供指定经纬度坐标的完整天气预报。用户可以检索各个时间段的预报,包括小时、天和周的预报。这些预报包括温度、降水量、湿度和风速等基本天气参数,使用户能够根据即将到来的天气情况安排活动并做出明智的决策。
当前观测:用户可以通过API获取特定经纬度坐标的实时天气观测。用户可以获取关于温度、湿度、风速和风向、降水量以及其他相关天气指标的最新信息。此功能使用户能够及时了解他们所需位置的当前天气状况。
API旨在无缝集成到各种应用、网站和平台中。通过其端点和完整的文档,开发人员可以轻松将基于经纬度坐标的天气数据集成到他们的项目中,提高应用的功能性和可用性。
总之,地理天气API提供了一种全面的解决方案,便于访问基于地理坐标的预报、当前观测和警报。易于集成和可靠的性能,API为需要准确及时的特定位置天气信息的各行业和应用中的用户提供了宝贵的资源。
它将接收参数并提供给您一个JSON。
所有计划每小时1000个请求。
要使用此端点,您必须在参数中指明经度和纬度
天气信息 - 端点功能
| 对象 | 描述 |
|---|---|
lat |
[必需] Enter a latitude |
lng |
[必需] Enter a longitude |
{"location":{"region":"wrh","latitude":"38.07","longitude":"-120.65","elevation":"1398","wfo":"STO","timezone":"P|Y|8","areaDescription":"6 Miles W Angels CA","radar":"KDAX","zone":"CAZ067","county":"CAC009","firezone":"CAZ220","metar":"ESPC1"},"currentObservation":{"id":"ESPC1","name":"BANNER ROAD","observationDate":"07 Aug 10:13 AM PDT","temperature":99,"dewpoint":38,"relativeHumidity":"12%","windSpeed":4,"windDirection":"S","windGusts":"NA","weather":"NA","icon":"https://forecast.weather.gov/images/wtf/large/NULL","visibility":"NA","altimeter":"NA","seaLevelPressure":"NA","timezone":"PST","state":"CA","feelsLike":"NA"},"days":[{"id":1,"name":"Today","startTime":"2024-08-07T11:00:00-07:00","endTime":"2024-08-07T18:00:00-07:00","isDaytime":true,"temperature":103,"temperatureTrend":"","probabilityOfPrecipitation":"null%","dewpoint":"--","relativeHumidity":"","windSpeed":"5 to 9 mph","windDirection":"W","icon":"https://api.weather.gov/icons/land/day/hot?size=medium","shortForecast":"Sunny","detailedForecast":"Sunny. High near 103, with temperatures falling to around 101 in the afternoon. West wind 5 to 9 mph.","hourly":[{"id":1,"name":"","startTime":"2024-08-07T11:00:00-07:00","endTime":"2024-08-07T12:00:00-07:00","isDaytime":true,"temperature":99,"temperatureTrend":"","probabilityOfPrecipitation":"0%","dewpoint":"42°","relativeHumidity":"14%","windSpeed":"5 mph","windDirection":"WSW","icon":"https://api.weather.gov/icons/land/day/hot?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":2,"name":"","startTime":"2024-08-07T12:00:00-07:00","endTime":"2024-08-07T13:00:00-07:00","isDaytime":true,"temperature":101,"temperatureTrend":"","probabilityOfPrecipitation":"1%","dewpoint":"41°","relativeHumidity":"13%","windSpeed":"6 mph","windDirection":"WSW","icon":"https://api.weather.gov/icons/land/day/hot?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":3,"name":"","startTime":"2024-08-07T13:00:00-07:00","endTime":"2024-08-07T14:00:00-07:00","isDaytime":true,"temperature":101,"temperatureTrend":"","probabilityOfPrecipitation":"1%","dewpoint":"42°","relativeHumidity":"13%","windSpeed":"8 mph","windDirection":"WSW","icon":"https://api.weather.gov/icons/land/day/hot?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":4,"name":"","startTime":"2024-08-07T14:00:00-07:00","endTime":"2024-08-07T15:00:00-07:00","isDaytime":true,"temperature":102,"temperatureTrend":"","probabilityOfPrecipitation":"2%","dewpoint":"42°","relativeHumidity":"13%","windSpeed":"8 mph","windDirection":"WSW","icon":"https://api.weather.gov/icons/land/day/hot?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":5,"name":"","startTime":"2024-08-07T15:00:00-07:00","endTime":"2024-08-07T16:00:00-07:00","isDaytime":true,"temperature":102,"temperatureTrend":"","probabilityOfPrecipitation":"2%","dewpoint":"40°","relativeHumidity":"12%","windSpeed":"9 mph","windDirection":"W","icon":"https://api.weather.gov/icons/land/day/hot?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":6,"name":"","startTime":"2024-08-07T16:00:00-07:00","endTime":"2024-08-07T17:00:00-07:00","isDaytime":true,"temperature":102,"temperatureTrend":"","probabilityOfPrecipitation":"2%","dewpoint":"42°","relativeHumidity":"13%","windSpeed":"9 mph","windDirection":"W","icon":"https://api.weather.gov/icons/land/day/hot?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":7,"name":"","startTime":"2024-08-07T17:00:00-07:00","endTime":"2024-08-07T18:00:00-07:00","isDaytime":true,"temperature":101,"temperatureTrend":"","probabilityOfPrecipitation":"2%","dewpoint":"44°","relativeHumidity":"14%","windSpeed":"9 mph","windDirection":"W","icon":"https://api.weather.gov/icons/land/day/hot?size=small","shortForecast":"Sunny","detailedForecast":""}]},{"id":2,"name":"Tonight","startTime":"2024-08-07T18:00:00-07:00","endTime":"2024-08-08T06:00:00-07:00","isDaytime":false,"temperature":68,"temperatureTrend":"","probabilityOfPrecipitation":"null%","dewpoint":"--","relativeHumidity":"","windSpeed":"1 to 9 mph","windDirection":"NNW","icon":"https://api.weather.gov/icons/land/night/few?size=medium","shortForecast":"Mostly Clear","detailedForecast":"Mostly clear, with a low around 68. North northwest wind 1 to 9 mph.","hourly":[{"id":8,"name":"","startTime":"2024-08-07T18:00:00-07:00","endTime":"2024-08-07T19:00:00-07:00","isDaytime":false,"temperature":100,"temperatureTrend":"","probabilityOfPrecipitation":"2%","dewpoint":"44°","relativeHumidity":"15%","windSpeed":"9 mph","windDirection":"WNW","icon":"https://api.weather.gov/icons/land/night/skc?size=small","shortForecast":"Clear","detailedForecast":""},{"id":9,"name":"","startTime":"2024-08-07T19:00:00-07:00","endTime":"2024-08-07T20:00:00-07:00","isDaytime":false,"temperature":97,"temperatureTrend":"","probabilityOfPrecipitation":"2%","dewpoint":"44°","relativeHumidity":"16%","windSpeed":"7 mph","windDirection":"WNW","icon":"https://api.weather.gov/icons/land/night/skc?size=small","shortForecast":"Clear","detailedForecast":""},{"id":10,"name":"","startTime":"2024-08-07T20:00:00-07:00","endTime":"2024-08-07T21:00:00-07:00","isDaytime":false,"temperature":90,"temperatureTrend":"","probabilityOfPrecipitation":"2%","dewpoint":"42°","relativeHumidity":"19%","windSpeed":"6 mph","windDirection":"NW","icon":"https://api.weather.gov/icons/land/night/skc?size=small","shortForecast":"Clear","detailedForecast":""},{"id":11,"name":"","startTime":"2024-08-07T21:00:00-07:00","endTime":"2024-08-07T22:00:00-07:00","isDaytime":false,"temperature":85,"temperatureTrend":"","probabilityOfPrecipitation":"2%","dewpoint":"44°","relativeHumidity":"24%","windSpeed":"5 mph","windDirection":"NNW","icon":"https://api.weather.gov/icons/land/night/skc?size=small","shortForecast":"Clear","detailedForecast":""},{"id":12,"name":"","startTime":"2024-08-07T22:00:00-07:00","endTime":"2024-08-07T23:00:00-07:00","isDaytime":false,"temperature":81,"temperatureTrend":"","probabilityOfPrecipitation":"1%","dewpoint":"43°","relativeHumidity":"26%","windSpeed":"3 mph","windDirection":"N","icon":"https://api.weather.gov/icons/land/night/few?size=small","shortForecast":"Mostly Clear","detailedForecast":""},{"id":13,"name":"","startTime":"2024-08-07T23:00:00-07:00","endTime":"2024-08-08T00:00:00-07:00","isDaytime":false,"temperature":79,"temperatureTrend":"","probabilityOfPrecipitation":"1%","dewpoint":"44°","relativeHumidity":"29%","windSpeed":"2 mph","windDirection":"N","icon":"https://api.weather.gov/icons/land/night/few?size=small","shortForecast":"Mostly Clear","detailedForecast":""}]},{"id":3,"name":"Thursday","startTime":"2024-08-08T06:00:00-07:00","endTime":"2024-08-08T18:00:00-07:00","isDaytime":true,"temperature":99,"temperatureTrend":"","probabilityOfPrecipitation":"null%","dewpoint":"--","relativeHumidity":"","windSpeed":"1 to 10 mph","windDirection":"NW","icon":"https://api.weather.gov/icons/land/day/hot?size=medium","shortForecast":"Sunny","detailedForecast":"Sunny, with a high near 99. Northwest wind 1 to 10 mph.","hourly":[{"id":20,"name":"","startTime":"2024-08-08T06:00:00-07:00","endTime":"2024-08-08T07:00:00-07:00","isDaytime":true,"temperature":69,"temperatureTrend":"","probabilityOfPrecipitation":"0%","dewpoint":"45°","relativeHumidity":"43%","windSpeed":"1 mph","windDirection":"NNW","icon":"https://api.weather.gov/icons/land/day/few?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":21,"name":"","startTime":"2024-08-08T07:00:00-07:00","endTime":"2024-08-08T08:00:00-07:00","isDaytime":true,"temperature":70,"temperatureTrend":"","probabilityOfPrecipitation":"0%","dewpoint":"46°","relativeHumidity":"43%","windSpeed":"1 mph","windDirection":"NNW","icon":"https://api.weather.gov/icons/land/day/few?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":22,"name":"","startTime":"2024-08-08T08:00:00-07:00","endTime":"2024-08-08T09:00:00-07:00","isDaytime":true,"temperature":75,"temperatureTrend":"","probabilityOfPrecipitation":"0%","dewpoint":"46°","relativeHumidity":"36%","windSpeed":"2 mph","windDirection":"N","icon":"https://api.weather.gov/icons/land/day/skc?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":23,"name":"","startTime":"2024-08-08T09:00:00-07:00","endTime":"2024-08-08T10:00:00-07:00","isDaytime":true,"temperature":81,"temperatureTrend":"","probabilityOfPrecipitation":"0%","dewpoint":"45°","relativeHumidity":"28%","windSpeed":"2 mph","windDirection":"N","icon":"https://api.weather.gov/icons/land/day/skc?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":24,"name":"","startTime":"2024-08-08T10:00:00-07:00","endTime":"2024-08-08T11:00:00-07:00","isDaytime":true,"temperature":90,"temperatureTrend":"","probabilityOfPrecipitation":"0%","dewpoint":"45°","relativeHumidity":"21%","windSpeed":"2 mph","windDirection":"N","icon":"https://api.weather.gov/icons/land/day/skc?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":25,"name":"","startTime":"2024-08-08T11:00:00-07:00","endTime":"2024-08-08T12:00:00-07:00","isDaytime":true,"temperature":94,"temperatureTrend":"","probabilityOfPrecipitation":"0%","dewpoint":"43°","relativeHumidity":"17%","windSpeed":"6 mph","windDirection":"W","icon":"https://api.weather.gov/icons/land/day/few?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":26,"name":"","startTime":"2024-08-08T12:00:00-07:00","endTime":"2024-08-08T13:00:00-07:00","isDaytime":true,"temperature":97,"temperatureTrend":"","probabilityOfPrecipitation":"0%","dewpoint":"42°","relativeHumidity":"15%","windSpeed":"6 mph","windDirection":"W","icon":"https://api.weather.gov/icons/land/day/hot?size=small","shortForecast":"Sunny","detailedForecast":""},{"id":27,"name":"","startTime":"2024-08-08T13:00:00-07:00","endTime":"2024-08-08T14:00:00-07:00","isDaytime":true,"temperature":98,"temperatureTrend":"","probabilityOfPrecipitation":"0%","dewpoint":"43°","relativeHumidity":"15%","windSpeed":"6 mph","windDirection":"W"}]}],"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/3531/geographical+weather+api/3873/weather+information?lat=40.7128&lng=-74.006' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
用户必须输入纬度和经度才能获取有关给定位置的天气信息
地理天气API根据地理坐标(如经度和纬度)为用户提供天气信息
有不同的计划来满足所有口味,包括少量请求的免费试用,但为了避免滥用服务,您的速率是有限制的
Zyla提供了几乎所有编程语言的各种集成方法。您可以根据需要使用这些代码与您的项目集成
地理天气API根据指定的纬度和经度返回当前天气观测、预测和警报这包括温度、湿度、风速、降水量和天气状况
响应中的关键字段包括“currentObservation”(温度 湿度 风速) “days”(天气预报细节如温度和降水概率)和“location”(地理细节如地区和时区)
响应采用JSON格式结构,主要分为“位置”、“当前观察”和“天数”三个部分。每个部分包含相关数据字段,便于在应用中解析和利用
每个端点提供实时天气数据,包括当前条件、每小时和每天的天气预报以及警报。用户可以访问详细的指标,如温度、风向和降水概率
主要参数是经度和纬度,它们定义了请求天气数据的地理位置 用户可以通过指定这些坐标来自定义请求
数据准确性通过与可靠的气象来源的合作和持续更新得以保持 该API采用质量检查以确保提供的信息是最新和准确的
典型用例包括户外活动策划 旅行规划 建设调度 农场管理 和物流优化 使用户能够根据天气条件做出明智的决策
用户可以从JSON响应中提取特定字段,以在他们的应用程序中显示当前天气、预报细节或警报。例如,他们可以显示温度和降水量,以便告知用户即将到来的天气条件
服务级别:
100%
响应时间:
838ms
服务级别:
100%
响应时间:
83ms
服务级别:
100%
响应时间:
683ms
服务级别:
100%
响应时间:
2,034ms
服务级别:
100%
响应时间:
7,076ms
服务级别:
100%
响应时间:
875ms
服务级别:
100%
响应时间:
746ms
服务级别:
100%
响应时间:
79ms
服务级别:
100%
响应时间:
393ms
服务级别:
100%
响应时间:
77ms
服务级别:
100%
响应时间:
4,163ms
服务级别:
100%
响应时间:
398ms
服务级别:
100%
响应时间:
6,256ms
服务级别:
100%
响应时间:
20ms
服务级别:
100%
响应时间:
124ms
服务级别:
100%
响应时间:
1,082ms
服务级别:
100%
响应时间:
1,414ms
服务级别:
100%
响应时间:
9,220ms
服务级别:
100%
响应时间:
2,192ms
服务级别:
100%
响应时间:
3,823ms