World Time API
Mock the World Time API to return current-time, timezone, and IP-geolocation data without depending on the live worldtimeapi.org service.
[01]
About
Emulate timezone listings, area and region lookups, IP-based time-of-day responses, and the rich datetime fields (utc_offset, dst, abbreviation, unixtime) so you can build clocks, schedulers, and cross-timezone tests against a stable mocked endpoint.
Endpoints
12 across 0 resource groups
Methods
GET 12 none deprecated
OpenAPI
3.0.1 spec version 20210108
Source spec
9 KB · YAML
[02]
Endpoints
| GET |
/ip
|
request the current time based on the ip of the request. note: this is a "best guess" obtained from open-source data.
|
| GET |
/ip.txt
|
request the current time based on the ip of the request. note: this is a "best guess" obtained from open-source data.
|
| GET |
/ip/{ipv4}
|
request the current time based on the ip of the request. note: this is a "best guess" obtained from open-source data.
|
| GET |
/ip/{ipv4}.txt
|
request the current time based on the ip of the request. note: this is a "best guess" obtained from open-source data.
|
| GET |
/timezone
|
a listing of all timezones.
|
| GET |
/timezone.txt
|
a listing of all timezones.
|
| GET |
/timezone/{area}
|
a listing of all timezones available for that area.
|
| GET |
/timezone/{area}.txt
|
a listing of all timezones available for that area.
|
| GET |
/timezone/{area}/{location}
|
request the current time for a timezone.
|
| GET |
/timezone/{area}/{location}.txt
|
request the current time for a timezone.
|
| GET |
/timezone/{area}/{location}/{region}
|
request the current time for a timezone.
|
| GET |
/timezone/{area}/{location}/{region}.txt
|
request the current time for a timezone.
|