Skip to content

Country Time


Returns the current Time in a Country

GET/api/time/country-to-time
Terminal window
https://api.cookie-api.com/api/time/country-to-time


URL Parameters
countryCountry name or Country code

curl --location 'https://api.cookie-api.com/api/time/country-to-time?country=germany' \
--header 'Authorization: API_Key'

Responses
{
"country_code": "DE",
"country_name": "Germany",
"timezones": {
"Europe/Berlin": "2024-07-14 20:36:42 CEST+0200",
"Europe/Busingen": "2024-07-14 20:36:42 CEST+0200",
"GMT": "2024-07-14 18:36:42 GMT+0000",
"UTC": "2024-07-14 18:36:42 UTC+0000"
}
}