@apifreaks/openapi-specs 0.4.19 → 0.4.21
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/dist/index.cjs +5142 -694
- package/dist/index.js +5142 -694
- package/dist/specs/commodity/historical-commodity-prices.yaml +30 -11
- package/dist/specs/dns/bulk-dns-lookup.yaml +214 -33
- package/dist/specs/dns/dns-lookup.yaml +9 -1
- package/dist/specs/financial/bulk-vat-rates-country.yaml +22 -4
- package/dist/specs/geography/flags-supported.yaml +18 -10
- package/dist/specs/screenshot/bulk-screenshot.yaml +464 -220
- package/dist/specs/screenshot/website-screenshot.yaml +467 -214
- package/dist/specs/timezone/timezone-converter.yaml +36 -8
- package/dist/specs/timezone/timezone-lookup.yaml +36 -10
- package/dist/specs/weather/time-series-weather.yaml +6 -7
- package/dist/specs/whois/asn-lookup.yaml +676 -37
- package/dist/specs/whois/bulk-whois-lookup.yaml +480 -2
- package/dist/specs/whois/domain-whois-history-lookup.yaml +222 -2
- package/dist/specs/whois/reverse-whois.yaml +316 -8
- package/dist/specs/whois/whois-domain-lookup.yaml +482 -11
- package/dist/specs/whois/whois-ip-lookup.yaml +306 -12
- package/package.json +1 -1
- package/specs/commodity/historical-commodity-prices.json +37 -11
- package/specs/dns/bulk-dns-lookup.json +274 -29
- package/specs/dns/dns-lookup.json +13 -2
- package/specs/financial/bulk-vat-rates-country.json +33 -4
- package/specs/geography/flags-supported.json +20 -13
- package/specs/screenshot/bulk-screenshot.json +537 -232
- package/specs/screenshot/website-screenshot.json +584 -247
- package/specs/timezone/timezone-converter.json +48 -8
- package/specs/timezone/timezone-lookup.json +53 -10
- package/specs/weather/time-series-weather.json +7 -7
- package/specs/whois/asn-lookup.json +878 -54
- package/specs/whois/bulk-whois-lookup.json +612 -2
- package/specs/whois/domain-whois-history-lookup.json +307 -2
- package/specs/whois/reverse-whois.json +453 -9
- package/specs/whois/whois-domain-lookup.json +632 -11
- package/specs/whois/whois-ip-lookup.json +424 -12
|
@@ -149,7 +149,7 @@ paths:
|
|
|
149
149
|
X-AF-Credits-Cost:
|
|
150
150
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
151
151
|
'400':
|
|
152
|
-
description: Bad Request — Incomplete parameter combination, invalid timezone name,
|
|
152
|
+
description: Bad Request — Incomplete or mixed parameter combination, invalid timezone name, time, coordinates, or airport / LO code format
|
|
153
153
|
content:
|
|
154
154
|
application/json:
|
|
155
155
|
schema:
|
|
@@ -159,6 +159,14 @@ paths:
|
|
|
159
159
|
summary: Incomplete parameters combination
|
|
160
160
|
value:
|
|
161
161
|
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.
|
|
162
|
+
MismatchedParameters:
|
|
163
|
+
summary: Only one side of a pair, or parameters from different groups, supplied (for example tz_from alone)
|
|
164
|
+
value:
|
|
165
|
+
error: Invalid Param Exception
|
|
166
|
+
message: please pass correct parameters
|
|
167
|
+
path: /v1.0/timezone/converter
|
|
168
|
+
status: 400
|
|
169
|
+
timestamp: '2026-11-20T09:56:23.268Z'
|
|
162
170
|
InvalidSourceTimezone:
|
|
163
171
|
summary: Invalid source timezone
|
|
164
172
|
value:
|
|
@@ -167,19 +175,31 @@ paths:
|
|
|
167
175
|
summary: Invalid coordinates range
|
|
168
176
|
value:
|
|
169
177
|
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.
|
|
170
|
-
|
|
171
|
-
summary:
|
|
178
|
+
InvalidTime:
|
|
179
|
+
summary: Unparseable time value
|
|
172
180
|
value:
|
|
173
|
-
message:
|
|
174
|
-
|
|
175
|
-
summary:
|
|
181
|
+
message: Check whether your input values are correct; source_time_zone = UTC, destined_time_zone = Asia/Karachi, date_time = notatime
|
|
182
|
+
InvalidIataFormat:
|
|
183
|
+
summary: Malformed IATA code
|
|
176
184
|
value:
|
|
177
|
-
message:
|
|
185
|
+
message: 'Invalid IATA code: INVALID. IATA code must be in the format of AAA.'
|
|
186
|
+
InvalidIcaoFormat:
|
|
187
|
+
summary: Malformed ICAO code
|
|
188
|
+
value:
|
|
189
|
+
message: 'Invalid ICAO code: INVALID. ICAO code must be in the format of AAAA.'
|
|
190
|
+
InvalidLocodeFormat:
|
|
191
|
+
summary: Malformed UN/LOCODE
|
|
192
|
+
value:
|
|
193
|
+
message: 'Invalid LOCode: ABC. LOCode must start with the first two characters as alphabets followed by three alphanumeric characters.'
|
|
194
|
+
NonNumericCoordinate:
|
|
195
|
+
summary: Non-numeric coordinate
|
|
196
|
+
value:
|
|
197
|
+
message: Invalid value 'abc' for parameter 'lat_from'.
|
|
178
198
|
headers:
|
|
179
199
|
X-AF-Credits-Cost:
|
|
180
200
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
181
201
|
'404':
|
|
182
|
-
description: Not Found —
|
|
202
|
+
description: Not Found — Location address, airport (IATA/ICAO) code, or UN/LOCODE has no matching data
|
|
183
203
|
content:
|
|
184
204
|
application/json:
|
|
185
205
|
schema:
|
|
@@ -193,6 +213,14 @@ paths:
|
|
|
193
213
|
summary: UN/LOCODE not found
|
|
194
214
|
value:
|
|
195
215
|
message: '''Data not found for the provided LO code: ZZZZZ Please contact at support@ipgeolocation.io if provided LO code exists.'''
|
|
216
|
+
FromLocationNotFound:
|
|
217
|
+
summary: Source (from) location address not found
|
|
218
|
+
value:
|
|
219
|
+
message: We couldn't find the (from) location (ZZZNOTEXIST). Try a city or state level address only.
|
|
220
|
+
ToLocationNotFound:
|
|
221
|
+
summary: Target (to) location address not found
|
|
222
|
+
value:
|
|
223
|
+
message: We couldn't find the (to) location (ZZZNOTEXIST). Try a city or state level address only.
|
|
196
224
|
headers:
|
|
197
225
|
X-AF-Credits-Cost:
|
|
198
226
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -360,7 +360,7 @@ paths:
|
|
|
360
360
|
X-AF-Credits-Cost:
|
|
361
361
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
362
362
|
'400':
|
|
363
|
-
description: Bad Request — Invalid coordinates, timezone name, IP address, or
|
|
363
|
+
description: Bad Request — Invalid coordinates, timezone name, IP address, airport code, LO code format, language, or non-numeric coordinate
|
|
364
364
|
content:
|
|
365
365
|
application/json:
|
|
366
366
|
schema:
|
|
@@ -386,11 +386,23 @@ paths:
|
|
|
386
386
|
summary: Invalid ICAO code
|
|
387
387
|
value:
|
|
388
388
|
message: 'Invalid ICAO code: INVALID. ICAO code must be in the format of AAAA.'
|
|
389
|
+
InvalidLoCodeFormat:
|
|
390
|
+
summary: Malformed UN/LOCODE
|
|
391
|
+
value:
|
|
392
|
+
message: 'Invalid LOCode: ABC. LOCode must start with the first two characters as alphabets followed by three alphanumeric characters.'
|
|
393
|
+
InvalidLanguage:
|
|
394
|
+
summary: Unsupported lang value
|
|
395
|
+
value:
|
|
396
|
+
message: This 'xx' lang is not valid. Please use 'en' as the default language
|
|
397
|
+
NonNumericCoordinate:
|
|
398
|
+
summary: Non-numeric lat or long
|
|
399
|
+
value:
|
|
400
|
+
message: Invalid value 'abc' for parameter 'lat'.
|
|
389
401
|
headers:
|
|
390
402
|
X-AF-Credits-Cost:
|
|
391
403
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
392
404
|
'404':
|
|
393
|
-
description: Not Found — Location address not found, or LO code has no matching data
|
|
405
|
+
description: Not Found — Location address not found, or airport code / LO code has no matching data
|
|
394
406
|
content:
|
|
395
407
|
application/json:
|
|
396
408
|
schema:
|
|
@@ -404,6 +416,24 @@ paths:
|
|
|
404
416
|
summary: UN/LOCODE not found
|
|
405
417
|
value:
|
|
406
418
|
message: '''Data not found for the provided LO code: XXXXX Please contact at support@ipgeolocation.io if provided LO code exists.'''
|
|
419
|
+
AirportNotFound:
|
|
420
|
+
summary: IATA/ICAO airport code not found
|
|
421
|
+
value:
|
|
422
|
+
message: '''Data not found for the provided airport code: ZZZ Please contact at support@ipgeolocation.io if provided airport code exists.'''
|
|
423
|
+
headers:
|
|
424
|
+
X-AF-Credits-Cost:
|
|
425
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
426
|
+
'423':
|
|
427
|
+
description: Locked — Bogon or reserved IP address
|
|
428
|
+
content:
|
|
429
|
+
application/json:
|
|
430
|
+
schema:
|
|
431
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
432
|
+
examples:
|
|
433
|
+
BogonIp:
|
|
434
|
+
summary: Bogon or reserved IP address
|
|
435
|
+
value:
|
|
436
|
+
message: '''192.168.1.1'' is a bogon IP address.'
|
|
407
437
|
headers:
|
|
408
438
|
X-AF-Credits-Cost:
|
|
409
439
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -633,12 +663,10 @@ components:
|
|
|
633
663
|
type: string
|
|
634
664
|
description: The full name of the airport.
|
|
635
665
|
latitude:
|
|
636
|
-
type:
|
|
637
|
-
format: float
|
|
666
|
+
type: string
|
|
638
667
|
description: The latitude coordinate of the airport.
|
|
639
668
|
longitude:
|
|
640
|
-
type:
|
|
641
|
-
format: float
|
|
669
|
+
type: string
|
|
642
670
|
description: The longitude coordinate of the airport.
|
|
643
671
|
elevation_ft:
|
|
644
672
|
type: integer
|
|
@@ -687,12 +715,10 @@ components:
|
|
|
687
715
|
type: string
|
|
688
716
|
description: The type of location as comma-separated list of facilities (e.g., Port, Rail Terminal, Road Terminal, Airport).
|
|
689
717
|
latitude:
|
|
690
|
-
type:
|
|
691
|
-
format: float
|
|
718
|
+
type: string
|
|
692
719
|
description: The latitude coordinate of the location.
|
|
693
720
|
longitude:
|
|
694
|
-
type:
|
|
695
|
-
format: float
|
|
721
|
+
type: string
|
|
696
722
|
description: The longitude coordinate of the location.
|
|
697
723
|
ErrorResponse:
|
|
698
724
|
type: object
|
|
@@ -52,13 +52,13 @@ paths:
|
|
|
52
52
|
in: query
|
|
53
53
|
schema:
|
|
54
54
|
type: number
|
|
55
|
-
description: Latitude of the location, used together with long. A value of exactly 0 is treated as missing by the live API and
|
|
55
|
+
description: Latitude of the location, used together with long. A value of exactly 0 is treated as missing by the live API, and the location is then inferred from the requester IP instead of returning an error, so use a small non-zero value (e.g. 0.0001) for equator queries.
|
|
56
56
|
required: false
|
|
57
57
|
- name: long
|
|
58
58
|
in: query
|
|
59
59
|
schema:
|
|
60
60
|
type: number
|
|
61
|
-
description: Longitude of the location, used together with lat. A value of exactly 0 is treated as missing by the live API and
|
|
61
|
+
description: Longitude of the location, used together with lat. A value of exactly 0 is treated as missing by the live API, and the location is then inferred from the requester IP instead of returning an error, so use a small non-zero value (e.g. 0.0001) for prime-meridian queries.
|
|
62
62
|
required: false
|
|
63
63
|
- name: ip
|
|
64
64
|
in: query
|
|
@@ -816,11 +816,10 @@ components:
|
|
|
816
816
|
TimeSeriesData:
|
|
817
817
|
type: object
|
|
818
818
|
description: Time-series data object keyed by date (YYYY-MM-DD). Each key is a date and the value is a TimeSeriesDay containing daily aggregates, hourly readings, and astronomy data.
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
- date
|
|
819
|
+
additionalProperties:
|
|
820
|
+
$ref: '#/components/schemas/TimeSeriesDay'
|
|
821
|
+
propertyNames:
|
|
822
|
+
pattern: ^\d{4}-\d{2}-\d{2}$
|
|
824
823
|
headers:
|
|
825
824
|
X-AF-Credits-Cost:
|
|
826
825
|
description: Specifies the number of credits consumed by the current request.
|