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