Examples.

A handful of common requests in four languages. Full reference is on RapidAPI Hub.

# 01 · Get time by timezone

Get current timezone information for a specific timezone.

GEThttps://gateway.timeapi.world/timezone/America/New_York

response

{
  "abbreviation": "EDT",
  "datetime":     "2025-08-03T08:31:40.837-04:00",
  "day_of_week":  0,
  "day_of_year":  215,
  "dst":          true,
  "dst_offset":   3600,
  "raw_offset":   -18000,
  "timezone":     "America/New_York",
  "unixtime":     1754224300,
  "utc_datetime": "2025-08-03T12:31:40.837+00:00",
  "utc_offset":   "-04:00",
  "week_number":  31
}

request

curl 'https://gateway.timeapi.world/timezone/America/New_York'

# 02 · Get time by IP address

Get current timezone information for a specific IP address.

GEThttps://gateway.timeapi.world/ip/8.8.8.8

response

{
  "abbreviation": "CDT",
  "datetime":     "2025-08-03T07:32:19.842-05:00",
  "dst":          true,
  "raw_offset":   -21600,
  "timezone":     "America/Chicago",
  "utc_datetime": "2025-08-03T12:32:19.842+00:00",
  "utc_offset":   "-05:00",
  "client_ip":    "8.8.8.8"
}

request

curl 'https://gateway.timeapi.world/ip/8.8.8.8'

# 03 · Get your current time

Get current timezone information for the IP making the request.

GEThttps://gateway.timeapi.world/ip

response

{
  "abbreviation": "CDT",
  "datetime":     "2025-08-03T07:32:19.842-05:00",
  "dst":          true,
  "timezone":     "America/Chicago",
  "utc_datetime": "2025-08-03T12:32:19.842+00:00",
  "utc_offset":   "-05:00"
}

request

curl 'https://gateway.timeapi.world/ip'

# 04 · Get geolocation by IP address

Get geolocation information for a specific IP address.

GEThttps://gateway.timeapi.world/geo/8.8.8.8

response

{
  "ip":             "8.8.8.8",
  "latitude":       37.386,
  "longitude":      -122.084,
  "accuracy_radius": 1000,
  "timezone":       "America/Los_Angeles",
  "city":           "Mountain View",
  "postal_code":    "94043",
  "country":        { "iso_code": "US", "name": "United States" },
  "continent":      { "code": "NA", "name": "North America" }
}

request

curl 'https://gateway.timeapi.world/geo/8.8.8.8'

# 05 · Get your geolocation

Get geolocation information for the IP making the request.

GEThttps://gateway.timeapi.world/geo

response

{
  "ip":          "8.8.8.8",
  "latitude":    37.386,
  "longitude":   -122.084,
  "timezone":    "America/Los_Angeles",
  "city":        "Mountain View",
  "country":     { "iso_code": "US", "name": "United States" }
}

request

curl 'https://gateway.timeapi.world/geo'

# 06 · List all timezones

Get a list of all available timezones (537 entries).

GEThttps://gateway.timeapi.world/timezone

response

[
  "Africa/Abidjan",
  "Africa/Accra",
  "Africa/Algiers",
  ...
  "Pacific/Wallis",
  "UTC"
]

request

curl 'https://gateway.timeapi.world/timezone'
full docs on RapidAPI →