five

Realtime Weather

收藏
RapidAPI2025-12-19 更新2025-12-21 收录
下载链接:
https://rapidapi.com/mnadeem24434-Or3rKDZKh-r/api/realtime-weather1
下载链接
链接失效反馈
官方服务:
资源简介:
Fetch real-time weather information for a specified city. This endpoint accepts a city name as input and returns current weather data such as temperature, conditions, and related metrics in JSON format.
创建时间:
2025-12-19
原始信息汇总

Realtime Weather API 数据集概述

基本信息

  • 数据集名称: Realtime Weather
  • 提供平台: RapidAPI
  • 提供者: M Nadeem Asghar (AnyMatch Technologies)
  • 类别: Weather
  • 子类别: Realtime Weather
  • API版本: 1.0.0 (current)
  • 流行度: 8.5
  • 服务等级: 100%
  • 平均延迟: 802ms

定价

  • 基础计划: $30.00 / 月

功能描述

该API用于获取指定城市的实时天气信息。它接受城市名称作为输入,并以JSON格式返回当前天气数据,如温度、天气状况及相关指标。该API设计用于快速、轻量级地集成到Web、移动和后台应用程序中。

技术规格

  • 基础URL: https://api.anymatch.tech
  • 端点: /api/weather/realtime
  • 请求方法: POST

请求详情

  • 请求头:
    • Accept: application/json
    • Content-Type: multipart/form-data
  • 请求体参数:
    • q (string, 必需): 城市名称(例如:Lahore)

响应详情

  • 成功响应 (200 OK):

    • 返回请求城市的实时天气数据。
    • 示例响应体: json { "city": "Lahore", "temperature": "30°C", "condition": "Clear", "humidity": "55%", "wind_speed": "12 km/h", "updated_at": "2025-12-20T12:00:00Z" }
  • 错误响应:

    • 400 Bad Request: 当城市参数缺失或无效时返回。 json { "error": "City parameter (q) is required" }

    • 404 Not Found: 当给定城市的天气数据不可用时返回。 json { "error": "City not found" }

使用示例

  • cURL请求示例: bash curl -X POST "https://api.anymatch.tech/api/weather/realtime" -H "Accept: application/json" -F "q=Lahore"

应用场景

  • 天气仪表板
  • 旅行和旅游应用程序
  • 物流和配送规划
  • 基于位置的服务

特性说明

  • 城市名称不区分大小写。
  • 支持全球城市。
  • JSON响应针对实时使用进行了优化。

支持与联系

如需API访问、集成支持或定制计划,请联系 AnyMatch Technologies

5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作