@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,632 @@
1
+ openapi: 3.1.1
2
+ info:
3
+ title: Astronomy API - Location Based Astronomy Data
4
+ version: 1.0.0
5
+ description: 'Retrieve sunrise and sunset times, current position of the moon, and other astronomical data for any location and date. Supports lookup by city name or address (location), GPS coordinates (lat/long), an explicit IP address (ip), or the requester''s own client IP when none of those are provided. Returns comprehensive astronomy data including twilight times, blue hour, golden hour, sun and moon positions, distances, azimuths, and moon phase. The location object''s field set varies by lookup mode: address lookups return a location_string plus basic fields, coordinate lookups return the same basic fields without location_string, and IP-based lookups (explicit ip or client-IP fallback) return a richer geo-IP field set (continent, country codes, EU membership, state code, district, zip code) plus a top-level ip field, but never location_string. Pass time_zone to convert all time fields into a specific IANA time zone.'
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: Astronomy API Server
13
+ paths:
14
+ /geolocation/astronomy:
15
+ get:
16
+ tags:
17
+ - Other APIs
18
+ summary: Returns sunrise, sunset, moon phase, and celestial positions for a given location and date.
19
+ description: Retrieve sunrise and sunset times, current position of the moon, and other related information by specifying a location address, location coordinates, IP address, or using the client IP address if no parameter is passed.
20
+ operationId: getAstronomyData
21
+ parameters:
22
+ - name: format
23
+ in: query
24
+ required: false
25
+ schema:
26
+ type: string
27
+ default: json
28
+ enum:
29
+ - json
30
+ - xml
31
+ description: Format of the response. Can be "json" or "xml".
32
+ - in: query
33
+ name: location
34
+ schema:
35
+ type: string
36
+ default: New York, US
37
+ description: Extract astronomy information using location (preferably city)
38
+ required: false
39
+ - in: query
40
+ name: lat
41
+ schema:
42
+ type: number
43
+ format: float
44
+ description: Latitude to extract astronomy information using location coordinates
45
+ required: false
46
+ - in: query
47
+ name: long
48
+ schema:
49
+ type: number
50
+ format: float
51
+ description: Longitude to extract astronomy information using location coordinates
52
+ required: false
53
+ - in: query
54
+ name: ip
55
+ schema:
56
+ type: string
57
+ description: IPv4 or IPv6 address to extract astronomy information using IP address
58
+ required: false
59
+ - in: query
60
+ name: lang
61
+ schema:
62
+ type: string
63
+ default: en
64
+ enum:
65
+ - en
66
+ - de
67
+ - ru
68
+ - ja
69
+ - fr
70
+ - cn
71
+ - es
72
+ - cs
73
+ - it
74
+ - ko
75
+ - fa
76
+ - pt
77
+ description: Response language of "location" field in case of lookup through IP address only.
78
+ required: false
79
+ - in: query
80
+ name: date
81
+ schema:
82
+ type: string
83
+ format: date
84
+ description: Specific date (format YYYY-MM-DD) for which astronomy data is required
85
+ required: false
86
+ - in: query
87
+ name: elevation
88
+ schema:
89
+ type: number
90
+ format: float
91
+ default: 0
92
+ description: Elevation above sea level at the location, in meters. The value should be between 0 meter and a maximum value of 10,000 meters. Negative value is set to 0.
93
+ required: false
94
+ - in: query
95
+ name: time_zone
96
+ schema:
97
+ type: string
98
+ description: Time zone to receive all time-based data in your preferred local time.
99
+ required: false
100
+ responses:
101
+ '200':
102
+ description: Successful response with astronomy data
103
+ content:
104
+ application/json:
105
+ schema:
106
+ $ref: '#/components/schemas/AstronomyResponse'
107
+ examples:
108
+ geocodeLookup:
109
+ summary: Lookup by location address (location param)
110
+ value:
111
+ location:
112
+ location_string: New York, US
113
+ country_name: United States
114
+ state_prov: New York
115
+ city: New York
116
+ locality: Clinton
117
+ latitude: '40.76473'
118
+ longitude: '-74.00084'
119
+ elevation: '9'
120
+ astronomy:
121
+ date: '2026-07-24'
122
+ current_time: '05:39:55.740'
123
+ mid_night: '01:02'
124
+ night_end: '03:50'
125
+ morning:
126
+ astronomical_twilight_begin: '03:50'
127
+ astronomical_twilight_end: '04:34'
128
+ nautical_twilight_begin: '04:34'
129
+ nautical_twilight_end: '05:13'
130
+ civil_twilight_begin: '05:13'
131
+ civil_twilight_end: '05:44'
132
+ blue_hour_begin: '05:00'
133
+ blue_hour_end: '05:26'
134
+ golden_hour_begin: '05:26'
135
+ golden_hour_end: '06:24'
136
+ sunrise: '05:44'
137
+ sunset: '20:20'
138
+ evening:
139
+ golden_hour_begin: '19:39'
140
+ golden_hour_end: '20:38'
141
+ blue_hour_begin: '20:38'
142
+ blue_hour_end: '21:03'
143
+ civil_twilight_begin: '20:20'
144
+ civil_twilight_end: '20:50'
145
+ nautical_twilight_begin: '20:50'
146
+ nautical_twilight_end: '21:30'
147
+ astronomical_twilight_begin: '21:30'
148
+ astronomical_twilight_end: '22:14'
149
+ night_begin: '22:14'
150
+ sun_status: '-'
151
+ solar_noon: '13:02'
152
+ day_length: '14:35'
153
+ sun_altitude: -1.724678050716447
154
+ sun_distance: 151988138.3404624
155
+ sun_azimuth: 61.7231663467785
156
+ moon_phase: WAXING_GIBBOUS
157
+ moonrise: '16:59'
158
+ moonset: '01:05'
159
+ moon_status: '-'
160
+ moon_altitude: -47.89342665088803
161
+ moon_distance: 404852.80222395214
162
+ moon_azimuth: 275.0508821352747
163
+ moon_parallactic_angle: 57.14257561268031
164
+ moon_illumination_percentage: '76.99'
165
+ moon_angle: 122.67519000797743
166
+ coordinatesLookup:
167
+ summary: Lookup by GPS coordinates (lat/long params) — no location_string, locality may be empty
168
+ value:
169
+ location:
170
+ latitude: '40.71280'
171
+ longitude: '-74.00600'
172
+ country_name: United States
173
+ state_prov: New York
174
+ city: New York City
175
+ locality: ''
176
+ elevation: '6'
177
+ astronomy:
178
+ date: '2026-07-24'
179
+ current_time: '05:40:09.712'
180
+ mid_night: '01:02'
181
+ night_end: '03:50'
182
+ morning:
183
+ astronomical_twilight_begin: '03:50'
184
+ astronomical_twilight_end: '04:34'
185
+ nautical_twilight_begin: '04:34'
186
+ nautical_twilight_end: '05:14'
187
+ civil_twilight_begin: '05:14'
188
+ civil_twilight_end: '05:45'
189
+ blue_hour_begin: '05:01'
190
+ blue_hour_end: '05:26'
191
+ golden_hour_begin: '05:26'
192
+ golden_hour_end: '06:25'
193
+ sunrise: '05:45'
194
+ sunset: '20:19'
195
+ evening:
196
+ golden_hour_begin: '19:39'
197
+ golden_hour_end: '20:38'
198
+ blue_hour_begin: '20:38'
199
+ blue_hour_end: '21:03'
200
+ civil_twilight_begin: '20:19'
201
+ civil_twilight_end: '20:50'
202
+ nautical_twilight_begin: '20:50'
203
+ nautical_twilight_end: '21:30'
204
+ astronomical_twilight_begin: '21:30'
205
+ astronomical_twilight_end: '22:13'
206
+ night_begin: '22:13'
207
+ sun_status: '-'
208
+ solar_noon: '13:02'
209
+ day_length: '14:34'
210
+ sun_altitude: -1.7138810477761148
211
+ sun_distance: 151988138.34046236
212
+ sun_azimuth: 61.759759720006855
213
+ moon_phase: WAXING_GIBBOUS
214
+ moonrise: '16:58'
215
+ moonset: '01:05'
216
+ moon_status: '-'
217
+ moon_altitude: -47.936765082140305
218
+ moon_distance: 404853.01478817535
219
+ moon_azimuth: 275.0302780092609
220
+ moon_parallactic_angle: 57.21501710401273
221
+ moon_illumination_percentage: '77.00'
222
+ moon_angle: 122.67696159469526
223
+ ipLookup:
224
+ summary: Lookup by IP address (ip param, or default client IP) — full geo-IP location fields, includes top-level ip
225
+ value:
226
+ ip: 8.8.8.8
227
+ location:
228
+ continent_code: NA
229
+ continent_name: North America
230
+ country_code2: US
231
+ country_code3: USA
232
+ country_name: United States
233
+ country_name_official: United States of America
234
+ is_eu: false
235
+ state_prov: California
236
+ state_code: US-CA
237
+ district: Santa Clara
238
+ city: Mountain View
239
+ zipcode: 94043-1351
240
+ latitude: '37.42240'
241
+ longitude: '-122.08421'
242
+ locality: Charleston Terrace
243
+ elevation: '3'
244
+ astronomy:
245
+ date: '2026-07-24'
246
+ current_time: '02:40:09.167'
247
+ mid_night: '01:15'
248
+ night_end: '04:20'
249
+ morning:
250
+ astronomical_twilight_begin: '04:20'
251
+ astronomical_twilight_end: '05:00'
252
+ nautical_twilight_begin: '05:00'
253
+ nautical_twilight_end: '05:36'
254
+ civil_twilight_begin: '05:36'
255
+ civil_twilight_end: '06:06'
256
+ blue_hour_begin: '05:25'
257
+ blue_hour_end: '05:48'
258
+ golden_hour_begin: '05:48'
259
+ golden_hour_end: '06:43'
260
+ sunrise: '06:06'
261
+ sunset: '20:23'
262
+ evening:
263
+ golden_hour_begin: '19:45'
264
+ golden_hour_end: '20:41'
265
+ blue_hour_begin: '20:41'
266
+ blue_hour_end: '21:04'
267
+ civil_twilight_begin: '20:23'
268
+ civil_twilight_end: '20:52'
269
+ nautical_twilight_begin: '20:52'
270
+ nautical_twilight_end: '21:28'
271
+ astronomical_twilight_begin: '21:28'
272
+ astronomical_twilight_end: '22:08'
273
+ night_begin: '22:08'
274
+ sun_status: '-'
275
+ solar_noon: '13:14'
276
+ day_length: '14:17'
277
+ sun_altitude: -29.345451007769825
278
+ sun_distance: 151988138.3404624
279
+ sun_azimuth: 23.09240894097684
280
+ moon_phase: WAXING_GIBBOUS
281
+ moonrise: '17:06'
282
+ moonset: '01:34'
283
+ moon_status: '-'
284
+ moon_altitude: -11.054713589548413
285
+ moon_distance: 404853.00649734883
286
+ moon_azimuth: 245.50238573115115
287
+ moon_parallactic_angle: 53.576490644915204
288
+ moon_illumination_percentage: '77.00'
289
+ moon_angle: 122.67689249117335
290
+ '400':
291
+ description: Bad Request – Invalid parameters provided
292
+ content:
293
+ application/json:
294
+ schema:
295
+ $ref: '#/components/schemas/ErrorResponse'
296
+ examples:
297
+ invalidLatLong:
298
+ summary: Invalid latitude or longitude
299
+ value:
300
+ message: Latitude must be between -90 and 90.
301
+ invalidIp:
302
+ summary: Invalid IP address
303
+ value:
304
+ message: '''999.999.999.999'' is not an IP string literal.'
305
+ invalidDate:
306
+ summary: Invalid date format
307
+ value:
308
+ message: You must provide date in the 'yyyy-MM-dd' format
309
+ '404':
310
+ description: Not Found
311
+ content:
312
+ application/json:
313
+ schema:
314
+ $ref: '#/components/schemas/ErrorResponse'
315
+ examples:
316
+ locationNotFound:
317
+ summary: Location not found
318
+ value:
319
+ message: We couldn't find the location (ZZZNOTEXIST). Try a city or state level location address only.
320
+ components:
321
+ securitySchemes:
322
+ ApiKeyAuthHeader:
323
+ type: apiKey
324
+ in: header
325
+ name: X-apiKey
326
+ description: Pass your API key via the X-apiKey request header.
327
+ ApiKeyAuthQuery:
328
+ type: apiKey
329
+ in: query
330
+ name: apiKey
331
+ description: Pass your API key via the apiKey query parameter.
332
+ schemas:
333
+ AstronomyResponse:
334
+ type: object
335
+ required:
336
+ - astronomy
337
+ properties:
338
+ ip:
339
+ type: string
340
+ description: IPv4 or IPv6 address used for the geo-IP lookup. Present when the ip parameter is passed explicitly, or when no location, lat/long, or ip parameter is supplied at all (the API falls back to the requesting client's IP address). Absent when location or lat/long is used.
341
+ location:
342
+ $ref: '#/components/schemas/AstronomyLocation'
343
+ astronomy:
344
+ $ref: '#/components/schemas/AstronomyData'
345
+ description: Astronomy data response containing location information and astronomical data.
346
+ AstronomyLocation:
347
+ type: object
348
+ description: 'Geographic location information for the astronomy calculation. The set of populated fields depends on which lookup mode the request used: (1) location param (geocode-by-address) returns location_string plus a basic field set (country_name, state_prov, city, locality, latitude, longitude, elevation); (2) lat + long params (geocode-by-coordinates) returns the same basic field set minus location_string, and locality may be an empty string when the coordinates don''t resolve to a named sub-area; (3) ip param, or no location/lat/long/ip param at all (falls back to geo-IP lookup of the client''s IP), returns the full geo-IP field set — continent_code, continent_name, country_code2, country_code3, country_name_official, is_eu, state_code, district, zipcode — in addition to the basic fields, but never location_string. elevation can be an empty string when elevation data is unavailable for the resolved location.'
349
+ properties:
350
+ location_string:
351
+ type: string
352
+ description: The location query parameter echoed back as-is. Present only for geocode-by-address lookups (location param); absent for lat/long and ip-based lookups.
353
+ continent_code:
354
+ type: string
355
+ 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/lat/long geocode lookups.'
356
+ continent_name:
357
+ type: string
358
+ 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/lat/long geocode lookups.'
359
+ country_code2:
360
+ type: string
361
+ 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/lat/long geocode lookups.'
362
+ country_code3:
363
+ type: string
364
+ 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/lat/long geocode lookups.'
365
+ country_name:
366
+ type: string
367
+ description: The common name of the country (e.g., "United States"). Present in all lookup modes.
368
+ country_name_official:
369
+ type: string
370
+ 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/lat/long geocode lookups.'
371
+ is_eu:
372
+ type: boolean
373
+ 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/lat/long geocode lookups.'
374
+ state_prov:
375
+ type: string
376
+ description: Name of the state/province/region. Present in all lookup modes.
377
+ state_code:
378
+ type: string
379
+ description: 'Code of the state/province/region. Geo-IP field only: present for ip param or default client-IP lookups; absent for location/lat/long geocode lookups.'
380
+ district:
381
+ type: string
382
+ description: 'Name of the district or county. Geo-IP field only: present for ip param or default client-IP lookups; absent for location/lat/long geocode lookups.'
383
+ city:
384
+ type: string
385
+ description: Name of the city. Present in all lookup modes.
386
+ zipcode:
387
+ type: string
388
+ description: 'ZIP/Postal code of the place. Geo-IP field only: present for ip param or default client-IP lookups; absent for location/lat/long geocode lookups.'
389
+ latitude:
390
+ type: string
391
+ description: The geographic latitude of the location. Present in all lookup modes.
392
+ longitude:
393
+ type: string
394
+ description: The geographic longitude of the location. Present in all lookup modes.
395
+ locality:
396
+ type: string
397
+ description: Smaller area, part or region of a city. Present in all lookup modes, but may be an empty string for lat/long or geo-IP lookups when no named sub-area resolves.
398
+ elevation:
399
+ type: string
400
+ description: The elevation of the geographical location, in meters. Present in all lookup modes, but may be an empty string when elevation data is unavailable for the resolved location.
401
+ required:
402
+ - latitude
403
+ - longitude
404
+ AstronomyData:
405
+ type: object
406
+ description: Complete astronomical data for the specified location and date.
407
+ required:
408
+ - date
409
+ - current_time
410
+ - mid_night
411
+ - night_end
412
+ - morning
413
+ - sunrise
414
+ - sunset
415
+ - evening
416
+ - night_begin
417
+ - sun_status
418
+ - solar_noon
419
+ - day_length
420
+ - sun_altitude
421
+ - sun_distance
422
+ - sun_azimuth
423
+ - moon_phase
424
+ - moonrise
425
+ - moonset
426
+ - moon_status
427
+ - moon_altitude
428
+ - moon_distance
429
+ - moon_azimuth
430
+ - moon_parallactic_angle
431
+ - moon_illumination_percentage
432
+ - moon_angle
433
+ properties:
434
+ time_zone:
435
+ type: string
436
+ description: Appears (with the provided value) only when the user includes a time_zone in the query to specify which time to observe.
437
+ date:
438
+ type: string
439
+ description: The date astronomy data was calculated for. Defaults to today's date; reflects the date query parameter's value when that parameter is supplied.
440
+ current_time:
441
+ type: string
442
+ description: The current time
443
+ mid_night:
444
+ type: string
445
+ description: The time of midnight (solar-based)
446
+ night_end:
447
+ type: string
448
+ description: The time when night ends (start of astronomical twilight)
449
+ morning:
450
+ $ref: '#/components/schemas/AstronomyMorning'
451
+ sunrise:
452
+ type: string
453
+ description: The time of sunrise
454
+ sunset:
455
+ type: string
456
+ description: The time of sunset
457
+ evening:
458
+ $ref: '#/components/schemas/AstronomyEvening'
459
+ night_begin:
460
+ type: string
461
+ description: The time when night begins (end of astronomical twilight)
462
+ sun_status:
463
+ type: string
464
+ description: The current status of the sun (e.g., "rising", "setting", "-")
465
+ solar_noon:
466
+ type: string
467
+ description: The time when the sun reaches its highest point in the sky
468
+ day_length:
469
+ type: string
470
+ description: The total duration of daylight
471
+ sun_altitude:
472
+ type: number
473
+ format: float
474
+ description: The altitude angle of the sun above the horizon in degrees
475
+ sun_distance:
476
+ type: number
477
+ format: float
478
+ description: The distance from the Earth to the sun in kilometers
479
+ sun_azimuth:
480
+ type: number
481
+ format: float
482
+ description: The azimuth angle of the sun in degrees from true north
483
+ moon_phase:
484
+ type: string
485
+ description: The current phase of the moon (e.g., "WAXING_GIBBOUS")
486
+ moonrise:
487
+ type: string
488
+ description: The time of moonrise
489
+ moonset:
490
+ type: string
491
+ description: The time of moonset
492
+ moon_status:
493
+ type: string
494
+ description: The current status of the moon (e.g., "rising", "setting", "-")
495
+ moon_altitude:
496
+ type: number
497
+ format: float
498
+ description: The altitude angle of the moon above the horizon in degrees
499
+ moon_distance:
500
+ type: number
501
+ format: float
502
+ description: The distance from the Earth to the moon in kilometers
503
+ moon_azimuth:
504
+ type: number
505
+ format: float
506
+ description: The azimuth angle of the moon in degrees from true north
507
+ moon_parallactic_angle:
508
+ type: number
509
+ format: float
510
+ description: The parallactic angle of the moon in degrees
511
+ moon_illumination_percentage:
512
+ type: string
513
+ description: The percentage of the moon illuminated by sunlight. A negative value indicates the moon is in a waning phase.
514
+ moon_angle:
515
+ type: number
516
+ format: float
517
+ description: The geometric angle of the moon relative to the observer
518
+ AstronomyMorning:
519
+ type: object
520
+ description: Morning astronomical data including twilight, blue hour, and golden hour times.
521
+ required:
522
+ - astronomical_twilight_begin
523
+ - astronomical_twilight_end
524
+ - nautical_twilight_begin
525
+ - nautical_twilight_end
526
+ - civil_twilight_begin
527
+ - civil_twilight_end
528
+ - blue_hour_begin
529
+ - blue_hour_end
530
+ - golden_hour_begin
531
+ - golden_hour_end
532
+ properties:
533
+ astronomical_twilight_begin:
534
+ type: string
535
+ description: The start time of astronomical twilight in the morning
536
+ astronomical_twilight_end:
537
+ type: string
538
+ description: The end time of astronomical twilight in the morning
539
+ nautical_twilight_begin:
540
+ type: string
541
+ description: The start time of nautical twilight in the morning
542
+ nautical_twilight_end:
543
+ type: string
544
+ description: The end time of nautical twilight in the morning
545
+ civil_twilight_begin:
546
+ type: string
547
+ description: The start time of civil twilight in the morning
548
+ civil_twilight_end:
549
+ type: string
550
+ description: The end time of civil twilight in the morning
551
+ blue_hour_begin:
552
+ type: string
553
+ description: The beginning of the blue hour in the morning
554
+ blue_hour_end:
555
+ type: string
556
+ description: The end of the blue hour in the morning
557
+ golden_hour_begin:
558
+ type: string
559
+ description: The beginning of the golden hour in the morning
560
+ golden_hour_end:
561
+ type: string
562
+ description: The end of the golden hour in the morning
563
+ AstronomyEvening:
564
+ type: object
565
+ description: Evening astronomical data including golden hour, blue hour, and twilight times.
566
+ required:
567
+ - golden_hour_begin
568
+ - golden_hour_end
569
+ - blue_hour_begin
570
+ - blue_hour_end
571
+ - civil_twilight_begin
572
+ - civil_twilight_end
573
+ - nautical_twilight_begin
574
+ - nautical_twilight_end
575
+ - astronomical_twilight_begin
576
+ - astronomical_twilight_end
577
+ properties:
578
+ golden_hour_begin:
579
+ type: string
580
+ description: The beginning of the golden hour in the evening
581
+ golden_hour_end:
582
+ type: string
583
+ description: The end of the golden hour in the evening
584
+ blue_hour_begin:
585
+ type: string
586
+ description: The beginning of the blue hour in the evening
587
+ blue_hour_end:
588
+ type: string
589
+ description: The end of the blue hour in the evening
590
+ civil_twilight_begin:
591
+ type: string
592
+ description: The start of civil twilight in the evening
593
+ civil_twilight_end:
594
+ type: string
595
+ description: The end of civil twilight in the evening
596
+ nautical_twilight_begin:
597
+ type: string
598
+ description: The start of nautical twilight in the evening
599
+ nautical_twilight_end:
600
+ type: string
601
+ description: The end of nautical twilight in the evening
602
+ astronomical_twilight_begin:
603
+ type: string
604
+ description: The start of astronomical twilight in the evening
605
+ astronomical_twilight_end:
606
+ type: string
607
+ description: The end of astronomical twilight in the evening
608
+ ErrorResponse:
609
+ type: object
610
+ description: Standard error envelope returned by the API on failed requests.
611
+ required:
612
+ - message
613
+ properties:
614
+ error:
615
+ type: string
616
+ description: Short error category or exception type.
617
+ message:
618
+ type: string
619
+ description: Human-readable error message describing the failure.
620
+ path:
621
+ type: string
622
+ description: API endpoint path that produced the error.
623
+ status:
624
+ type: integer
625
+ description: HTTP status code returned with the error.
626
+ timestamp:
627
+ type: string
628
+ format: date-time
629
+ description: Timestamp when the error occurred (ISO 8601).
630
+ security:
631
+ - ApiKeyAuthHeader: []
632
+ - ApiKeyAuthQuery: []