@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.
Files changed (35) hide show
  1. package/dist/index.cjs +5142 -694
  2. package/dist/index.js +5142 -694
  3. package/dist/specs/commodity/historical-commodity-prices.yaml +30 -11
  4. package/dist/specs/dns/bulk-dns-lookup.yaml +214 -33
  5. package/dist/specs/dns/dns-lookup.yaml +9 -1
  6. package/dist/specs/financial/bulk-vat-rates-country.yaml +22 -4
  7. package/dist/specs/geography/flags-supported.yaml +18 -10
  8. package/dist/specs/screenshot/bulk-screenshot.yaml +464 -220
  9. package/dist/specs/screenshot/website-screenshot.yaml +467 -214
  10. package/dist/specs/timezone/timezone-converter.yaml +36 -8
  11. package/dist/specs/timezone/timezone-lookup.yaml +36 -10
  12. package/dist/specs/weather/time-series-weather.yaml +6 -7
  13. package/dist/specs/whois/asn-lookup.yaml +676 -37
  14. package/dist/specs/whois/bulk-whois-lookup.yaml +480 -2
  15. package/dist/specs/whois/domain-whois-history-lookup.yaml +222 -2
  16. package/dist/specs/whois/reverse-whois.yaml +316 -8
  17. package/dist/specs/whois/whois-domain-lookup.yaml +482 -11
  18. package/dist/specs/whois/whois-ip-lookup.yaml +306 -12
  19. package/package.json +1 -1
  20. package/specs/commodity/historical-commodity-prices.json +37 -11
  21. package/specs/dns/bulk-dns-lookup.json +274 -29
  22. package/specs/dns/dns-lookup.json +13 -2
  23. package/specs/financial/bulk-vat-rates-country.json +33 -4
  24. package/specs/geography/flags-supported.json +20 -13
  25. package/specs/screenshot/bulk-screenshot.json +537 -232
  26. package/specs/screenshot/website-screenshot.json +584 -247
  27. package/specs/timezone/timezone-converter.json +48 -8
  28. package/specs/timezone/timezone-lookup.json +53 -10
  29. package/specs/weather/time-series-weather.json +7 -7
  30. package/specs/whois/asn-lookup.json +878 -54
  31. package/specs/whois/bulk-whois-lookup.json +612 -2
  32. package/specs/whois/domain-whois-history-lookup.json +307 -2
  33. package/specs/whois/reverse-whois.json +453 -9
  34. package/specs/whois/whois-domain-lookup.json +632 -11
  35. package/specs/whois/whois-ip-lookup.json +424 -12
@@ -212,7 +212,7 @@
212
212
  }
213
213
  },
214
214
  "400": {
215
- "description": "Bad Request — Incomplete parameter combination, invalid timezone name, invalid coordinates, or location address not found",
215
+ "description": "Bad Request — Incomplete or mixed parameter combination, invalid timezone name, time, coordinates, or airport / LO code format",
216
216
  "content": {
217
217
  "application/json": {
218
218
  "schema": {
@@ -225,6 +225,16 @@
225
225
  "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."
226
226
  }
227
227
  },
228
+ "MismatchedParameters": {
229
+ "summary": "Only one side of a pair, or parameters from different groups, supplied (for example tz_from alone)",
230
+ "value": {
231
+ "error": "Invalid Param Exception",
232
+ "message": "please pass correct parameters",
233
+ "path": "/v1.0/timezone/converter",
234
+ "status": 400,
235
+ "timestamp": "2026-11-20T09:56:23.268Z"
236
+ }
237
+ },
228
238
  "InvalidSourceTimezone": {
229
239
  "summary": "Invalid source timezone",
230
240
  "value": {
@@ -237,16 +247,34 @@
237
247
  "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."
238
248
  }
239
249
  },
240
- "FromLocationNotFound": {
241
- "summary": "Source (from) location address not found",
250
+ "InvalidTime": {
251
+ "summary": "Unparseable time value",
242
252
  "value": {
243
- "message": "We couldn't find the (from) location (ZZZNOTEXIST). Try a city or state level address only."
253
+ "message": "Check whether your input values are correct; source_time_zone = UTC, destined_time_zone = Asia/Karachi, date_time = notatime"
244
254
  }
245
255
  },
246
- "ToLocationNotFound": {
247
- "summary": "Target (to) location address not found",
256
+ "InvalidIataFormat": {
257
+ "summary": "Malformed IATA code",
248
258
  "value": {
249
- "message": "We couldn't find the (to) location (ZZZNOTEXIST). Try a city or state level address only."
259
+ "message": "Invalid IATA code: INVALID. IATA code must be in the format of AAA."
260
+ }
261
+ },
262
+ "InvalidIcaoFormat": {
263
+ "summary": "Malformed ICAO code",
264
+ "value": {
265
+ "message": "Invalid ICAO code: INVALID. ICAO code must be in the format of AAAA."
266
+ }
267
+ },
268
+ "InvalidLocodeFormat": {
269
+ "summary": "Malformed UN/LOCODE",
270
+ "value": {
271
+ "message": "Invalid LOCode: ABC. LOCode must start with the first two characters as alphabets followed by three alphanumeric characters."
272
+ }
273
+ },
274
+ "NonNumericCoordinate": {
275
+ "summary": "Non-numeric coordinate",
276
+ "value": {
277
+ "message": "Invalid value 'abc' for parameter 'lat_from'."
250
278
  }
251
279
  }
252
280
  }
@@ -259,7 +287,7 @@
259
287
  }
260
288
  },
261
289
  "404": {
262
- "description": "Not Found — Airport (IATA/ICAO) code or UN/LOCODE has no matching data",
290
+ "description": "Not Found — Location address, airport (IATA/ICAO) code, or UN/LOCODE has no matching data",
263
291
  "content": {
264
292
  "application/json": {
265
293
  "schema": {
@@ -277,6 +305,18 @@
277
305
  "value": {
278
306
  "message": "'Data not found for the provided LO code: ZZZZZ Please contact at support@ipgeolocation.io if provided LO code exists.'"
279
307
  }
308
+ },
309
+ "FromLocationNotFound": {
310
+ "summary": "Source (from) location address not found",
311
+ "value": {
312
+ "message": "We couldn't find the (from) location (ZZZNOTEXIST). Try a city or state level address only."
313
+ }
314
+ },
315
+ "ToLocationNotFound": {
316
+ "summary": "Target (to) location address not found",
317
+ "value": {
318
+ "message": "We couldn't find the (to) location (ZZZNOTEXIST). Try a city or state level address only."
319
+ }
280
320
  }
281
321
  }
282
322
  }
@@ -429,7 +429,7 @@
429
429
  }
430
430
  },
431
431
  "400": {
432
- "description": "Bad Request — Invalid coordinates, timezone name, IP address, or airport code",
432
+ "description": "Bad Request — Invalid coordinates, timezone name, IP address, airport code, LO code format, language, or non-numeric coordinate",
433
433
  "content": {
434
434
  "application/json": {
435
435
  "schema": {
@@ -465,6 +465,24 @@
465
465
  "value": {
466
466
  "message": "Invalid ICAO code: INVALID. ICAO code must be in the format of AAAA."
467
467
  }
468
+ },
469
+ "InvalidLoCodeFormat": {
470
+ "summary": "Malformed UN/LOCODE",
471
+ "value": {
472
+ "message": "Invalid LOCode: ABC. LOCode must start with the first two characters as alphabets followed by three alphanumeric characters."
473
+ }
474
+ },
475
+ "InvalidLanguage": {
476
+ "summary": "Unsupported lang value",
477
+ "value": {
478
+ "message": "This 'xx' lang is not valid. Please use 'en' as the default language"
479
+ }
480
+ },
481
+ "NonNumericCoordinate": {
482
+ "summary": "Non-numeric lat or long",
483
+ "value": {
484
+ "message": "Invalid value 'abc' for parameter 'lat'."
485
+ }
468
486
  }
469
487
  }
470
488
  }
@@ -476,7 +494,7 @@
476
494
  }
477
495
  },
478
496
  "404": {
479
- "description": "Not Found — Location address not found, or LO code has no matching data",
497
+ "description": "Not Found — Location address not found, or airport code / LO code has no matching data",
480
498
  "content": {
481
499
  "application/json": {
482
500
  "schema": {
@@ -494,6 +512,35 @@
494
512
  "value": {
495
513
  "message": "'Data not found for the provided LO code: XXXXX Please contact at support@ipgeolocation.io if provided LO code exists.'"
496
514
  }
515
+ },
516
+ "AirportNotFound": {
517
+ "summary": "IATA/ICAO airport code not found",
518
+ "value": {
519
+ "message": "'Data not found for the provided airport code: ZZZ Please contact at support@ipgeolocation.io if provided airport code exists.'"
520
+ }
521
+ }
522
+ }
523
+ }
524
+ },
525
+ "headers": {
526
+ "X-AF-Credits-Cost": {
527
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
528
+ }
529
+ }
530
+ },
531
+ "423": {
532
+ "description": "Locked — Bogon or reserved IP address",
533
+ "content": {
534
+ "application/json": {
535
+ "schema": {
536
+ "$ref": "#/components/schemas/ErrorResponse"
537
+ },
538
+ "examples": {
539
+ "BogonIp": {
540
+ "summary": "Bogon or reserved IP address",
541
+ "value": {
542
+ "message": "'192.168.1.1' is a bogon IP address."
543
+ }
497
544
  }
498
545
  }
499
546
  }
@@ -801,13 +848,11 @@
801
848
  "description": "The full name of the airport."
802
849
  },
803
850
  "latitude": {
804
- "type": "number",
805
- "format": "float",
851
+ "type": "string",
806
852
  "description": "The latitude coordinate of the airport."
807
853
  },
808
854
  "longitude": {
809
- "type": "number",
810
- "format": "float",
855
+ "type": "string",
811
856
  "description": "The longitude coordinate of the airport."
812
857
  },
813
858
  "elevation_ft": {
@@ -873,13 +918,11 @@
873
918
  "description": "The type of location as comma-separated list of facilities (e.g., Port, Rail Terminal, Road Terminal, Airport)."
874
919
  },
875
920
  "latitude": {
876
- "type": "number",
877
- "format": "float",
921
+ "type": "string",
878
922
  "description": "The latitude coordinate of the location."
879
923
  },
880
924
  "longitude": {
881
- "type": "number",
882
- "format": "float",
925
+ "type": "string",
883
926
  "description": "The longitude coordinate of the location."
884
927
  }
885
928
  }
@@ -70,7 +70,7 @@
70
70
  "schema": {
71
71
  "type": "number"
72
72
  },
73
- "description": "Latitude of the location, used together with long. A value of exactly 0 is treated as missing by the live API and returns a 400, so use a small non-zero value (e.g. 0.0001) for equator queries.",
73
+ "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.",
74
74
  "required": false
75
75
  },
76
76
  {
@@ -79,7 +79,7 @@
79
79
  "schema": {
80
80
  "type": "number"
81
81
  },
82
- "description": "Longitude of the location, used together with lat. A value of exactly 0 is treated as missing by the live API and returns a 400, so use a small non-zero value (e.g. 0.0001) for prime-meridian queries.",
82
+ "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.",
83
83
  "required": false
84
84
  },
85
85
  {
@@ -1045,12 +1045,12 @@
1045
1045
  "TimeSeriesData": {
1046
1046
  "type": "object",
1047
1047
  "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.",
1048
- "properties": {
1049
- "date": {
1050
- "$ref": "#/components/schemas/TimeSeriesDay"
1051
- }
1048
+ "additionalProperties": {
1049
+ "$ref": "#/components/schemas/TimeSeriesDay"
1052
1050
  },
1053
- "required": ["date"]
1051
+ "propertyNames": {
1052
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
1053
+ }
1054
1054
  }
1055
1055
  },
1056
1056
  "headers": {