@apifreaks/openapi-specs 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/index.cjs +133 -2
  2. package/dist/index.d.cts +140 -3
  3. package/dist/index.d.ts +140 -3
  4. package/dist/index.js +131 -2
  5. package/dist/specs/commodity/commodity-fluctuation.yaml +225 -0
  6. package/dist/specs/commodity/commodity-prices.yaml +236 -0
  7. package/dist/specs/commodity/commodity-symbols.yaml +159 -0
  8. package/dist/specs/commodity/commodity-time-series.yaml +238 -0
  9. package/dist/specs/commodity/historical-commodity-prices.yaml +208 -0
  10. package/dist/specs/currency/currency-converter.yaml +193 -0
  11. package/dist/specs/currency/currency-fluctuation.yaml +211 -0
  12. package/dist/specs/currency/currency-historical-data-limit.yaml +112 -0
  13. package/dist/specs/currency/currency-rate.yaml +173 -0
  14. package/dist/specs/currency/currency-supported.yaml +176 -0
  15. package/dist/specs/currency/currency-symbols.yaml +115 -0
  16. package/dist/specs/currency/currency-time-series.yaml +232 -0
  17. package/dist/specs/currency/geolocalized-currency-conversion.yaml +214 -0
  18. package/dist/specs/currency/historical-currency-converter.yaml +195 -0
  19. package/dist/specs/currency/historical-currency-rate.yaml +180 -0
  20. package/dist/specs/dns/bulk-dns-lookup.yaml +484 -0
  21. package/dist/specs/dns/dns-history-lookup.yaml +451 -0
  22. package/dist/specs/dns/dns-lookup.yaml +360 -0
  23. package/dist/specs/dns/reverse-dns-lookup.yaml +338 -0
  24. package/dist/specs/domain/bulk-domain-checker.yaml +198 -0
  25. package/dist/specs/domain/domain-search-with-suggestions.yaml +196 -0
  26. package/dist/specs/domain/domain-search.yaml +149 -0
  27. package/dist/specs/domain/subdomain-lookup.yaml +251 -0
  28. package/dist/specs/email-validation/bulk-email-validation.yaml +403 -0
  29. package/dist/specs/email-validation/email-checker.yaml +451 -0
  30. package/dist/specs/financial/bulk-vat-rates-country.yaml +250 -0
  31. package/dist/specs/financial/financial-apis-supported-countries.yaml +152 -0
  32. package/dist/specs/financial/iban-validation.yaml +270 -0
  33. package/dist/specs/financial/swift-code-finder.yaml +146 -0
  34. package/dist/specs/financial/swift-code-lookup.yaml +156 -0
  35. package/dist/specs/financial/vat-number-validation.yaml +205 -0
  36. package/dist/specs/financial/vat-rates-by-ip.yaml +200 -0
  37. package/dist/specs/financial/vat-rates-country.yaml +212 -0
  38. package/dist/specs/general/usage-credits.yaml +188 -0
  39. package/dist/specs/geocoding/forward-geocoding.yaml +292 -0
  40. package/dist/specs/geocoding/reverse-geocoding.yaml +237 -0
  41. package/dist/specs/geodb/administrative-units-details.yaml +180 -0
  42. package/dist/specs/geodb/administrative-units-levels.yaml +140 -0
  43. package/dist/specs/geodb/administrative-units.yaml +168 -0
  44. package/dist/specs/geodb/cities.yaml +209 -0
  45. package/dist/specs/geodb/countries-details.yaml +207 -0
  46. package/dist/specs/geodb/countries.yaml +199 -0
  47. package/dist/specs/geodb/flags-supported.yaml +119 -0
  48. package/dist/specs/geodb/flags.yaml +170 -0
  49. package/dist/specs/geodb/regions.yaml +76 -0
  50. package/dist/specs/geodb/subregions.yaml +158 -0
  51. package/dist/specs/ip-intelligence/bulk-ip-lookup.yaml +895 -0
  52. package/dist/specs/ip-intelligence/bulk-ip-threat-intelligence.yaml +310 -0
  53. package/dist/specs/ip-intelligence/ip-locator.yaml +708 -0
  54. package/dist/specs/ip-intelligence/ip-threat-intelligence.yaml +230 -0
  55. package/dist/specs/other/astronomy-data.yaml +632 -0
  56. package/dist/specs/pdf/delete-pdf-page.yaml +193 -0
  57. package/dist/specs/pdf/linearize-pdf.yaml +187 -0
  58. package/dist/specs/pdf/merge-pdf.yaml +193 -0
  59. package/dist/specs/pdf/pdf-compress.yaml +208 -0
  60. package/dist/specs/pdf/pdf-decrypt.yaml +202 -0
  61. package/dist/specs/pdf/pdf-encrypt.yaml +213 -0
  62. package/dist/specs/pdf/pdf-extract-pages.yaml +199 -0
  63. package/dist/specs/pdf/pdf-file-status.yaml +148 -0
  64. package/dist/specs/pdf/pdf-file.yaml +136 -0
  65. package/dist/specs/pdf/pdf-files.yaml +85 -0
  66. package/dist/specs/pdf/pdf-resource-download.yaml +117 -0
  67. package/dist/specs/pdf/pdf-resource-upload-binary.yaml +152 -0
  68. package/dist/specs/pdf/pdf-resource-upload.yaml +163 -0
  69. package/dist/specs/pdf/pdf-restrict.yaml +246 -0
  70. package/dist/specs/pdf/pdf-split-pages.yaml +208 -0
  71. package/dist/specs/pdf/pdf-task-status.yaml +187 -0
  72. package/dist/specs/pdf/pdf-to-image.yaml +844 -0
  73. package/dist/specs/pdf/pdf-unrestrict.yaml +221 -0
  74. package/dist/specs/pdf/rotate-pdf-pages.yaml +207 -0
  75. package/dist/specs/phone-validation/bulk-phone-number-validation.yaml +374 -0
  76. package/dist/specs/phone-validation/phone-number-validation.yaml +344 -0
  77. package/dist/specs/scraper/web-scraper.yaml +479 -0
  78. package/dist/specs/screenshot/bulk-screenshot.yaml +728 -0
  79. package/dist/specs/screenshot/website-screenshot.yaml +822 -0
  80. package/dist/specs/ssl/ssl-certificate-chain-lookup.yaml +593 -0
  81. package/dist/specs/ssl/ssl-certificate-lookup.yaml +478 -0
  82. package/dist/specs/timezone/timezone-converter.yaml +249 -0
  83. package/dist/specs/timezone/timezone-lookup.yaml +712 -0
  84. package/dist/specs/user-agent/bulk-user-agent-parser.yaml +340 -0
  85. package/dist/specs/user-agent/user-agent-parser.yaml +271 -0
  86. package/dist/specs/weather/air-quality.yaml +590 -0
  87. package/dist/specs/weather/bulk-live-weather.yaml +654 -0
  88. package/dist/specs/weather/flood-forecast.yaml +519 -0
  89. package/dist/specs/weather/historical-weather.yaml +842 -0
  90. package/dist/specs/weather/live-weather.yaml +633 -0
  91. package/dist/specs/weather/marine-weather.yaml +806 -0
  92. package/dist/specs/weather/time-series-weather.yaml +821 -0
  93. package/dist/specs/weather/weather-forecast.yaml +935 -0
  94. package/dist/specs/whois/asn-lookup.yaml +618 -0
  95. package/dist/specs/whois/bulk-whois-lookup.yaml +827 -0
  96. package/dist/specs/whois/domain-whois-history-lookup.yaml +445 -0
  97. package/dist/specs/whois/reverse-whois.yaml +566 -0
  98. package/dist/specs/whois/whois-domain-lookup.yaml +537 -0
  99. package/dist/specs/whois/whois-ip-lookup.yaml +1123 -0
  100. package/dist/specs/zip-code/bulk-zip-code-lookup.yaml +232 -0
  101. package/dist/specs/zip-code/zip-code-api.yaml +216 -0
  102. package/dist/specs/zip-code/zip-code-distance-match.yaml +239 -0
  103. package/dist/specs/zip-code/zip-code-distance.yaml +233 -0
  104. package/dist/specs/zip-code/zip-codes-by-city.yaml +201 -0
  105. package/dist/specs/zip-code/zip-codes-by-region.yaml +200 -0
  106. package/dist/specs/zip-code/zip-codes-radius-search.yaml +262 -0
  107. package/package.json +6 -2
  108. package/specs/pdf/merge-pdf.json +2 -2
@@ -0,0 +1,712 @@
1
+ openapi: 3.1.1
2
+ info:
3
+ title: Timezone Lookup API - Get Timezone from IP, Coordinates, IATA Code & More
4
+ version: 2.0.0
5
+ description: Resolve any location identifier to its current timezone, local time, UTC offset, and daylight saving time details. Accepts IP addresses, GPS coordinates, city or address strings, IATA/ICAO airport codes, UN/LOCODEs, and IANA timezone names. Always returns a time_zone object (IANA name, UTC offset with/without DST, current local time in multiple formats, DST transition dates); which other object accompanies it depends entirely on the identifier used. A tz name or lat/long coordinate pair returns time_zone only, with no location breakdown at all. A location address returns a basic location object (country, region, city, coordinates). An ip parameter, or no parameter at all (client-IP fallback), returns a richer location object with continent and country codes, EU membership, and postal code, plus a top-level ip field. An iata_code or icao_code returns an airport_details object instead of location. A lo_code returns a lo_code_details object instead of location.
6
+ contact:
7
+ name: APIFreaks Support
8
+ url: https://apifreaks.com/contact
9
+ email: support@apifreaks.com
10
+ servers:
11
+ - url: https://api.apifreaks.com/v2.0
12
+ description: Timezone Lookup API Server
13
+ paths:
14
+ /geolocation/timezone:
15
+ get:
16
+ tags:
17
+ - Timezone APIs
18
+ summary: Retrieve current time, date, and timezone information for any location identifier
19
+ description: Get current time, date, and timezone details by specifying a timezone name, location address, GPS coordinates, IP address, IATA/ICAO airport code, UN/LOCODE, or use the client IP if no parameter is provided.
20
+ operationId: getTimezone
21
+ parameters:
22
+ - name: format
23
+ in: query
24
+ required: false
25
+ description: 'Format of the response. Possible values: json, xml.'
26
+ schema:
27
+ type: string
28
+ enum:
29
+ - json
30
+ - xml
31
+ default: json
32
+ - name: ip
33
+ in: query
34
+ required: false
35
+ description: IPv4 or IPv6 address to extract timezone information.
36
+ schema:
37
+ type: string
38
+ - name: tz
39
+ in: query
40
+ required: false
41
+ description: Timezone name in IANA format (e.g., Asia/Kolkata) to retrieve information directly.
42
+ schema:
43
+ type: string
44
+ - name: location
45
+ in: query
46
+ required: false
47
+ description: Location string (preferably city and country) to extract timezone.
48
+ schema:
49
+ type: string
50
+ - name: lat
51
+ in: query
52
+ required: false
53
+ description: Latitude for geolocation-based timezone lookup. Only time_zone is returned for this mode; no location object is included.
54
+ schema:
55
+ type: number
56
+ format: float
57
+ - name: long
58
+ in: query
59
+ required: false
60
+ description: Longitude for geolocation-based timezone lookup. Only time_zone is returned for this mode; no location object is included.
61
+ schema:
62
+ type: number
63
+ format: float
64
+ - name: lang
65
+ in: query
66
+ required: false
67
+ description: 'Response language for location fields. Default: en.'
68
+ schema:
69
+ type: string
70
+ enum:
71
+ - en
72
+ - de
73
+ - ru
74
+ - ja
75
+ - fr
76
+ - cn
77
+ - es
78
+ - cs
79
+ - it
80
+ - ko
81
+ - fa
82
+ - pt
83
+ default: en
84
+ - name: iata_code
85
+ in: query
86
+ required: false
87
+ description: 3-letter IATA airport code (e.g., LHR) to extract timezone.
88
+ schema:
89
+ type: string
90
+ - name: icao_code
91
+ in: query
92
+ required: false
93
+ description: 4-letter ICAO airport code (e.g., KJFK) to extract timezone.
94
+ schema:
95
+ type: string
96
+ - name: lo_code
97
+ in: query
98
+ required: false
99
+ description: 5-letter UN/LOCODE city code to extract timezone.
100
+ schema:
101
+ type: string
102
+ responses:
103
+ '200':
104
+ description: Successful timezone lookup response
105
+ content:
106
+ application/json:
107
+ schema:
108
+ $ref: '#/components/schemas/TimezoneResponse'
109
+ examples:
110
+ locationLookup:
111
+ summary: Lookup by location address (location param) — basic location fields, DST active
112
+ value:
113
+ location:
114
+ location_string: London, UK
115
+ country_name: United Kingdom
116
+ state_prov: England
117
+ city: London
118
+ locality: ''
119
+ latitude: '51.50002'
120
+ longitude: '-0.19244'
121
+ time_zone:
122
+ name: Europe/London
123
+ offset: 0
124
+ offset_with_dst: 1
125
+ current_time: 2026-07-24 11:27:58.516+0100
126
+ current_time_unix: 1784888878.516
127
+ date: '2026-07-24'
128
+ date_time: '2026-07-24 11:27:58'
129
+ date_time_txt: Friday, July 24, 2026 11:27:58
130
+ date_time_wti: Fri, 24 Jul 2026 11:27:58 +0100
131
+ date_time_ymd: 2026-07-24T11:27:58+0100
132
+ time_24: '11:27:58'
133
+ time_12: 11:27:58 AM
134
+ week: 30
135
+ month: 7
136
+ year: 2026
137
+ year_abbr: '26'
138
+ current_tz_abbreviation: BST
139
+ current_tz_full_name: British Summer Time
140
+ standard_tz_abbreviation: GMT
141
+ standard_tz_full_name: Greenwich Mean Time
142
+ is_dst: true
143
+ dst_savings: 1
144
+ dst_exists: true
145
+ dst_tz_abbreviation: BST
146
+ dst_tz_full_name: British Summer Time
147
+ dst_start:
148
+ utc_time: 2026-03-29 TIME 01:00
149
+ duration: +1.00H
150
+ gap: true
151
+ date_time_after: 2026-03-29 TIME 02:00
152
+ date_time_before: 2026-03-29 TIME 01:00
153
+ overlap: false
154
+ dst_end:
155
+ utc_time: 2026-10-25 TIME 01:00
156
+ duration: -1.00H
157
+ gap: false
158
+ date_time_after: 2026-10-25 TIME 01:00
159
+ date_time_before: 2026-10-25 TIME 02:00
160
+ overlap: true
161
+ tzNameLookup:
162
+ summary: Lookup by IANA timezone name (tz param) — no location object at all; DST not observed here, so dst_start/dst_end are empty objects
163
+ value:
164
+ time_zone:
165
+ name: Asia/Kolkata
166
+ offset: 5.5
167
+ offset_with_dst: 5.5
168
+ date: '2026-07-24'
169
+ date_time: '2026-07-24 15:57:57'
170
+ date_time_txt: Friday, July 24, 2026 15:57:57
171
+ date_time_wti: Fri, 24 Jul 2026 15:57:57 +0530
172
+ date_time_ymd: 2026-07-24T15:57:57+0530
173
+ current_time: 2026-07-24 15:57:57.984+0530
174
+ current_time_unix: 1784888877.984
175
+ time_24: '15:57:57'
176
+ time_12: 03:57:57 PM
177
+ week: 30
178
+ month: 7
179
+ year: 2026
180
+ year_abbr: '26'
181
+ current_tz_abbreviation: IST
182
+ current_tz_full_name: India Standard Time
183
+ standard_tz_abbreviation: IST
184
+ standard_tz_full_name: India Standard Time
185
+ is_dst: false
186
+ dst_savings: 0
187
+ dst_exists: false
188
+ dst_tz_abbreviation: ''
189
+ dst_tz_full_name: ''
190
+ dst_start: {}
191
+ dst_end: {}
192
+ ipLookup:
193
+ summary: Lookup by IP address (ip param, or default client IP) — full geo-IP location fields, includes top-level ip, never location_string
194
+ value:
195
+ ip: 8.8.8.8
196
+ location:
197
+ continent_code: NA
198
+ continent_name: North America
199
+ country_code2: US
200
+ country_code3: USA
201
+ country_name: United States
202
+ country_name_official: United States of America
203
+ is_eu: false
204
+ state_prov: California
205
+ state_code: US-CA
206
+ district: Santa Clara
207
+ city: Mountain View
208
+ zipcode: 94043-1351
209
+ latitude: '37.42240'
210
+ longitude: '-122.08421'
211
+ time_zone:
212
+ name: America/Los_Angeles
213
+ offset: -8
214
+ offset_with_dst: -7
215
+ date: '2026-07-24'
216
+ date_time: '2026-07-24 03:27:59'
217
+ date_time_txt: Friday, July 24, 2026 03:27:59
218
+ date_time_wti: Fri, 24 Jul 2026 03:27:59 -0700
219
+ date_time_ymd: 2026-07-24T03:27:59-0700
220
+ current_time: 2026-07-24 03:27:59.032-0700
221
+ current_time_unix: 1784888879.032
222
+ time_24: '03:27:59'
223
+ time_12: 03:27:59 AM
224
+ week: 30
225
+ month: 7
226
+ year: 2026
227
+ year_abbr: '26'
228
+ current_tz_abbreviation: PDT
229
+ current_tz_full_name: Pacific Daylight Time
230
+ standard_tz_abbreviation: PST
231
+ standard_tz_full_name: Pacific Standard Time
232
+ is_dst: true
233
+ dst_savings: 1
234
+ dst_exists: true
235
+ dst_tz_abbreviation: PDT
236
+ dst_tz_full_name: Pacific Daylight Time
237
+ dst_start:
238
+ utc_time: 2026-03-08 TIME 10:00
239
+ duration: +1.00H
240
+ gap: true
241
+ date_time_after: 2026-03-08 TIME 03:00
242
+ date_time_before: 2026-03-08 TIME 02:00
243
+ overlap: false
244
+ dst_end:
245
+ utc_time: 2026-11-01 TIME 09:00
246
+ duration: -1.00H
247
+ gap: false
248
+ date_time_after: 2026-11-01 TIME 01:00
249
+ date_time_before: 2026-11-01 TIME 02:00
250
+ overlap: true
251
+ airportLookup:
252
+ summary: Lookup by IATA/ICAO airport code — returns airport_details instead of location
253
+ value:
254
+ airport_details:
255
+ type: large_airport
256
+ name: John F Kennedy International Airport
257
+ latitude: '40.63945'
258
+ longitude: '-73.77932'
259
+ elevation_ft: 13
260
+ continent_code: NA
261
+ country_code: US
262
+ state_code: US-NY
263
+ city: New York
264
+ iata_code: JFK
265
+ icao_code: KJFK
266
+ faa_code: ''
267
+ time_zone:
268
+ name: America/New_York
269
+ offset: -5
270
+ offset_with_dst: -4
271
+ date: '2026-07-24'
272
+ date_time: '2026-07-24 06:28:14'
273
+ date_time_txt: Friday, July 24, 2026 06:28:14
274
+ date_time_wti: Fri, 24 Jul 2026 06:28:14 -0400
275
+ date_time_ymd: 2026-07-24T06:28:14-0400
276
+ current_time: 2026-07-24 06:28:14.975-0400
277
+ current_time_unix: 1784888894.975
278
+ time_24: '06:28:14'
279
+ time_12: 06:28:14 AM
280
+ week: 30
281
+ month: 7
282
+ year: 2026
283
+ year_abbr: '26'
284
+ current_tz_abbreviation: EDT
285
+ current_tz_full_name: Eastern Daylight Time
286
+ standard_tz_abbreviation: EST
287
+ standard_tz_full_name: Eastern Standard Time
288
+ is_dst: true
289
+ dst_savings: 1
290
+ dst_exists: true
291
+ dst_tz_abbreviation: EDT
292
+ dst_tz_full_name: Eastern Daylight Time
293
+ dst_start:
294
+ utc_time: 2026-03-08 TIME 07:00
295
+ duration: +1.00H
296
+ gap: true
297
+ date_time_after: 2026-03-08 TIME 03:00
298
+ date_time_before: 2026-03-08 TIME 02:00
299
+ overlap: false
300
+ dst_end:
301
+ utc_time: 2026-11-01 TIME 06:00
302
+ duration: -1.00H
303
+ gap: false
304
+ date_time_after: 2026-11-01 TIME 01:00
305
+ date_time_before: 2026-11-01 TIME 02:00
306
+ overlap: true
307
+ loCodeLookup:
308
+ summary: Lookup by UN/LOCODE — returns lo_code_details instead of location
309
+ value:
310
+ lo_code_details:
311
+ lo_code: USNYC
312
+ city: New York
313
+ state_code: NY
314
+ country_code: US
315
+ country_name: ''
316
+ location_type: Port, Rail Terminal, Road Terminal, Airport, Postal Exchange
317
+ latitude: '40.70000'
318
+ longitude: '-74.00000'
319
+ time_zone:
320
+ name: America/New_York
321
+ offset: -5
322
+ offset_with_dst: -4
323
+ date: '2026-07-24'
324
+ date_time: '2026-07-24 06:28:15'
325
+ date_time_txt: Friday, July 24, 2026 06:28:15
326
+ date_time_wti: Fri, 24 Jul 2026 06:28:15 -0400
327
+ date_time_ymd: 2026-07-24T06:28:15-0400
328
+ current_time: 2026-07-24 06:28:15.999-0400
329
+ current_time_unix: 1784888895.999
330
+ time_24: '06:28:15'
331
+ time_12: 06:28:15 AM
332
+ week: 30
333
+ month: 7
334
+ year: 2026
335
+ year_abbr: '26'
336
+ current_tz_abbreviation: EDT
337
+ current_tz_full_name: Eastern Daylight Time
338
+ standard_tz_abbreviation: EST
339
+ standard_tz_full_name: Eastern Standard Time
340
+ is_dst: true
341
+ dst_savings: 1
342
+ dst_exists: true
343
+ dst_tz_abbreviation: EDT
344
+ dst_tz_full_name: Eastern Daylight Time
345
+ dst_start:
346
+ utc_time: 2026-03-08 TIME 07:00
347
+ duration: +1.00H
348
+ gap: true
349
+ date_time_after: 2026-03-08 TIME 03:00
350
+ date_time_before: 2026-03-08 TIME 02:00
351
+ overlap: false
352
+ dst_end:
353
+ utc_time: 2026-11-01 TIME 06:00
354
+ duration: -1.00H
355
+ gap: false
356
+ date_time_after: 2026-11-01 TIME 01:00
357
+ date_time_before: 2026-11-01 TIME 02:00
358
+ overlap: true
359
+ '400':
360
+ description: Bad Request — Invalid coordinates, timezone name, IP address, or airport code
361
+ content:
362
+ application/json:
363
+ schema:
364
+ $ref: '#/components/schemas/ErrorResponse'
365
+ examples:
366
+ InvalidCoordinates:
367
+ summary: Invalid coordinates range
368
+ value:
369
+ message: '''latitude'' (999) or ''longitude'' (0) is not valid. ''latitude'' must be between -90.0 and +90.0 and ''longitude'' must be between -180.0 and +180.0.'
370
+ InvalidTimezone:
371
+ summary: Invalid timezone name
372
+ value:
373
+ message: Check whether your input values are correct; time_zone_name = Invalid/Timezone
374
+ InvalidIP:
375
+ summary: Invalid IP address
376
+ value:
377
+ message: '''999.999.999.999'' is not an IP string literal.'
378
+ InvalidIata:
379
+ summary: Invalid IATA code
380
+ value:
381
+ message: 'Invalid IATA code: INVALID. IATA code must be in the format of AAA.'
382
+ InvalidIcao:
383
+ summary: Invalid ICAO code
384
+ value:
385
+ message: 'Invalid ICAO code: INVALID. ICAO code must be in the format of AAAA.'
386
+ '404':
387
+ description: Not Found — Location address not found, or LO code has no matching data
388
+ content:
389
+ application/json:
390
+ schema:
391
+ $ref: '#/components/schemas/ErrorResponse'
392
+ examples:
393
+ LocationNotFound:
394
+ summary: Location not found
395
+ value:
396
+ message: We couldn't find the location (ZZZNOTEXIST). Try a city or state level location address only.
397
+ InvalidLoCode:
398
+ summary: UN/LOCODE not found
399
+ value:
400
+ message: '''Data not found for the provided LO code: XXXXX Please contact at support@ipgeolocation.io if provided LO code exists.'''
401
+ components:
402
+ securitySchemes:
403
+ ApiKeyAuthHeader:
404
+ type: apiKey
405
+ in: header
406
+ name: X-apiKey
407
+ description: Pass your API key via the X-apiKey request header.
408
+ ApiKeyAuthQuery:
409
+ type: apiKey
410
+ in: query
411
+ name: apiKey
412
+ description: Pass your API key via the apiKey query parameter.
413
+ schemas:
414
+ TimezoneResponse:
415
+ type: object
416
+ required:
417
+ - time_zone
418
+ properties:
419
+ ip:
420
+ type: string
421
+ description: The IP address used for the timezone lookup. Present when queried using the ip parameter, or with no location-identifying parameter at all (client-IP fallback). Absent for every other lookup mode.
422
+ time_zone:
423
+ $ref: '#/components/schemas/TimeZone'
424
+ location:
425
+ $ref: '#/components/schemas/TimezoneLocation'
426
+ airport_details:
427
+ $ref: '#/components/schemas/AirportDetail'
428
+ lo_code_details:
429
+ $ref: '#/components/schemas/LoCodeDetail'
430
+ description: 'Timezone lookup result. time_zone is always present. Exactly which other object accompanies it depends on the lookup mode: tz name and lat/long coordinates return time_zone only (no location, no ip); location address returns a basic location object; ip param or client-IP fallback returns a rich location object plus top-level ip; iata_code/icao_code returns airport_details instead of location; lo_code returns lo_code_details instead of location.'
431
+ TimeZone:
432
+ type: object
433
+ description: Timezone and date/time information for the location.
434
+ required:
435
+ - name
436
+ - offset
437
+ - offset_with_dst
438
+ - current_time
439
+ - current_time_unix
440
+ - date
441
+ - date_time
442
+ - date_time_txt
443
+ - date_time_wti
444
+ - date_time_ymd
445
+ - time_24
446
+ - time_12
447
+ - week
448
+ - month
449
+ - year
450
+ - year_abbr
451
+ - current_tz_abbreviation
452
+ - current_tz_full_name
453
+ - standard_tz_abbreviation
454
+ - standard_tz_full_name
455
+ - is_dst
456
+ - dst_savings
457
+ - dst_exists
458
+ properties:
459
+ name:
460
+ type: string
461
+ description: The IANA timezone name/identifier for the location.
462
+ offset:
463
+ type: number
464
+ format: float
465
+ description: The Standard time zone offset from UTC in hours.
466
+ offset_with_dst:
467
+ type: number
468
+ format: float
469
+ description: The time zone offset from UTC in hours, accounting for DST.
470
+ current_time:
471
+ type: string
472
+ description: The current date and time with timezone offset in YYYY-MM-DD HH:mm:ss.SSS±ZZZZ format.
473
+ current_time_unix:
474
+ type: number
475
+ format: float
476
+ description: The Unix timestamp representing the date and time in seconds.
477
+ date:
478
+ type: string
479
+ description: The current date in YYYY-MM-DD format.
480
+ date_time:
481
+ type: string
482
+ description: The current date and time in YYYY-MM-DD HH:mm:ss format.
483
+ date_time_txt:
484
+ type: string
485
+ description: The current date and time in descriptive format EEEE, MMMM dd, yyyy HH:mm:ss.
486
+ date_time_wti:
487
+ type: string
488
+ description: The date and time with time zone information in EEE, dd MMM yyyy HH:mm:ss Z format.
489
+ date_time_ymd:
490
+ type: string
491
+ description: The date and time with timezone offset in ISO 8601 format YYYY-MM-DDTHH:mm:ss±HHMM.
492
+ time_24:
493
+ type: string
494
+ description: The current time in 24-hour format HH:mm:ss.
495
+ time_12:
496
+ type: string
497
+ description: The current time in 12-hour format with AM/PM notation.
498
+ week:
499
+ type: integer
500
+ description: The week number of the year (1-52).
501
+ month:
502
+ type: integer
503
+ description: The current month as a number (1-12).
504
+ year:
505
+ type: integer
506
+ description: The four-digit current year.
507
+ year_abbr:
508
+ type: string
509
+ description: The two-digit abbreviation for the year.
510
+ current_tz_abbreviation:
511
+ type: string
512
+ description: Abbreviation of the time zone currently in effect (standard or DST).
513
+ current_tz_full_name:
514
+ type: string
515
+ description: Full name of the time zone currently in effect.
516
+ standard_tz_abbreviation:
517
+ type: string
518
+ description: Abbreviation of the standard (non-DST) time zone.
519
+ standard_tz_full_name:
520
+ type: string
521
+ description: Full name of the standard (non-DST) time zone.
522
+ is_dst:
523
+ type: boolean
524
+ description: Is the time zone in daylight savings?
525
+ dst_tz_abbreviation:
526
+ type: string
527
+ description: Abbreviation of the DST time zone. Always present as a key; holds an empty string when dst_exists is false.
528
+ dst_tz_full_name:
529
+ type: string
530
+ description: Full name of the DST time zone. Always present as a key; holds an empty string when dst_exists is false.
531
+ dst_savings:
532
+ type: number
533
+ format: float
534
+ description: The amount of time added for daylight saving in hours.
535
+ dst_exists:
536
+ type: boolean
537
+ description: Indicates whether DST is observed in the region.
538
+ dst_start:
539
+ $ref: '#/components/schemas/DstTransition'
540
+ dst_end:
541
+ $ref: '#/components/schemas/DstTransition'
542
+ DstTransition:
543
+ type: object
544
+ description: DST transition details (used for both the DST start and DST end transitions). Always present as a key on the parent TimeZone object; returned as an empty object {} when dst_exists is false, so none of its properties are required.
545
+ properties:
546
+ utc_time:
547
+ type: string
548
+ description: DST transition moment in UTC.
549
+ duration:
550
+ type: string
551
+ description: Clock change at the DST transition, in hours.
552
+ gap:
553
+ type: boolean
554
+ description: true if local time jumps forward (some times do not exist).
555
+ date_time_after:
556
+ type: string
557
+ description: Local date/time immediately after the DST transition.
558
+ date_time_before:
559
+ type: string
560
+ description: Local date/time immediately before the DST transition.
561
+ overlap:
562
+ type: boolean
563
+ description: true if local times repeat around the DST transition.
564
+ TimezoneLocation:
565
+ type: object
566
+ description: 'Geographic location information. Only present for location (address) and ip (or client-IP fallback) lookups; absent for tz, lat/long, iata_code/icao_code, and lo_code lookups. Field set varies by mode: location returns location_string plus a basic field set (country_name, state_prov, city, locality, latitude, longitude); ip/default returns a richer geo-IP field set (continent_code, continent_name, country_code2, country_code3, country_name_official, is_eu, state_code, district, zipcode) plus the common fields, but never location_string or locality.'
567
+ properties:
568
+ location_string:
569
+ type: string
570
+ description: The provided location parameter as location. Present only for location (address) lookups; absent for ip lookups.
571
+ continent_code:
572
+ type: string
573
+ description: 'The two-letter code of the continent (e.g., NA). Geo-IP field only: present for ip param or default client-IP lookups; absent for location lookups.'
574
+ continent_name:
575
+ type: string
576
+ description: 'The full name of the continent (e.g., North America). Geo-IP field only: present for ip param or default client-IP lookups; absent for location lookups.'
577
+ country_code2:
578
+ type: string
579
+ description: 'The ISO 3166-1 alpha-2 two-letter country code (e.g., US). Geo-IP field only: present for ip param or default client-IP lookups; absent for location lookups.'
580
+ country_code3:
581
+ type: string
582
+ description: 'The ISO 3166-1 alpha-3 three-letter country code (e.g., USA). Geo-IP field only: present for ip param or default client-IP lookups; absent for location lookups.'
583
+ country_name:
584
+ type: string
585
+ description: The common name of the country (e.g., United States). Present for both location and ip lookups.
586
+ country_name_official:
587
+ type: string
588
+ description: 'The official full name of the country (e.g., United States of America). Geo-IP field only: present for ip param or default client-IP lookups; absent for location lookups.'
589
+ is_eu:
590
+ type: boolean
591
+ description: 'Whether the country belongs to the European Union. Geo-IP field only: present for ip param or default client-IP lookups; absent for location lookups.'
592
+ state_prov:
593
+ type: string
594
+ description: Name of the state/province/region. Present for both location and ip lookups.
595
+ state_code:
596
+ type: string
597
+ description: 'Code of the state/province/region. Geo-IP field only: present for ip param or default client-IP lookups; absent for location lookups.'
598
+ district:
599
+ type: string
600
+ description: 'Name of the district or county. Geo-IP field only: present for ip param or default client-IP lookups; absent for location lookups.'
601
+ city:
602
+ type: string
603
+ description: Name of the city. Present for both location and ip lookups.
604
+ locality:
605
+ type: string
606
+ description: Smaller area, part or region of a city. Only present for location (address) lookups (may be an empty string); absent for ip lookups.
607
+ zipcode:
608
+ type: string
609
+ description: 'ZIP/Postal code of the place. Geo-IP field only: present for ip param or default client-IP lookups; absent for location lookups.'
610
+ latitude:
611
+ type: string
612
+ description: The geographic latitude of the location. Present for both location and ip lookups.
613
+ longitude:
614
+ type: string
615
+ description: The geographic longitude of the location. Present for both location and ip lookups.
616
+ AirportDetail:
617
+ type: object
618
+ description: Airport information, present when queried by IATA or ICAO code.
619
+ properties:
620
+ type:
621
+ type: string
622
+ description: Classification of the airport based on size and traffic.
623
+ name:
624
+ type: string
625
+ description: The full name of the airport.
626
+ latitude:
627
+ type: number
628
+ format: float
629
+ description: The latitude coordinate of the airport.
630
+ longitude:
631
+ type: number
632
+ format: float
633
+ description: The longitude coordinate of the airport.
634
+ elevation_ft:
635
+ type: integer
636
+ description: The elevation of the airport above sea level, measured in feet.
637
+ continent_code:
638
+ type: string
639
+ description: The two-letter code of the continent.
640
+ country_code:
641
+ type: string
642
+ description: The ISO 3166-1 alpha-2 code for the country where the airport is located.
643
+ state_code:
644
+ type: string
645
+ description: Code of the state/province/region where the airport is located.
646
+ city:
647
+ type: string
648
+ description: The city or administrative region that the airport serves.
649
+ iata_code:
650
+ type: string
651
+ description: The three-letter IATA airport code (e.g., LHR).
652
+ icao_code:
653
+ type: string
654
+ description: The four-letter ICAO airport code (e.g., EGLL).
655
+ faa_code:
656
+ type: string
657
+ description: The FAA location identifier, used primarily in the United States.
658
+ LoCodeDetail:
659
+ type: object
660
+ description: UN/LOCODE location details, present when queried by LO code.
661
+ properties:
662
+ lo_code:
663
+ type: string
664
+ description: A unique identifier for the location, often used in logistics and shipping (e.g., USNYC).
665
+ city:
666
+ type: string
667
+ description: The name of the city or location associated with the LO code.
668
+ state_code:
669
+ type: string
670
+ description: The code for the state, province or region.
671
+ country_code:
672
+ type: string
673
+ description: The ISO 3166-1 alpha-2 country code (e.g., US).
674
+ country_name:
675
+ type: string
676
+ description: The name of the country in an administrative context.
677
+ location_type:
678
+ type: string
679
+ description: The type of location as comma-separated list of facilities (e.g., Port, Rail Terminal, Road Terminal, Airport).
680
+ latitude:
681
+ type: number
682
+ format: float
683
+ description: The latitude coordinate of the location.
684
+ longitude:
685
+ type: number
686
+ format: float
687
+ description: The longitude coordinate of the location.
688
+ ErrorResponse:
689
+ type: object
690
+ description: Standard error envelope returned by the API on failed requests.
691
+ required:
692
+ - message
693
+ properties:
694
+ error:
695
+ type: string
696
+ description: Short error category or exception type.
697
+ message:
698
+ type: string
699
+ description: Human-readable error message describing the failure.
700
+ path:
701
+ type: string
702
+ description: API endpoint path that produced the error.
703
+ status:
704
+ type: integer
705
+ description: HTTP status code returned with the error.
706
+ timestamp:
707
+ type: string
708
+ format: date-time
709
+ description: Timestamp when the error occurred (ISO 8601).
710
+ security:
711
+ - ApiKeyAuthHeader: []
712
+ - ApiKeyAuthQuery: []