GET https://api.i-as.dev/api/worldclock
To get the current time in a specific city, you can pass the city name as a query parameter.
https://api.i-as.dev/api/worldclock?city=New York
The API will return a JSON object containing an array of world clock data, with each object representing a city and its corresponding time.
{
"worldclock": [
{
"city": "New York",
"time": "2025-01-26T12:00:00"
},
{
"city": "London",
"time": "2025-01-26T17:00:00"
}
// More data
]
}
{
"worldclock": [
{
"city": "New York",
"time": "2025-01-26T12:00:00"
},
{
"city": "London",
"time": "2025-01-26T17:00:00"
}
]
}
This API provides a quick way to retrieve the current time in different cities worldwide. You can use the optional city
parameter to filter for a specific city's time.