@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.
Files changed (109) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +156 -0
  3. package/dist/index.cjs +44663 -0
  4. package/dist/index.d.cts +30 -0
  5. package/dist/index.d.ts +30 -0
  6. package/dist/index.js +44631 -0
  7. package/package.json +81 -0
  8. package/specs/commodity/commodity-fluctuation.json +301 -0
  9. package/specs/commodity/commodity-prices.json +317 -0
  10. package/specs/commodity/commodity-symbols.json +215 -0
  11. package/specs/commodity/commodity-time-series.json +329 -0
  12. package/specs/commodity/historical-commodity-prices.json +273 -0
  13. package/specs/currency/currency-converter.json +261 -0
  14. package/specs/currency/currency-fluctuation.json +282 -0
  15. package/specs/currency/currency-historical-data-limit.json +158 -0
  16. package/specs/currency/currency-rate.json +229 -0
  17. package/specs/currency/currency-supported.json +234 -0
  18. package/specs/currency/currency-symbols.json +161 -0
  19. package/specs/currency/currency-time-series.json +325 -0
  20. package/specs/currency/geolocalized-currency-conversion.json +287 -0
  21. package/specs/currency/historical-currency-converter.json +269 -0
  22. package/specs/currency/historical-currency-rate.json +246 -0
  23. package/specs/dns/bulk-dns-lookup.json +624 -0
  24. package/specs/dns/dns-history-lookup.json +579 -0
  25. package/specs/dns/dns-lookup.json +466 -0
  26. package/specs/dns/reverse-dns-lookup.json +414 -0
  27. package/specs/domain/bulk-domain-checker.json +284 -0
  28. package/specs/domain/domain-search-with-suggestions.json +280 -0
  29. package/specs/domain/domain-search.json +206 -0
  30. package/specs/domain/subdomain-lookup.json +343 -0
  31. package/specs/email-validation/bulk-email-validation.json +534 -0
  32. package/specs/email-validation/email-checker.json +586 -0
  33. package/specs/financial/bulk-vat-rates-country.json +341 -0
  34. package/specs/financial/financial-apis-supported-countries.json +204 -0
  35. package/specs/financial/iban-validation.json +328 -0
  36. package/specs/financial/swift-code-finder.json +192 -0
  37. package/specs/financial/swift-code-lookup.json +220 -0
  38. package/specs/financial/vat-number-validation.json +283 -0
  39. package/specs/financial/vat-rates-by-ip.json +275 -0
  40. package/specs/financial/vat-rates-country.json +288 -0
  41. package/specs/general/usage-credits.json +218 -0
  42. package/specs/geocoding/forward-geocoding.json +402 -0
  43. package/specs/geocoding/reverse-geocoding.json +326 -0
  44. package/specs/geodb/administrative-units-details.json +250 -0
  45. package/specs/geodb/administrative-units-levels.json +198 -0
  46. package/specs/geodb/administrative-units.json +237 -0
  47. package/specs/geodb/cities.json +288 -0
  48. package/specs/geodb/countries-details.json +274 -0
  49. package/specs/geodb/countries.json +276 -0
  50. package/specs/geodb/flags-supported.json +166 -0
  51. package/specs/geodb/flags.json +227 -0
  52. package/specs/geodb/regions.json +109 -0
  53. package/specs/geodb/subregions.json +217 -0
  54. package/specs/ip-intelligence/bulk-ip-lookup.json +1162 -0
  55. package/specs/ip-intelligence/bulk-ip-threat-intelligence.json +417 -0
  56. package/specs/ip-intelligence/ip-locator.json +941 -0
  57. package/specs/ip-intelligence/ip-threat-intelligence.json +316 -0
  58. package/specs/other/astronomy-data.json +803 -0
  59. package/specs/pdf/delete-pdf-page.json +286 -0
  60. package/specs/pdf/linearize-pdf.json +277 -0
  61. package/specs/pdf/merge-pdf.json +285 -0
  62. package/specs/pdf/pdf-compress.json +304 -0
  63. package/specs/pdf/pdf-decrypt.json +297 -0
  64. package/specs/pdf/pdf-encrypt.json +314 -0
  65. package/specs/pdf/pdf-extract-pages.json +295 -0
  66. package/specs/pdf/pdf-file-status.json +208 -0
  67. package/specs/pdf/pdf-file.json +190 -0
  68. package/specs/pdf/pdf-files.json +126 -0
  69. package/specs/pdf/pdf-resource-download.json +168 -0
  70. package/specs/pdf/pdf-resource-upload-binary.json +218 -0
  71. package/specs/pdf/pdf-resource-upload.json +248 -0
  72. package/specs/pdf/pdf-restrict.json +343 -0
  73. package/specs/pdf/pdf-split-pages.json +281 -0
  74. package/specs/pdf/pdf-task-status.json +252 -0
  75. package/specs/pdf/pdf-to-image.json +1219 -0
  76. package/specs/pdf/pdf-unrestrict.json +324 -0
  77. package/specs/pdf/rotate-pdf-pages.json +305 -0
  78. package/specs/phone-validation/bulk-phone-number-validation.json +518 -0
  79. package/specs/phone-validation/phone-number-validation.json +456 -0
  80. package/specs/scraper/web-scraper.json +674 -0
  81. package/specs/screenshot/bulk-screenshot.json +949 -0
  82. package/specs/screenshot/website-screenshot.json +1147 -0
  83. package/specs/ssl/ssl-certificate-chain-lookup.json +756 -0
  84. package/specs/ssl/ssl-certificate-lookup.json +634 -0
  85. package/specs/timezone/timezone-converter.json +362 -0
  86. package/specs/timezone/timezone-lookup.json +910 -0
  87. package/specs/user-agent/bulk-user-agent-parser.json +441 -0
  88. package/specs/user-agent/user-agent-parser.json +346 -0
  89. package/specs/weather/air-quality.json +779 -0
  90. package/specs/weather/bulk-live-weather.json +834 -0
  91. package/specs/weather/flood-forecast.json +693 -0
  92. package/specs/weather/historical-weather.json +1019 -0
  93. package/specs/weather/live-weather.json +789 -0
  94. package/specs/weather/marine-weather.json +940 -0
  95. package/specs/weather/time-series-weather.json +1056 -0
  96. package/specs/weather/weather-forecast.json +1202 -0
  97. package/specs/whois/asn-lookup.json +729 -0
  98. package/specs/whois/bulk-whois-lookup.json +698 -0
  99. package/specs/whois/domain-whois-history-lookup.json +500 -0
  100. package/specs/whois/reverse-whois.json +625 -0
  101. package/specs/whois/whois-domain-lookup.json +533 -0
  102. package/specs/whois/whois-ip-lookup.json +1110 -0
  103. package/specs/zip-code/bulk-zip-code-lookup.json +318 -0
  104. package/specs/zip-code/zip-code-api.json +299 -0
  105. package/specs/zip-code/zip-code-distance-match.json +311 -0
  106. package/specs/zip-code/zip-code-distance.json +307 -0
  107. package/specs/zip-code/zip-codes-by-city.json +279 -0
  108. package/specs/zip-code/zip-codes-by-region.json +278 -0
  109. package/specs/zip-code/zip-codes-radius-search.json +349 -0
@@ -0,0 +1,789 @@
1
+ {
2
+ "openapi": "3.1.1",
3
+ "info": {
4
+ "title": "Live Weather API",
5
+ "version": "1.0.0",
6
+ "description": "Retrieve real-time weather conditions for any location worldwide. Supports lookup by city name or address, GPS coordinates, or IP address. Returns current temperature at 2m, apparent temperature, precipitation (rain, showers, snowfall), cloud cover, pressure at MSL and surface, wind speed and gusts at 10m, WMO weather code, air quality (European and US AQI indices plus pollutant concentrations), and astronomical data (sunrise/sunset, moon phase, day length). Pass a timezone to override the resolved location timezone. When no parameter is supplied the API auto-detects the requesting IP address. latitude, longitude, and elevation in the location object are always strings, never numbers. An extreme out-of-range coordinate (e.g. lat=999) returns a different, less specific error message than a moderately out-of-range one (e.g. lat=91).",
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/v1.0/weather",
16
+ "description": "Live Weather API Server"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/current": {
21
+ "get": {
22
+ "tags": ["Weather APIs"],
23
+ "summary": "Real-time weather conditions for any location on demand",
24
+ "description": "Get current weather data including temperature, humidity, precipitation, wind conditions, atmospheric pressure, and air quality for any location. Accepts city names, coordinates, or IP addresses. Also includes astronomy data and timezone-aware timestamps.",
25
+ "operationId": "getLiveWeather",
26
+ "parameters": [
27
+ {
28
+ "name": "location",
29
+ "in": "query",
30
+ "schema": {
31
+ "type": "string"
32
+ },
33
+ "description": "City name, place name, or full address.",
34
+ "required": false
35
+ },
36
+ {
37
+ "name": "lat",
38
+ "in": "query",
39
+ "schema": {
40
+ "type": "number"
41
+ },
42
+ "description": "Latitude of the location.",
43
+ "required": false
44
+ },
45
+ {
46
+ "name": "long",
47
+ "in": "query",
48
+ "schema": {
49
+ "type": "number"
50
+ },
51
+ "description": "Longitude of the location.",
52
+ "required": false
53
+ },
54
+ {
55
+ "name": "ip",
56
+ "in": "query",
57
+ "schema": {
58
+ "type": "string"
59
+ },
60
+ "description": "IP(v4 or v6) address for location inference.",
61
+ "required": false
62
+ },
63
+ {
64
+ "name": "timezone",
65
+ "in": "query",
66
+ "schema": {
67
+ "type": "string"
68
+ },
69
+ "description": "Timezone for the results.",
70
+ "required": false
71
+ }
72
+ ],
73
+ "responses": {
74
+ "200": {
75
+ "description": "Successful response",
76
+ "content": {
77
+ "application/json": {
78
+ "schema": {
79
+ "$ref": "#/components/schemas/CurrentWeatherResponse"
80
+ },
81
+ "examples": {
82
+ "typicalSuccess": {
83
+ "summary": "Typical successful response",
84
+ "value": {
85
+ "location": {
86
+ "continent_code": "AS",
87
+ "continent_name": "Asia",
88
+ "country_code2": "PK",
89
+ "country_code3": "PAK",
90
+ "country_name": "Pakistan",
91
+ "country_name_official": "Islamic Republic of Pakistan",
92
+ "is_eu": false,
93
+ "state_prov": "Punjab",
94
+ "state_code": "PK-PB",
95
+ "district": "Lahore",
96
+ "city": "Lahore",
97
+ "zipcode": "54000",
98
+ "latitude": "31.52037",
99
+ "longitude": "74.35875",
100
+ "locality": "Gulberg",
101
+ "elevation": "",
102
+ "timezone": "Asia/Karachi",
103
+ "timezone_abbreviation": "GMT+5"
104
+ },
105
+ "current": {
106
+ "timestamp": "2025-09-29T17:45",
107
+ "temperature_2m": 32.5,
108
+ "relative_humidity_2m": 61,
109
+ "apparent_temperature": 37.9,
110
+ "snowfall": 0,
111
+ "rain": 0,
112
+ "showers": 0,
113
+ "precipitation": 0,
114
+ "weather_code": 2,
115
+ "cloud_cover": 49,
116
+ "pressure_msl": 1001.9,
117
+ "surface_pressure": 977.6,
118
+ "wind_speed_10m": 4,
119
+ "wind_direction_10m": 280,
120
+ "wind_gusts_10m": 8.6,
121
+ "air_quality": {
122
+ "timestamp": "2025-09-29T17:45",
123
+ "european_aqi": 84,
124
+ "us_aqi": 148,
125
+ "pm10": 66.2,
126
+ "pm2_5": 52.7,
127
+ "carbon_monoxide": 977,
128
+ "nitrogen_dioxide": 44.5,
129
+ "sulphur_dioxide": 20.4,
130
+ "ozone": 159,
131
+ "dust": 27,
132
+ "uv_index": 0,
133
+ "aerosol_optical_depth": 0.48,
134
+ "uv_index_clear_sky": 0
135
+ },
136
+ "astronomy": {
137
+ "date": "2025-09-29",
138
+ "mid_night": "23:52",
139
+ "night_end": "04:34",
140
+ "sunrise": "05:53",
141
+ "sunset": "17:51",
142
+ "night_begin": "19:10",
143
+ "sun_status": "-",
144
+ "solar_noon": "11:52",
145
+ "day_length": "11:58",
146
+ "moon_phase": "FIRST_QUARTER",
147
+ "moonrise": "12:41",
148
+ "moonset": "22:28",
149
+ "moon_status": "-"
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ },
158
+ "400": {
159
+ "description": "Bad Request — Missing/incomplete lat+long pair, coordinates out of range, invalid timezone, or invalid IP address",
160
+ "content": {
161
+ "application/json": {
162
+ "schema": {
163
+ "$ref": "#/components/schemas/ErrorResponse"
164
+ },
165
+ "examples": {
166
+ "InvalidCoordinates": {
167
+ "summary": "Latitude or longitude out of range (e.g. lat=91)",
168
+ "value": {
169
+ "timestamp": "2026-07-24T11:09:43.616Z",
170
+ "status": 400,
171
+ "message": "Invalid latitude or longitude values. Latitude must be between -90 and 90, and longitude must be between -180 and 180",
172
+ "error": "invalid-params",
173
+ "path": "/v1.0/weather/current"
174
+ }
175
+ },
176
+ "ExtremeCoordinateValue": {
177
+ "summary": "Extreme out-of-range value (e.g. lat=999) hits a different, misleading message than a moderate out-of-range value like lat=91",
178
+ "value": {
179
+ "timestamp": "2026-07-24T11:09:30.501Z",
180
+ "status": 400,
181
+ "message": "Please provide both lat and long parameters.",
182
+ "error": "invalid-params",
183
+ "path": "/v1.0/weather/current"
184
+ }
185
+ },
186
+ "InvalidTimezone": {
187
+ "summary": "Invalid timezone",
188
+ "value": {
189
+ "timestamp": "2026-07-24T11:09:31.045Z",
190
+ "status": 400,
191
+ "message": "Check whether your input value is correct; timezone = NotATimezone",
192
+ "error": "error",
193
+ "path": "/v1.0/weather/current"
194
+ }
195
+ },
196
+ "InvalidIPAddress": {
197
+ "summary": "Invalid IP address",
198
+ "value": {
199
+ "timestamp": "2026-07-24T11:09:31.579Z",
200
+ "status": 400,
201
+ "message": "Invalid IP address",
202
+ "error": "invalid-params",
203
+ "path": "/v1.0/weather/current"
204
+ }
205
+ }
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "404": {
211
+ "description": "Not Found — Location address could not be resolved",
212
+ "content": {
213
+ "application/json": {
214
+ "schema": {
215
+ "$ref": "#/components/schemas/ErrorResponse"
216
+ },
217
+ "examples": {
218
+ "LocationNotFound": {
219
+ "summary": "Location not found",
220
+ "value": {
221
+ "timestamp": "2026-07-24T11:09:32.129Z",
222
+ "status": 404,
223
+ "message": "Location not found",
224
+ "error": "error",
225
+ "path": "/v1.0/weather/current"
226
+ }
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }
233
+ }
234
+ }
235
+ },
236
+ "components": {
237
+ "securitySchemes": {
238
+ "ApiKeyAuthHeader": {
239
+ "type": "apiKey",
240
+ "in": "header",
241
+ "name": "X-apiKey",
242
+ "description": "Pass your API key via the X-apiKey request header."
243
+ },
244
+ "ApiKeyAuthQuery": {
245
+ "type": "apiKey",
246
+ "in": "query",
247
+ "name": "apiKey",
248
+ "description": "Pass your API key via the apiKey query parameter."
249
+ }
250
+ },
251
+ "schemas": {
252
+ "CurrentWeatherResponse": {
253
+ "type": "object",
254
+ "required": ["location", "current"],
255
+ "properties": {
256
+ "location": {
257
+ "$ref": "#/components/schemas/WeatherLocation"
258
+ },
259
+ "current": {
260
+ "$ref": "#/components/schemas/CurrentWeather",
261
+ "description": "Current weather data"
262
+ }
263
+ },
264
+ "description": "Current weather response containing location data and current weather conditions."
265
+ },
266
+ "WeatherLocation": {
267
+ "type": "object",
268
+ "description": "Location information. The shape of this object varies by lookup method.",
269
+ "oneOf": [
270
+ {
271
+ "description": "Location data when the target is specified by GPS coordinates (lat/long).",
272
+ "$ref": "#/components/schemas/LocationByCoordinates"
273
+ },
274
+ {
275
+ "description": "Location data when the target is inferred from an IP address.",
276
+ "$ref": "#/components/schemas/LocationByIP"
277
+ },
278
+ {
279
+ "description": "Location data when the target is specified by a city name or address string.",
280
+ "$ref": "#/components/schemas/LocationByAddress"
281
+ }
282
+ ]
283
+ },
284
+ "LocationByCoordinates": {
285
+ "type": "object",
286
+ "required": [
287
+ "latitude",
288
+ "longitude",
289
+ "country_name",
290
+ "state_prov",
291
+ "city",
292
+ "timezone",
293
+ "timezone_abbreviation"
294
+ ],
295
+ "properties": {
296
+ "latitude": {
297
+ "type": "string",
298
+ "description": "Geographic latitude coordinate in decimal degrees, ranging from -90 (South Pole) to +90 (North Pole). Returned as a string, not a number."
299
+ },
300
+ "longitude": {
301
+ "type": "string",
302
+ "description": "Geographic longitude coordinate in decimal degrees, ranging from -180 (West) to +180 (East). Returned as a string, not a number."
303
+ },
304
+ "country_name": {
305
+ "type": "string",
306
+ "description": "Full name of the country corresponding to the provided coordinates."
307
+ },
308
+ "state_prov": {
309
+ "type": "string",
310
+ "description": "State, province, or primary administrative division name for the location."
311
+ },
312
+ "city": {
313
+ "type": "string",
314
+ "description": "City or municipal area name associated with the coordinate location."
315
+ },
316
+ "locality": {
317
+ "type": "string",
318
+ "description": "Specific locality, neighborhood, district, or village name within the broader area."
319
+ },
320
+ "elevation": {
321
+ "type": "string",
322
+ "description": "Height above mean sea level in meters for the specified coordinates. Returned as a string, not a number; can be an empty string when unavailable."
323
+ },
324
+ "timezone": {
325
+ "type": "string",
326
+ "description": "IANA timezone database identifier for the location (e.g., America/New_York, Europe/London)."
327
+ },
328
+ "timezone_abbreviation": {
329
+ "type": "string",
330
+ "description": "Abbreviated timezone representation based on current offset (e.g., EST, GMT, PST)."
331
+ }
332
+ },
333
+ "description": "Location data when the target is specified by GPS coordinates (lat/long)."
334
+ },
335
+ "LocationByIP": {
336
+ "type": "object",
337
+ "required": [
338
+ "continent_code",
339
+ "continent_name",
340
+ "country_code2",
341
+ "country_code3",
342
+ "country_name",
343
+ "country_name_official",
344
+ "state_prov",
345
+ "city",
346
+ "latitude",
347
+ "longitude",
348
+ "timezone",
349
+ "timezone_abbreviation"
350
+ ],
351
+ "properties": {
352
+ "continent_code": {
353
+ "type": "string",
354
+ "description": "Two-letter continent code (e.g., NA for North America, EU for Europe, AS for Asia)."
355
+ },
356
+ "continent_name": {
357
+ "type": "string",
358
+ "description": "Full name of the continent where the IP address is registered."
359
+ },
360
+ "country_code2": {
361
+ "type": "string",
362
+ "description": "ISO 3166-1 alpha-2 two-letter country code (e.g., US, GB, FR)."
363
+ },
364
+ "country_code3": {
365
+ "type": "string",
366
+ "description": "ISO 3166-1 alpha-3 three-letter country code (e.g., USA, GBR, FRA)."
367
+ },
368
+ "country_name": {
369
+ "type": "string",
370
+ "description": "Common name of the country associated with the IP address."
371
+ },
372
+ "country_name_official": {
373
+ "type": "string",
374
+ "description": "Official long-form country name as recognized internationally (e.g., United States of America)."
375
+ },
376
+ "is_eu": {
377
+ "type": "boolean",
378
+ "description": "Boolean flag indicating whether the country is a member state of the European Union."
379
+ },
380
+ "state_prov": {
381
+ "type": "string",
382
+ "description": "State, province, or primary administrative division associated with the IP location."
383
+ },
384
+ "state_code": {
385
+ "type": "string",
386
+ "description": "ISO 3166-2 subdivision code for the state or province (e.g., CA for California)."
387
+ },
388
+ "district": {
389
+ "type": "string",
390
+ "description": "District, county, or secondary administrative division within the region."
391
+ },
392
+ "city": {
393
+ "type": "string",
394
+ "description": "City or urban area name where the IP address is geographically registered."
395
+ },
396
+ "zipcode": {
397
+ "type": "string",
398
+ "description": "Postal code or ZIP code for the approximate location of the IP address."
399
+ },
400
+ "latitude": {
401
+ "type": "string",
402
+ "description": "Geographic latitude in decimal degrees for the IP geolocation, ranging from -90 to +90. Returned as a string, not a number."
403
+ },
404
+ "longitude": {
405
+ "type": "string",
406
+ "description": "Geographic longitude in decimal degrees for the IP geolocation, ranging from -180 to +180. Returned as a string, not a number."
407
+ },
408
+ "locality": {
409
+ "type": "string",
410
+ "description": "Specific locality, neighborhood, or small area designation within the city."
411
+ },
412
+ "elevation": {
413
+ "type": "string",
414
+ "description": "Elevation above mean sea level in meters for the IP geolocation. Returned as a string, not a number; can be an empty string when unavailable."
415
+ },
416
+ "timezone": {
417
+ "type": "string",
418
+ "description": "IANA timezone database identifier for the IP location (e.g., America/Chicago, Asia/Tokyo)."
419
+ },
420
+ "timezone_abbreviation": {
421
+ "type": "string",
422
+ "description": "Current timezone abbreviation based on local offset (e.g., CST, JST, UTC)."
423
+ }
424
+ },
425
+ "description": "Location data when the target is inferred from an IP address."
426
+ },
427
+ "LocationByAddress": {
428
+ "type": "object",
429
+ "required": [
430
+ "location_string",
431
+ "country_name",
432
+ "state_prov",
433
+ "city",
434
+ "latitude",
435
+ "longitude",
436
+ "timezone",
437
+ "timezone_abbreviation"
438
+ ],
439
+ "properties": {
440
+ "location_string": {
441
+ "type": "string",
442
+ "description": "Original location query string as submitted, including full address or place name."
443
+ },
444
+ "country_name": {
445
+ "type": "string",
446
+ "description": "Resolved country name derived from the geocoded location query."
447
+ },
448
+ "state_prov": {
449
+ "type": "string",
450
+ "description": "State, province, or primary administrative division identified from the location."
451
+ },
452
+ "city": {
453
+ "type": "string",
454
+ "description": "City or municipal area name extracted from the geocoded location."
455
+ },
456
+ "locality": {
457
+ "type": "string",
458
+ "description": "Specific locality, neighborhood, suburb, or village within the geocoded area."
459
+ },
460
+ "latitude": {
461
+ "type": "string",
462
+ "description": "Geocoded latitude coordinate in decimal degrees, ranging from -90 to +90. Returned as a string, not a number."
463
+ },
464
+ "longitude": {
465
+ "type": "string",
466
+ "description": "Geocoded longitude coordinate in decimal degrees, ranging from -180 to +180. Returned as a string, not a number."
467
+ },
468
+ "elevation": {
469
+ "type": "string",
470
+ "description": "Elevation above mean sea level in meters at the geocoded coordinates. Returned as a string, not a number; can be an empty string when unavailable."
471
+ },
472
+ "timezone": {
473
+ "type": "string",
474
+ "description": "IANA timezone database identifier for the geocoded location (e.g., America/Los_Angeles)."
475
+ },
476
+ "timezone_abbreviation": {
477
+ "type": "string",
478
+ "description": "Current timezone abbreviation for the location based on local offset (e.g., PDT, CET)."
479
+ }
480
+ },
481
+ "description": "Location data when the target is specified by a city name or address string."
482
+ },
483
+ "CurrentWeather": {
484
+ "type": "object",
485
+ "required": [
486
+ "timestamp",
487
+ "temperature_2m",
488
+ "relative_humidity_2m",
489
+ "apparent_temperature",
490
+ "snowfall",
491
+ "rain",
492
+ "showers",
493
+ "precipitation",
494
+ "weather_code",
495
+ "cloud_cover",
496
+ "pressure_msl",
497
+ "surface_pressure",
498
+ "wind_speed_10m",
499
+ "wind_direction_10m",
500
+ "wind_gusts_10m",
501
+ "astronomy",
502
+ "air_quality"
503
+ ],
504
+ "properties": {
505
+ "timestamp": {
506
+ "type": "string",
507
+ "format": "date-time",
508
+ "description": "ISO 8601 formatted timestamp of the current weather observation."
509
+ },
510
+ "temperature_2m": {
511
+ "type": "number",
512
+ "format": "float",
513
+ "description": "Current air temperature (°C) measured at 2 meters above ground."
514
+ },
515
+ "relative_humidity_2m": {
516
+ "type": "number",
517
+ "format": "float",
518
+ "description": "Current relative humidity percentage at 2 meters above ground."
519
+ },
520
+ "apparent_temperature": {
521
+ "type": "number",
522
+ "format": "float",
523
+ "description": "Current apparent temperature (°C) accounting for wind chill and humidity."
524
+ },
525
+ "snowfall": {
526
+ "type": "number",
527
+ "format": "float",
528
+ "description": "Current snowfall accumulation in centimeters."
529
+ },
530
+ "rain": {
531
+ "type": "number",
532
+ "format": "float",
533
+ "description": "Current rainfall accumulation in millimeters."
534
+ },
535
+ "showers": {
536
+ "type": "number",
537
+ "format": "float",
538
+ "description": "Current shower precipitation in millimeters."
539
+ },
540
+ "precipitation": {
541
+ "type": "number",
542
+ "format": "float",
543
+ "description": "Total precipitation (mm) including rain, showers, and snowfall."
544
+ },
545
+ "weather_code": {
546
+ "type": "integer",
547
+ "enum": [
548
+ 0, 1, 2, 3, 45, 48, 51, 53, 55, 56, 57, 61, 63, 65, 66, 67, 71,
549
+ 73, 75, 77, 80, 81, 82, 85, 86, 95, 96, 99
550
+ ],
551
+ "description": "WMO weather condition code representing current conditions. Supported codes: 0 clear sky; 1, 2, 3 varying cloud cover; 45, 48 fog; 51, 53, 55 drizzle; 56, 57 freezing drizzle; 61, 63, 65 rain; 66, 67 freezing rain; 71, 73, 75 snowfall; 77 snow grains; 80, 81, 82 rain showers; 85, 86 snow showers; 95 thunderstorm; 96, 99 thunderstorm with hail."
552
+ },
553
+ "cloud_cover": {
554
+ "type": "number",
555
+ "format": "float",
556
+ "description": "Current percentage of sky covered by clouds."
557
+ },
558
+ "pressure_msl": {
559
+ "type": "number",
560
+ "format": "float",
561
+ "description": "Current atmospheric pressure (hPa) adjusted to mean sea level."
562
+ },
563
+ "surface_pressure": {
564
+ "type": "number",
565
+ "format": "float",
566
+ "description": "Current atmospheric pressure (hPa) at surface level."
567
+ },
568
+ "wind_speed_10m": {
569
+ "type": "number",
570
+ "format": "float",
571
+ "description": "Current wind speed (km/h) at 10 meters above ground."
572
+ },
573
+ "wind_direction_10m": {
574
+ "type": "integer",
575
+ "description": "Current wind direction in degrees at 10 meters above ground."
576
+ },
577
+ "wind_gusts_10m": {
578
+ "type": "number",
579
+ "format": "float",
580
+ "description": "Current wind gust speed (km/h) at 10 meters above ground."
581
+ },
582
+ "astronomy": {
583
+ "$ref": "#/components/schemas/Astronomy",
584
+ "description": "Astronomical information including sunrise, sunset, and moon phases for the current date."
585
+ },
586
+ "air_quality": {
587
+ "$ref": "#/components/schemas/AirQuality",
588
+ "description": "Air quality metrics including pollutant concentrations and AQI values."
589
+ }
590
+ },
591
+ "description": "Current weather conditions including temperature, humidity, precipitation, wind, pressure, astronomy, and air quality."
592
+ },
593
+ "Astronomy": {
594
+ "type": "object",
595
+ "required": [
596
+ "date",
597
+ "mid_night",
598
+ "night_end",
599
+ "sunrise",
600
+ "solar_noon",
601
+ "sunset",
602
+ "night_begin",
603
+ "day_length",
604
+ "sun_status",
605
+ "moon_phase",
606
+ "moonrise",
607
+ "moonset",
608
+ "moon_status"
609
+ ],
610
+ "properties": {
611
+ "date": {
612
+ "type": "string",
613
+ "format": "date",
614
+ "description": "Calendar date in YYYY-MM-DD format for the astronomical data."
615
+ },
616
+ "mid_night": {
617
+ "type": "string",
618
+ "description": "Time of true solar midnight in HH:MM format."
619
+ },
620
+ "night_end": {
621
+ "type": "string",
622
+ "description": "Time when astronomical twilight ends and dawn begins in HH:MM format."
623
+ },
624
+ "sunrise": {
625
+ "type": "string",
626
+ "description": "Time when the Sun becomes visible above the horizon in HH:MM format."
627
+ },
628
+ "solar_noon": {
629
+ "type": "string",
630
+ "description": "Time when the Sun reaches its highest point in the sky in HH:MM format."
631
+ },
632
+ "sunset": {
633
+ "type": "string",
634
+ "description": "Time when the Sun disappears below the horizon in HH:MM format."
635
+ },
636
+ "night_begin": {
637
+ "type": "string",
638
+ "description": "Time when astronomical twilight begins and night starts in HH:MM format."
639
+ },
640
+ "day_length": {
641
+ "type": "string",
642
+ "description": "Total duration of daylight in HH:MM format."
643
+ },
644
+ "sun_status": {
645
+ "type": "string",
646
+ "description": "Current position of the Sun relative to the horizon (above_horizon, below_horizon, or -)."
647
+ },
648
+ "moon_phase": {
649
+ "type": "string",
650
+ "description": "Current lunar phase (NEW_MOON, WAXING_CRESCENT, FULL_MOON, WANING_GIBBOUS, etc.)."
651
+ },
652
+ "moonrise": {
653
+ "type": "string",
654
+ "description": "Time when the Moon becomes visible above the horizon in HH:MM format."
655
+ },
656
+ "moonset": {
657
+ "type": "string",
658
+ "description": "Time when the Moon disappears below the horizon in HH:MM format."
659
+ },
660
+ "moon_status": {
661
+ "type": "string",
662
+ "description": "Current visibility status of the Moon (visible, not_visible, or -)."
663
+ }
664
+ },
665
+ "description": "Astronomical data including sunrise, sunset, solar noon, day length, moon phase, and moon times."
666
+ },
667
+ "AirQuality": {
668
+ "type": "object",
669
+ "required": [
670
+ "timestamp",
671
+ "european_aqi",
672
+ "us_aqi",
673
+ "pm10",
674
+ "pm2_5",
675
+ "carbon_monoxide",
676
+ "nitrogen_dioxide",
677
+ "sulphur_dioxide",
678
+ "ozone",
679
+ "dust",
680
+ "uv_index",
681
+ "aerosol_optical_depth",
682
+ "uv_index_clear_sky"
683
+ ],
684
+ "properties": {
685
+ "timestamp": {
686
+ "type": "string",
687
+ "format": "date-time",
688
+ "description": "ISO 8601 formatted timestamp (iso8601)."
689
+ },
690
+ "european_aqi": {
691
+ "type": "integer",
692
+ "description": "Consolidated European Air Quality Index representing the highest value among individual pollutant indices. Ranges: 0-20 (good), 20-40 (fair), 40-60 (moderate), 60-80 (poor), 80-100 (very poor), >100 (extremely poor)."
693
+ },
694
+ "us_aqi": {
695
+ "type": "integer",
696
+ "description": "Consolidated U.S. Air Quality Index representing the highest value among individual pollutant indices. Ranges: 0-50 (good), 51-100 (moderate), 101-150 (unhealthy for sensitive groups), 151-200 (unhealthy), 201-300 (very unhealthy), 301-500 (hazardous)."
697
+ },
698
+ "pm10": {
699
+ "type": "number",
700
+ "format": "float",
701
+ "description": "Particulate matter with diameter less than 10 micrometers (μg/m³) measured at 10 meters above ground."
702
+ },
703
+ "pm2_5": {
704
+ "type": "number",
705
+ "format": "float",
706
+ "description": "Particulate matter with diameter less than 2.5 micrometers (μg/m³) measured at 10 meters above ground."
707
+ },
708
+ "carbon_monoxide": {
709
+ "type": "number",
710
+ "format": "float",
711
+ "description": "Atmospheric carbon monoxide gas concentration (μg/m³) at 10 meters above ground."
712
+ },
713
+ "nitrogen_dioxide": {
714
+ "type": "number",
715
+ "format": "float",
716
+ "description": "Atmospheric nitrogen dioxide gas concentration (μg/m³) at 10 meters above ground."
717
+ },
718
+ "sulphur_dioxide": {
719
+ "type": "number",
720
+ "format": "float",
721
+ "description": "Atmospheric sulphur dioxide gas concentration (μg/m³) at 10 meters above ground."
722
+ },
723
+ "ozone": {
724
+ "type": "number",
725
+ "format": "float",
726
+ "description": "Atmospheric ozone gas concentration (μg/m³) at 10 meters above ground."
727
+ },
728
+ "dust": {
729
+ "type": "number",
730
+ "format": "float",
731
+ "description": "Saharan dust particle concentration (μg/m³) at 10 meters above ground."
732
+ },
733
+ "uv_index": {
734
+ "type": "number",
735
+ "format": "float",
736
+ "description": "Ultraviolet radiation intensity index accounting for cloud coverage."
737
+ },
738
+ "aerosol_optical_depth": {
739
+ "type": "number",
740
+ "format": "float",
741
+ "description": "Aerosol optical depth at 550 nm wavelength indicating atmospheric haze levels."
742
+ },
743
+ "uv_index_clear_sky": {
744
+ "type": "number",
745
+ "format": "float",
746
+ "description": "Ultraviolet radiation intensity index assuming cloud-free conditions."
747
+ }
748
+ },
749
+ "description": "Air quality metrics including European and US AQI indices plus individual pollutant concentrations."
750
+ },
751
+ "ErrorResponse": {
752
+ "type": "object",
753
+ "required": ["message"],
754
+ "properties": {
755
+ "error": {
756
+ "type": "string",
757
+ "description": "Short error category or exception type."
758
+ },
759
+ "message": {
760
+ "type": "string",
761
+ "description": "Human-readable error message describing the failure."
762
+ },
763
+ "path": {
764
+ "type": "string",
765
+ "description": "API endpoint path that produced the error."
766
+ },
767
+ "status": {
768
+ "type": "integer",
769
+ "description": "HTTP status code returned with the error."
770
+ },
771
+ "timestamp": {
772
+ "type": "string",
773
+ "format": "date-time",
774
+ "description": "Timestamp when the error occurred (ISO 8601)."
775
+ }
776
+ },
777
+ "description": "Standard error envelope returned by the API on failed requests."
778
+ }
779
+ }
780
+ },
781
+ "security": [
782
+ {
783
+ "ApiKeyAuthHeader": []
784
+ },
785
+ {
786
+ "ApiKeyAuthQuery": []
787
+ }
788
+ ]
789
+ }