IPGeolocation icon

IPGeolocation

Integrate ipgeolocation.io with n8n to automate IP lookup, geolocation, timezone data, and security checks for powerful workflow enrichment.

Get Timezone Info

AI-generated

Summary

Retrieve current timezone information including date, time, UTC offset, and daylight saving details by querying with various identifiers such as address, coordinates, IATA/ICAO codes, IP address, timezone name, or UN/LOCODE.

Inputs

  • timezoneQueryBy (required) — Select the method to query the timezone information: address, coordinates, IATA code, ICAO code, IP address, time zone name, or UN/LOCODE.
  • timezoneName (required) — Specify an IANA time zone name when querying by timezone name, e.g., America/Los_Angeles.
  • address (required) — Provide a location address preferably city, state, and country when querying by address, e.g., New York, NY, USA.
  • latitudeTimezone (required) — Latitude in decimal degrees for the target location when querying by coordinates, e.g., 40.7128.
  • longitudeTimezone (required) — Longitude in decimal degrees for the target location when querying by coordinates, e.g., -74.0060.
  • ipTimezone (required) — Specify an IP address when querying timezone information by IP, e.g., 8.8.8.8.
  • iataTimezone (required) — Provide an IATA airport code when querying by IATA code, e.g., JFK.
  • icaoTimezone (required) — Provide an ICAO airport code when querying by ICAO code, e.g., KJFK.
  • unlocodeTimezone (required) — Provide a UN/LOCODE for a location when querying by UN/LOCODE, e.g., USNYC.

Output shape

a single JSON object containing the current timezone details for the queried location or identifier

The output includes details such as current date and time, UTC offset, and daylight saving time info. The query parameter to use depends on the selected 'Query Timezone By' method. Only the relevant input fields must be provided according to that selection.

Examples

Example 1: Query timezone by IP address

Set 'Query Timezone By' to 'IP Address' and provide an IP in 'IP Address' field.

Example 2: Query timezone by coordinates

Set 'Query Timezone By' to 'Coordinates' and provide 'Latitude' and 'Longitude'.

Links

Discussion