Global Weather API
收藏RapidAPI2025-07-02 更新2025-07-05 收录
下载链接:
https://rapidapi.com/yushikamuru/api/global-weather-api1
下载链接
链接失效反馈官方服务:
资源简介:
Real-time weather data by city name.
创建时间:
2025-07-02
原始信息汇总
Global Weather API 数据集概述
基本信息
- API名称: Global Weather API
- 类别: Weather
- 提供商: Noel Paton-og
- 订阅人数: 1
- 基础URL:
https://globe-weather-api.netlify.app/.netlify/functions
功能特点
- 提供全球城市的实时天气和环境数据
- 简单易用的RESTful接口
- 无需API密钥(公开访问)
- 优化速度和简洁性
订阅计划
- BASIC: $0.00 / 月
- PRO: $2.99 / 月
- ULTRA: $4.99 / 月
- MEGA: $9.99 / 月
端点详情
| 端点 | 描述 | 示例 |
|---|---|---|
/weather |
获取城市的当前天气数据 | /weather?city=London |
/forecast |
获取5天天气预报 | /forecast?city=Tokyo |
/airquality |
获取空气质量指数和污染物水平 | /airquality?city=Los Angeles |
/astronomy |
获取日出、日落、月出、月落时间 | /astronomy?city=Cairo |
/timezone |
获取当前本地时间和时区信息 | /timezone?city=Sydney |
示例请求与响应
请求:
GET /weather?city=New York
响应: json { "city": "New York", "temperature": "26°C", "description": "Partly cloudy", "humidity": "60%", "wind_speed": "14 km/h" }
使用方法
- 选择所需的端点。
- 在查询字符串中添加
city参数。 - 使用任何HTTP客户端(如
fetch、axios或Postman)发送GET请求。 - 接收JSON格式的天气数据。



