{"location":{"region":"erh","latitude":"40.71","longitude":"-74.01","elevation":"7","wfo":"OKX","timezone":"E|Y|5","areaDescription":"New York NY","radar":"KDIX","zone":"NYZ072","county":"NYC061","firezone":"NYZ212","metar":"KNYC"},"currentObservation":{"id":"KNYC","name":"New York City, Central Park","observationDate":"26 Sep 10:51 am EDT","temperature":69,"dewpoint":66,"relativeHumidity":"90%","windSpeed":3,"windDirection":"W","windGusts":"NA","weather":" Light Rain Fog/Mist","icon":"https://forecast.weather.gov/images/wtf/large/ra.png","visibility":"3.00","altimeter":"1019.2","seaLevelPressure":"30.13","timezone":"EDT","state":"NY","feelsLike":"NA"},"days":[{"id":1,"name":"Today","startTime":"2024-09-26T10:00:00-04:00","endTime":"2024-09-26T18:00:00-04:00","isDaytime":true,"temperature":74,"temperatureTrend":"","probabilityOfPrecipitation":"70%","dewpoint":"--","relativeHumidity":"","windSpeed":"12 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/day/tsra,70?size=medium","shortForecast":"Showers And Thunderstorms Likely","detailedForecast":"Showers and thunderstorms likely before 5pm, then a slight chance of showers and thunderstorms. Cloudy. High near 74, with temperatures falling to around 72 in the afternoon. South wind around 12 mph. Chance of precipitation is 70%. New rainfall amounts between a tenth and quarter of an inch possible.","hourly":[{"id":1,"name":"","startTime":"2024-09-26T10:00:00-04:00","endTime":"2024-09-26T11:00:00-04:00","isDaytime":true,"temperature":68,"temperatureTrend":"","probabilityOfPrecipitation":"56%","dewpoint":"67°","relativeHumidity":"97%","windSpeed":"10 mph","windDirection":"SE","icon":"https://api.weather.gov/icons/land/day/tsra,60?size=small","shortForecast":"Showers And Thunderstorms Likely","detailedForecast":""},{"id":2,"name":"","startTime":"2024-09-26T11:00:00-04:00","endTime":"2024-09-26T12:00:00-04:00","isDaytime":true,"temperature":68,"temperatureTrend":"","probabilityOfPrecipitation":"65%","dewpoint":"68°","relativeHumidity":"100%","windSpeed":"12 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/day/tsra,70?size=small","shortForecast":"Showers And Thunderstorms Likely","detailedForecast":""},{"id":3,"name":"","startTime":"2024-09-26T12:00:00-04:00","endTime":"2024-09-26T13:00:00-04:00","isDaytime":true,"temperature":69,"temperatureTrend":"","probabilityOfPrecipitation":"65%","dewpoint":"69°","relativeHumidity":"100%","windSpeed":"12 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/day/tsra,70?size=small","shortForecast":"Showers And Thunderstorms Likely","detailedForecast":""},{"id":4,"name":"","startTime":"2024-09-26T13:00:00-04:00","endTime":"2024-09-26T14:00:00-04:00","isDaytime":true,"temperature":70,"temperatureTrend":"","probabilityOfPrecipitation":"65%","dewpoint":"70°","relativeHumidity":"100%","windSpeed":"12 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/day/tsra,70?size=small","shortForecast":"Showers And Thunderstorms Likely","detailedForecast":""},{"id":5,"name":"","startTime":"2024-09-26T14:00:00-04:00","endTime":"2024-09-26T15:00:00-04:00","isDaytime":true,"temperature":71,"temperatureTrend":"","probabilityOfPrecipitation":"41%","dewpoint":"70°","relativeHumidity":"97%","windSpeed":"12 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/day/tsra,40?size=small","shortForecast":"Chance Showers And Thunderstorms","detailedForecast":""},{"id":6,"name":"","startTime":"2024-09-26T15:00:00-04:00","endTime":"2024-09-26T16:00:00-04:00","isDaytime":true,"temperature":72,"temperatureTrend":"","probabilityOfPrecipitation":"41%","dewpoint":"71°","relativeHumidity":"97%","windSpeed":"12 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/day/tsra,40?size=small","shortForecast":"Chance Showers And Thunderstorms","detailedForecast":""},{"id":7,"name":"","startTime":"2024-09-26T16:00:00-04:00","endTime":"2024-09-26T17:00:00-04:00","isDaytime":true,"temperature":72,"temperatureTrend":"","probabilityOfPrecipitation":"41%","dewpoint":"72°","relativeHumidity":"100%","windSpeed":"12 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/day/tsra,40?size=small","shortForecast":"Chance Showers And Thunderstorms","detailedForecast":""},{"id":8,"name":"","startTime":"2024-09-26T17:00:00-04:00","endTime":"2024-09-26T18:00:00-04:00","isDaytime":true,"temperature":72,"temperatureTrend":"","probabilityOfPrecipitation":"20%","dewpoint":"72°","relativeHumidity":"100%","windSpeed":"12 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/day/tsra,20?size=small","shortForecast":"Slight Chance Showers And Thunderstorms","detailedForecast":""}]},{"id":2,"name":"Tonight","startTime":"2024-09-26T18:00:00-04:00","endTime":"2024-09-27T06:00:00-04:00","isDaytime":false,"temperature":67,"temperatureTrend":"","probabilityOfPrecipitation":"50%","dewpoint":"--","relativeHumidity":"","windSpeed":"6 to 10 mph","windDirection":"W","icon":"https://api.weather.gov/icons/land/night/tsra,50?size=medium","shortForecast":"Chance Showers And Thunderstorms","detailedForecast":"A chance of showers and thunderstorms before 2am, then a chance of showers and thunderstorms. Cloudy. Low around 67, with temperatures rising to around 69 overnight. West wind 6 to 10 mph. Chance of precipitation is 50%. New rainfall amounts between a tenth and quarter of an inch possible.","hourly":[{"id":9,"name":"","startTime":"2024-09-26T18:00:00-04:00","endTime":"2024-09-26T19:00:00-04:00","isDaytime":false,"temperature":72,"temperatureTrend":"","probabilityOfPrecipitation":"20%","dewpoint":"71°","relativeHumidity":"97%","windSpeed":"10 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/night/tsra,20?size=small","shortForecast":"Slight Chance Showers And Thunderstorms","detailedForecast":""},{"id":10,"name":"","startTime":"2024-09-26T19:00:00-04:00","endTime":"2024-09-26T20:00:00-04:00","isDaytime":false,"temperature":73,"temperatureTrend":"","probabilityOfPrecipitation":"20%","dewpoint":"70°","relativeHumidity":"90%","windSpeed":"9 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/night/tsra,20?size=small","shortForecast":"Slight Chance Showers And Thunderstorms","detailedForecast":""},{"id":11,"name":"","startTime":"2024-09-26T20:00:00-04:00","endTime":"2024-09-26T21:00:00-04:00","isDaytime":false,"temperature":73,"temperatureTrend":"","probabilityOfPrecipitation":"45%","dewpoint":"70°","relativeHumidity":"90%","windSpeed":"9 mph","windDirection":"S","icon":"https://api.weather.gov/icons/land/night/tsra,50?size=small","shortForecast":"Chance Showers And Thunderstorms","detailedForecast":""},{"id":12,"name":"","startTime":"2024-09-26T21:00:00-04:00","endTime":"2024-09-26T22:00:00-04:00","isDaytime":false,"temperature":73,"temperatureTrend":"","probabilityOfPrecipitation":"45%","dewpoint":"70°","relativeHumidity":"90%","windSpeed":"8 mph","windDirection":"SW","icon":"https://api.weather.gov/icons/land/night/tsra,50?size=small","shortForecast":"Chance Showers And Thunderstorms","detailedForecast":""},{"id":13,"name":"","startTime":"2024-09-26T22:00:00-04:00","endTime":"2024-09-26T23:00:00-04:00","isDaytime":false,"temperature":72,"temperatureTrend":"","probabilityOfPrecipitation":"45%","dewpoint":"69°","relativeHumidity":"90%","windSpeed":"7 mph","windDirection":"SW","icon":"https://api.weather.gov/icons/land/night/tsra,50?size=small","shortForecast":"Chance Showers And Thunderstorms","detailedForecast":""},{"id":14,"name":"","startTime":"2024-09-26T23:00:00-04:00","endTime":"2024-09-27T00:00:00-04:00","isDaytime":false,"temperature":72,"temperatureTrend":"","probabilityOfPrecipitation":"45%","dewpoint":"69°","relativeHumidity":"90%","windSpeed":"7 mph","windDirection":"SW","icon":"https://api.weather.gov/icons/land/night/tsra,50?size=small","shortForecast":"Chance Showers And Thunderstorms","detailedForecast":""}]},{"id":3,"name":"Friday","startTime":"2024-09-27T06:00:00-04:00","endTime":"2024-09-27T18:00:00-04:00","isDaytime":true,"temperature":72,"temperatureTrend":"","probabilityOfPrecipitation":"40%","dewpoint":"--","relativeHumidity":"","windSpeed":"7 mph","windDirection":"NE","icon":"https://api.weather.gov/icons/land/day/rain_showers,40/rain_showers,20?size=medium","shortForecast":"Chance Rain Showers","detailedForecast":"A chance of rain showers. Cloudy, with a high near 72. Northeast wind around 7 mph. Chance of precipitation is 40%. New rainfall amounts between a tenth and quarter of an inch possible.","hourly":[{"id":21,"name":"","startTime":"2024-09-27T06:00:00-04:00","endTime":"2024-09-27T07:00:00-04:00","isDaytime":true,"temperature":68,"temperatureTrend":"","probabilityOfPrecipitation":"43%","dewpoint":"66°","relativeHumidity":"93%","windSpeed":"6 mph","windDirection":"N","icon":"https://api.weather.gov/icons/land/day/rain_showers,40?size=small","shortForecast":"Chance Rain Showers","detailedForecast":""},{"id":22,"name":"","startTime":"2024-09-27T07:00:00-04:00","endTime":"2024-09-27T08:00:00-04:00","isDaytime":true,"temperature":68,"temperatureTrend":"","probabilityOfPrecipitation":"43%","dewpoint":"65°","relativeHumidity":"90%","windSpeed":"6 mph","windDirection":"NE","icon":"https://api.weather.gov/icons/land/day/rain_showers,40?size=small","shortForecast":"Chance Rain Showers","detailedForecast":""},{"id":23,"name":"","startTime":"2024-09-27T08:00:00-04:00","endTime":"2024-09-27T09:00:00-04:00","isDaytime":true,"temperature":68,"temperatureTrend":"","probabilityOfPrecipitation":"18%","dewpoint":"64°","relativeHumidity":"87%","windSpeed":"6 mph","windDirection":"NE","icon":"https://api.weather.gov/icons/land/day/rain_showers,20?size=small","shortForecast":"Slight Chance Rain Showers","detailedForecast":""},{"id":24,"name":"","startTime":"2024-09-27T09:00:00-04:00","endTime":"2024-09-27T10:00:00-04:00","isDaytime":true,"temperature":68,"temperatureTrend":"","probabilityOfPrecipitation":"18%","dewpoint":"63°"}]}],"_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'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 地理天气 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
地理天气API旨在根据地理坐标为用户提供基本的天气信息。通过这个API,用户可以获取详细的天气预报、当前天气观测以及针对特定经纬度定义位置的实时警报。
API提供指定经纬度坐标的完整天气预报。用户可以检索各个时间段的预报,包括小时、天和周的预报。这些预报包括温度、降水量、湿度和风速等基本天气参数,使用户能够根据即将到来的天气情况安排活动并做出明智的决策。
当前观测:用户可以通过API获取特定经纬度坐标的实时天气观测。用户可以获取关于温度、湿度、风速和风向、降水量以及其他相关天气指标的最新信息。此功能使用户能够及时了解他们所需位置的当前天气状况。
API旨在无缝集成到各种应用、网站和平台中。通过其端点和完整的文档,开发人员可以轻松将基于经纬度坐标的天气数据集成到他们的项目中,提高应用的功能性和可用性。
总之,地理天气API提供了一种全面的解决方案,便于访问基于地理坐标的预报、当前观测和警报。易于集成和可靠的性能,API为需要准确及时的特定位置天气信息的各行业和应用中的用户提供了宝贵的资源。
它将接收参数并提供给您一个JSON。
所有计划每小时1000个请求。
用户必须输入纬度和经度才能获取有关给定位置的天气信息
地理天气API根据地理坐标(如经度和纬度)为用户提供天气信息
有不同的计划来满足所有口味,包括少量请求的免费试用,但为了避免滥用服务,您的速率是有限制的
Zyla提供了几乎所有编程语言的各种集成方法。您可以根据需要使用这些代码与您的项目集成
地理天气API根据指定的纬度和经度返回当前天气观测、预测和警报这包括温度、湿度、风速、降水量和天气状况
响应中的关键字段包括“currentObservation”(温度 湿度 风速) “days”(天气预报细节如温度和降水概率)和“location”(地理细节如地区和时区)
响应采用JSON格式结构,主要分为“位置”、“当前观察”和“天数”三个部分。每个部分包含相关数据字段,便于在应用中解析和利用
每个端点提供实时天气数据,包括当前条件、每小时和每天的天气预报以及警报。用户可以访问详细的指标,如温度、风向和降水概率
主要参数是经度和纬度,它们定义了请求天气数据的地理位置 用户可以通过指定这些坐标来自定义请求
数据准确性通过与可靠的气象来源的合作和持续更新得以保持 该API采用质量检查以确保提供的信息是最新和准确的
典型用例包括户外活动策划 旅行规划 建设调度 农场管理 和物流优化 使用户能够根据天气条件做出明智的决策
用户可以从JSON响应中提取特定字段,以在他们的应用程序中显示当前天气、预报细节或警报。例如,他们可以显示温度和降水量,以便告知用户即将到来的天气条件