World Times API

Description

Access the local times, sunrise and sundown times of any city worldwide.

Pricing per Call: 0.001$
For learn the packages and usage details of the services, go to the pricing page.

End Points

get/timezone

Service that allows you to learn the local times of all cities around the world.

Parameters
FieldDescriptionTypeHeaderRequired
data.cityEnter name of city.text
Example
Request
{
  "uri": "https://api.collectapi.com/time/timeZone?data.city=paris",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": {
    "saat": "15:55",
    "name": "Paris"
  }
}
get/sunSetRise

A service that allows you to learn the sunrise and sunset times of all cities around the world.

Parameters
FieldDescriptionTypeHeaderRequired
data.cityEnter name of city.text
Example
Request
{
  "uri": "https://api.collectapi.com/time/sunSetRise?data.city=paris",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": {
    "rise": "7:13",
    "set": "20:24"
  }
}