@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,249 @@
1
+ openapi: 3.1.1
2
+ info:
3
+ title: Timezone Converter API Reference
4
+ version: 1.0.0
5
+ description: Convert a timestamp from one timezone to another using timezone names, GPS coordinates, location addresses, IATA/ICAO airport codes, or UN/LOCODEs. Returns the converted time, the original time, and the hour/minute difference between the two timezones. Supports pair-based lookups --- provide source and target using any supported identifier type (e.g., `tz_from` + `tz_to` for IANA names, `lat_from`/`long_from` + `lat_to`/`long_to` for coordinates, `iata_from` + `iata_to` for airport codes). If no `time` parameter is provided the API converts the current time.
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/v1.0
12
+ description: Timezone Converter API Server
13
+ paths:
14
+ /timezone/converter:
15
+ get:
16
+ tags:
17
+ - Timezone APIs
18
+ summary: Convert a timestamp from one timezone to another using any supported location identifier
19
+ description: Convert a given time from one timezone to another using timezone names, GPS coordinates, location addresses, IATA/ICAO airport codes, or UN/LOCODEs.
20
+ operationId: convertTimezone
21
+ parameters:
22
+ - name: format
23
+ in: query
24
+ required: false
25
+ description: 'Format of the response. Possible values: json, xml.'
26
+ schema:
27
+ type: string
28
+ enum:
29
+ - json
30
+ - xml
31
+ default: json
32
+ - name: time
33
+ in: query
34
+ required: false
35
+ description: Time to convert in yyyy-MM-dd HH:mm or yyyy-MM-dd HH:mm:ss format. Omit to convert the current time.
36
+ schema:
37
+ type: string
38
+ - name: tz_from
39
+ in: query
40
+ required: false
41
+ description: Source timezone name in IANA format (e.g., Asia/Kolkata) to convert from.
42
+ schema:
43
+ type: string
44
+ - name: tz_to
45
+ in: query
46
+ required: false
47
+ description: Target timezone name in IANA format (e.g., America/New_York) to convert to.
48
+ schema:
49
+ type: string
50
+ - name: lat_from
51
+ in: query
52
+ required: false
53
+ description: Latitude of source location for coordinate-based conversion.
54
+ schema:
55
+ type: number
56
+ format: float
57
+ - name: long_from
58
+ in: query
59
+ required: false
60
+ description: Longitude of source location for coordinate-based conversion.
61
+ schema:
62
+ type: number
63
+ format: float
64
+ - name: lat_to
65
+ in: query
66
+ required: false
67
+ description: Latitude of target location for coordinate-based conversion.
68
+ schema:
69
+ type: number
70
+ format: float
71
+ - name: long_to
72
+ in: query
73
+ required: false
74
+ description: Longitude of target location for coordinate-based conversion.
75
+ schema:
76
+ type: number
77
+ format: float
78
+ - name: location_from
79
+ in: query
80
+ required: false
81
+ description: Source location address (city and country) for address-based conversion.
82
+ schema:
83
+ type: string
84
+ - name: location_to
85
+ in: query
86
+ required: false
87
+ description: Target location address (city and country) for address-based conversion.
88
+ schema:
89
+ type: string
90
+ - name: iata_from
91
+ in: query
92
+ required: false
93
+ description: Source IATA airport code (3-letter, e.g., JFK) for airport-based conversion.
94
+ schema:
95
+ type: string
96
+ - name: iata_to
97
+ in: query
98
+ required: false
99
+ description: Target IATA airport code (3-letter) for airport-based conversion.
100
+ schema:
101
+ type: string
102
+ - name: icao_from
103
+ in: query
104
+ required: false
105
+ description: Source ICAO airport code (4-letter, e.g., KJFK) for airport-based conversion.
106
+ schema:
107
+ type: string
108
+ - name: icao_to
109
+ in: query
110
+ required: false
111
+ description: Target ICAO airport code (4-letter) for airport-based conversion.
112
+ schema:
113
+ type: string
114
+ - name: locode_from
115
+ in: query
116
+ required: false
117
+ description: Source UN/LOCODE (5-letter) for location code-based conversion.
118
+ schema:
119
+ type: string
120
+ - name: locode_to
121
+ in: query
122
+ required: false
123
+ description: Target UN/LOCODE (5-letter) for location code-based conversion.
124
+ schema:
125
+ type: string
126
+ responses:
127
+ '200':
128
+ description: Successful timezone conversion response
129
+ content:
130
+ application/json:
131
+ schema:
132
+ $ref: '#/components/schemas/TimezoneConversionResponse'
133
+ examples:
134
+ typicalSuccess:
135
+ summary: Whole-hour offset (tz_from/tz_to)
136
+ value:
137
+ original_time: '2026-07-24 12:00:00'
138
+ converted_time: '2026-07-24 17:00:00'
139
+ diff_hour: 5
140
+ diff_min: 300
141
+ fractionalHourOffset:
142
+ summary: Half-hour timezone offset — diff_hour is not always a whole number (e.g. Asia/Kolkata is UTC+5:30)
143
+ value:
144
+ original_time: '2026-07-24 12:00:00'
145
+ converted_time: '2026-07-24 02:30:00'
146
+ diff_hour: 9.5
147
+ diff_min: 570
148
+ '400':
149
+ description: Bad Request — Incomplete parameter combination, invalid timezone name, invalid coordinates, or location address not found
150
+ content:
151
+ application/json:
152
+ schema:
153
+ $ref: '#/components/schemas/ErrorResponse'
154
+ examples:
155
+ IncompleteParameters:
156
+ summary: Incomplete parameters combination
157
+ value:
158
+ message: Parameters' combination is not complete. 'tz_from' and 'tz_to' or 'location_from' and 'location_to' or 'lat_from' and 'long_from' and 'lat_to' and 'long_to' or 'locode_from' and 'locode_to' or 'iata_from' and 'iata_to' or 'icao_from' and 'icao_to' combinations must be provided.
159
+ InvalidSourceTimezone:
160
+ summary: Invalid source timezone
161
+ value:
162
+ message: Check whether your input values are correct; source_time_zone = Invalid/TZ, destined_time_zone = Asia/Karachi, date_time = null
163
+ InvalidCoordinates:
164
+ summary: Invalid coordinates range
165
+ value:
166
+ message: Provided lat_from (999) or long_from (0) is not valid. Latitude must be between -90.0 and +90.0 and longitude must be between -180.0 and +180.0.
167
+ FromLocationNotFound:
168
+ summary: Source (from) location address not found
169
+ value:
170
+ message: We couldn't find the (from) location (ZZZNOTEXIST). Try a city or state level address only.
171
+ ToLocationNotFound:
172
+ summary: Target (to) location address not found
173
+ value:
174
+ message: We couldn't find the (to) location (ZZZNOTEXIST). Try a city or state level address only.
175
+ '404':
176
+ description: Not Found — Airport (IATA/ICAO) code or UN/LOCODE has no matching data
177
+ content:
178
+ application/json:
179
+ schema:
180
+ $ref: '#/components/schemas/ErrorResponse'
181
+ examples:
182
+ InvalidAirportCode:
183
+ summary: IATA/ICAO airport code not found
184
+ value:
185
+ message: '''Data not found for the provided airport code: XXX Please contact at support@ipgeolocation.io if provided airport code exists.'''
186
+ InvalidLocode:
187
+ summary: UN/LOCODE not found
188
+ value:
189
+ message: '''Data not found for the provided LO code: ZZZZZ Please contact at support@ipgeolocation.io if provided LO code exists.'''
190
+ components:
191
+ securitySchemes:
192
+ ApiKeyAuthHeader:
193
+ type: apiKey
194
+ in: header
195
+ name: X-apiKey
196
+ description: Pass your API key via the X-apiKey request header.
197
+ ApiKeyAuthQuery:
198
+ type: apiKey
199
+ in: query
200
+ name: apiKey
201
+ description: Pass your API key via the apiKey query parameter.
202
+ schemas:
203
+ TimezoneConversionResponse:
204
+ type: object
205
+ description: Timezone conversion result containing original and converted timestamps with the difference.
206
+ required:
207
+ - original_time
208
+ - converted_time
209
+ - diff_hour
210
+ - diff_min
211
+ properties:
212
+ original_time:
213
+ type: string
214
+ description: The original date and time before any conversion, in yyyy-MM-dd HH:mm:ss format.
215
+ converted_time:
216
+ type: string
217
+ description: The date and time after conversion to the target timezone, in yyyy-MM-dd HH:mm:ss format.
218
+ diff_hour:
219
+ type: number
220
+ format: float
221
+ description: The absolute difference in hours between the source and target timezones, always non-negative regardless of conversion direction. Can be fractional for half-hour/quarter-hour offset timezones (e.g. 9.5 for Asia/Kolkata to America/New_York).
222
+ diff_min:
223
+ type: integer
224
+ description: The absolute difference between the source and target timezones expressed in total minutes (not a remainder — always diff_hour * 60), always non-negative regardless of conversion direction.
225
+ ErrorResponse:
226
+ type: object
227
+ description: 'Standard error envelope returned by the API on failed requests. '
228
+ required:
229
+ - message
230
+ properties:
231
+ error:
232
+ type: string
233
+ description: Short error category or exception type.
234
+ message:
235
+ type: string
236
+ description: Human-readable error message describing the failure.
237
+ path:
238
+ type: string
239
+ description: API endpoint path that produced the error.
240
+ status:
241
+ type: integer
242
+ description: HTTP status code returned with the error.
243
+ timestamp:
244
+ type: string
245
+ format: date-time
246
+ description: Timestamp when the error occurred (ISO 8601).
247
+ security:
248
+ - ApiKeyAuthHeader: []
249
+ - ApiKeyAuthQuery: []