five

World Time API

收藏
RapidAPI2026-01-13 更新2025-08-09 收录
下载链接:
https://rapidapi.com/sleeyax/api/world-time-api3
下载链接
链接失效反馈
官方服务:
资源简介:
Worldwide timezone lookup, IP to timezone conversion, current time & more
创建时间:
2026-01-13
原始信息汇总

World Time API 数据集概述

基本描述

World Time API 是一个提供全球时区查询、IP到时区转换、当前时间等功能的API服务。它是 worldtimeapi.org 的快速、可靠且最新的替代方案,能够以JSON或纯文本格式返回指定时区或IP地址的当前本地时间详情。

功能特性

  • 功能对比优势
    • 📅 频繁更新:支持
    • 🟢 可靠性:支持
    • 🚀 性能:快速
    • 🕒 时区支持:支持
    • 🌍 Geo IP支持:支持
    • 👐 开源:支持
    • 💼 商业用途:支持
    • 🔄 与 worldtimeapi.org API 向后兼容:支持
    • 📝 响应格式:JSON、纯文本

数据来源

  • 时区数据来自 IANA 时区数据库。
  • Geo IP 数据来自 maxmind geolite2。
  • 两者均为行业标准,并定期更新以反映时区和IP地理定位数据的变化。

API端点

时区端点

  • GET /api/timezone - 列出所有可用时区 (JSON)
  • GET /api/timezone.txt - 列出所有可用时区 (纯文本)
  • GET /api/timezone/{area} - 列出特定区域的时区 (JSON)
  • GET /api/timezone/{area}.txt - 列出特定区域的时区 (纯文本)
  • GET /api/timezone/{area}/{location} - 获取位置的当前时间 (JSON)
  • GET /api/timezone/{area}/{location}.txt - 获取位置的当前时间 (纯文本)
  • GET /api/timezone/{area}/{location}/{region} - 获取区域的当前时间 (JSON)
  • GET /api/timezone/{area}/{location}/{region}.txt - 获取区域的当前时间 (纯文本)

基于IP的端点

  • GET /api/ip - 基于客户端IP获取时间 (JSON)
  • GET /api/ip.txt - 基于客户端IP获取时间 (纯文本)
  • GET /api/ip/{ipv4} - 基于特定IP获取时间 (JSON)
  • GET /api/ip/{ipv4}.txt - 基于特定IP获取时间 (纯文本)

响应格式示例

JSON格式

json { "utc_offset": "-04:00", "timezone": "America/New_York", "day_of_week": 6, "day_of_year": 214, "datetime": "2025-08-02T13:02:11.703-04:00", "utc_datetime": "2025-08-02T17:02:11.703+00:00", "unixtime": 1754154131, "raw_offset": -18000, "week_number": 31, "dst": true, "abbreviation": "EDT", "dst_offset": 3600, "dst_from": "2025-03-09T07:00:00+00:00", "dst_until": "2025-11-02T06:00:00+00:00", "client_ip": "127.0.0.1" }

纯文本格式

utc_offset: -04:00 timezone: America/New_York day_of_week: 6 day_of_year: 214 datetime: 2025-08-02T13:02:51.390-04:00 utc_datetime: 2025-08-02T17:02:51.390+00:00 unixtime: 1754154171 raw_offset: -18000 week_number: 31 dst: true abbreviation: EDT dst_offset: 3600 dst_from: 2025-03-09T07:00:00+00:00 dst_until: 2025-11-02T06:00:00+00:00 client_ip: 127.0.0.1

发展路线图

  • 提供额外的地理定位数据API端点(坐标、国家、城市等)。
  • 支持IPV6。
  • 欢迎建议新功能。

提供商信息

  • API创建者:sleeyax
  • 订阅者数量:360
  • 类别:Location
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

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

二维码
科研交流群

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

数据驱动未来

携手共赢发展

商业合作