@apifreaks/openapi-specs 0.4.23 → 0.4.25

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 (77) hide show
  1. package/dist/index.cjs +4020 -774
  2. package/dist/index.js +4020 -774
  3. package/dist/specs/commodity/commodity-fluctuation.yaml +33 -2
  4. package/dist/specs/commodity/commodity-intraday-rates.yaml +33 -2
  5. package/dist/specs/commodity/commodity-prices.yaml +33 -2
  6. package/dist/specs/commodity/commodity-symbols.yaml +68 -1
  7. package/dist/specs/commodity/commodity-time-series.yaml +33 -2
  8. package/dist/specs/commodity/historical-commodity-prices.yaml +33 -2
  9. package/dist/specs/dns/bulk-dns-lookup.yaml +45 -3
  10. package/dist/specs/dns/dns-history-lookup.yaml +76 -3
  11. package/dist/specs/dns/dns-lookup.yaml +72 -6
  12. package/dist/specs/dns/reverse-dns-lookup.yaml +91 -2
  13. package/dist/specs/financial/bulk-vat-rates-country.yaml +18 -0
  14. package/dist/specs/financial/financial-apis-supported-countries.yaml +75 -17
  15. package/dist/specs/financial/iban-validation.yaml +19 -1
  16. package/dist/specs/financial/swift-code-finder.yaml +18 -0
  17. package/dist/specs/financial/swift-code-lookup.yaml +18 -0
  18. package/dist/specs/financial/vat-number-validation.yaml +48 -0
  19. package/dist/specs/financial/vat-rates-by-ip.yaml +18 -0
  20. package/dist/specs/financial/vat-rates-country.yaml +18 -0
  21. package/dist/specs/geocoding/forward-geocoding.yaml +95 -2
  22. package/dist/specs/geocoding/reverse-geocoding.yaml +71 -0
  23. package/dist/specs/phone-number-validation/bulk-phone-number-validation.yaml +25 -21
  24. package/dist/specs/phone-number-validation/phone-validation.yaml +49 -21
  25. package/dist/specs/scraper/web-scraper.yaml +85 -7
  26. package/dist/specs/weather/air-quality.yaml +71 -5
  27. package/dist/specs/weather/astronomy-data.yaml +84 -1
  28. package/dist/specs/weather/bulk-live-weather.yaml +159 -3
  29. package/dist/specs/weather/flood-forecast.yaml +61 -11
  30. package/dist/specs/weather/historical-weather.yaml +53 -3
  31. package/dist/specs/weather/live-weather.yaml +66 -15
  32. package/dist/specs/weather/marine-weather.yaml +74 -8
  33. package/dist/specs/weather/time-series-weather.yaml +60 -8
  34. package/dist/specs/weather/weather-forecast.yaml +76 -6
  35. package/dist/specs/whois/asn-lookup.yaml +0 -15
  36. package/dist/specs/whois/bulk-whois-lookup.yaml +177 -25
  37. package/dist/specs/whois/domain-whois-history-lookup.yaml +97 -20
  38. package/dist/specs/whois/whois-domain-lookup.yaml +109 -21
  39. package/dist/specs/whois/whois-ip-lookup.yaml +86 -16
  40. package/package.json +1 -1
  41. package/specs/commodity/commodity-fluctuation.json +44 -2
  42. package/specs/commodity/commodity-intraday-rates.json +44 -2
  43. package/specs/commodity/commodity-prices.json +44 -2
  44. package/specs/commodity/commodity-symbols.json +95 -1
  45. package/specs/commodity/commodity-time-series.json +44 -2
  46. package/specs/commodity/historical-commodity-prices.json +44 -2
  47. package/specs/dns/bulk-dns-lookup.json +63 -4
  48. package/specs/dns/dns-history-lookup.json +102 -3
  49. package/specs/dns/dns-lookup.json +96 -6
  50. package/specs/dns/reverse-dns-lookup.json +121 -2
  51. package/specs/financial/bulk-vat-rates-country.json +27 -0
  52. package/specs/financial/financial-apis-supported-countries.json +114 -23
  53. package/specs/financial/iban-validation.json +28 -1
  54. package/specs/financial/swift-code-finder.json +27 -0
  55. package/specs/financial/swift-code-lookup.json +27 -0
  56. package/specs/financial/vat-number-validation.json +72 -0
  57. package/specs/financial/vat-rates-by-ip.json +27 -0
  58. package/specs/financial/vat-rates-country.json +27 -0
  59. package/specs/geocoding/forward-geocoding.json +127 -2
  60. package/specs/geocoding/reverse-geocoding.json +102 -0
  61. package/specs/phone-number-validation/bulk-phone-number-validation.json +35 -30
  62. package/specs/phone-number-validation/phone-validation.json +64 -29
  63. package/specs/scraper/web-scraper.json +110 -7
  64. package/specs/weather/air-quality.json +92 -5
  65. package/specs/weather/astronomy-data.json +122 -1
  66. package/specs/weather/bulk-live-weather.json +227 -3
  67. package/specs/weather/flood-forecast.json +78 -11
  68. package/specs/weather/historical-weather.json +70 -3
  69. package/specs/weather/live-weather.json +85 -17
  70. package/specs/weather/marine-weather.json +95 -8
  71. package/specs/weather/time-series-weather.json +82 -8
  72. package/specs/weather/weather-forecast.json +107 -6
  73. package/specs/whois/asn-lookup.json +0 -22
  74. package/specs/whois/bulk-whois-lookup.json +116 -47
  75. package/specs/whois/domain-whois-history-lookup.json +58 -32
  76. package/specs/whois/whois-domain-lookup.json +99 -39
  77. package/specs/whois/whois-ip-lookup.json +21 -33
@@ -28,7 +28,7 @@
28
28
  "name": "format",
29
29
  "in": "query",
30
30
  "required": false,
31
- "description": "Format of the response. Possible values: json.",
31
+ "description": "Format of the response. Only json is supported.",
32
32
  "schema": {
33
33
  "type": "string",
34
34
  "enum": ["json"],
@@ -61,7 +61,7 @@
61
61
  "schema": {
62
62
  "type": "string"
63
63
  },
64
- "description": "City name, place name, or full address.",
64
+ "description": "City name, place name, or full address. Ignored when lat and long are both provided; takes precedence over ip.",
65
65
  "required": false
66
66
  },
67
67
  {
@@ -70,7 +70,7 @@
70
70
  "schema": {
71
71
  "type": "number"
72
72
  },
73
- "description": "Latitude of the location. Must be supplied together with long — passing only one of the two returns a 400 error.",
73
+ "description": "Latitude of the location. Must be supplied together with long. lat=0 together with long=0 is treated as missing and the location falls back to the requester IP (or to location/ip if given); use a small non-zero value (for example 0.0001) to query the equator or prime meridian.",
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. Must be supplied together with lat — passing only one of the two returns a 400 error.",
82
+ "description": "Longitude of the location. Must be supplied together with lat. lat=0 together with long=0 is treated as missing and the location falls back to the requester IP (or to location/ip if given); use a small non-zero value (for example 0.0001) to query the equator or prime meridian.",
83
83
  "required": false
84
84
  },
85
85
  {
@@ -88,9 +88,19 @@
88
88
  "schema": {
89
89
  "type": "string"
90
90
  },
91
- "description": "IP(v4 or v6) address for location inference.",
91
+ "description": "IP(v4 or v6) address for location inference. Ignored when location or lat/long is provided; if no location parameter is supplied at all, the requester's own IP is used.",
92
92
  "required": false
93
93
  },
94
+ {
95
+ "name": "precision",
96
+ "in": "query",
97
+ "required": false,
98
+ "description": "Data granularity. Air quality data is only available hourly, so hourly is the only accepted value and the parameter is optional: omitting it (or passing an empty value) behaves the same as hourly (current readings, or hourly forecast data when startDate/endDate are given). The value is case-sensitive.",
99
+ "schema": {
100
+ "type": "string",
101
+ "enum": ["hourly"]
102
+ }
103
+ },
94
104
  {
95
105
  "name": "timezone",
96
106
  "in": "query",
@@ -287,6 +297,46 @@
287
297
  "error": "params-exception-error",
288
298
  "path": "/v1.0/weather/air-quality"
289
299
  }
300
+ },
301
+ "InvalidPrecision": {
302
+ "summary": "Unknown or wrongly-cased precision value (e.g. precision=foo or precision=HOURLY)",
303
+ "value": {
304
+ "timestamp": "2026-11-25T10:01:00.000Z",
305
+ "status": 400,
306
+ "message": "Invalid precision",
307
+ "error": "invalid-params",
308
+ "path": "/v1.0/weather/air-quality"
309
+ }
310
+ },
311
+ "UnsupportedPrecision": {
312
+ "summary": "Precision that exists on other weather endpoints but not here (daily or minutely)",
313
+ "value": {
314
+ "timestamp": "2026-11-25T10:01:00.000Z",
315
+ "status": 400,
316
+ "message": "'daily' precision is not supported on this endpoint",
317
+ "error": "invalid-params",
318
+ "path": "/v1.0/weather/air-quality"
319
+ }
320
+ },
321
+ "UnresolvedCoordinates": {
322
+ "summary": "lat/long not a number, or exactly one of them is 0 (e.g. lat=abc&long=10 or lat=0&long=10)",
323
+ "value": {
324
+ "timestamp": "2026-11-25T10:01:00.000Z",
325
+ "status": 400,
326
+ "message": "Please provide both lat and long parameters.",
327
+ "error": "invalid-params",
328
+ "path": "/v1.0/weather/air-quality"
329
+ }
330
+ },
331
+ "MissingApiKey": {
332
+ "summary": "No API key supplied (neither X-apiKey header nor apiKey query parameter)",
333
+ "value": {
334
+ "error": "Invalid Param Exception",
335
+ "message": "Please provide apiKey",
336
+ "path": "/v1.0/weather/air-quality",
337
+ "status": 400,
338
+ "timestamp": "2026-11-25T10:01:00.000Z"
339
+ }
290
340
  }
291
341
  }
292
342
  }
@@ -314,6 +364,43 @@
314
364
  "error": "error",
315
365
  "path": "/v1.0/weather/air-quality"
316
366
  }
367
+ },
368
+ "ResourceNotFound": {
369
+ "summary": "Unsupported HTTP method for this endpoint (e.g. POST to a GET endpoint)",
370
+ "value": {
371
+ "error": "Resource Not Found",
372
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
373
+ "path": "/v1.0/weather/air-quality",
374
+ "status": 404,
375
+ "timestamp": "2026-11-25T10:01:00.000Z"
376
+ }
377
+ }
378
+ }
379
+ }
380
+ },
381
+ "headers": {
382
+ "X-AF-Credits-Cost": {
383
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
384
+ }
385
+ }
386
+ },
387
+ "401": {
388
+ "description": "Unauthorized — The API key is invalid",
389
+ "content": {
390
+ "application/json": {
391
+ "schema": {
392
+ "$ref": "#/components/schemas/ErrorResponse"
393
+ },
394
+ "examples": {
395
+ "invalidApiKey": {
396
+ "summary": "Invalid API key",
397
+ "value": {
398
+ "error": "API Access Exception",
399
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
400
+ "path": "/v1.0/weather/air-quality",
401
+ "status": 401,
402
+ "timestamp": "2026-11-25T10:01:00.000Z"
403
+ }
317
404
  }
318
405
  }
319
406
  }
@@ -33,7 +33,7 @@
33
33
  "default": "json",
34
34
  "enum": ["json", "xml"]
35
35
  },
36
- "description": "Format of the response. Can be \"json\" or \"xml\"."
36
+ "description": "Format of the response. Can be \"json\" or \"xml\" (case-insensitive)."
37
37
  },
38
38
  {
39
39
  "in": "query",
@@ -339,6 +339,11 @@
339
339
  }
340
340
  }
341
341
  }
342
+ },
343
+ "application/xml": {
344
+ "schema": {
345
+ "$ref": "#/components/schemas/AstronomyResponse"
346
+ }
342
347
  }
343
348
  },
344
349
  "headers": {
@@ -372,6 +377,58 @@
372
377
  "value": {
373
378
  "message": "You must provide date in the 'yyyy-MM-dd' format"
374
379
  }
380
+ },
381
+ "invalidLongitude": {
382
+ "summary": "Longitude out of range",
383
+ "value": {
384
+ "message": "Longitude must be between -180 and 180."
385
+ }
386
+ },
387
+ "missingLong": {
388
+ "summary": "lat supplied without long",
389
+ "value": {
390
+ "message": "'long' must not be null"
391
+ }
392
+ },
393
+ "missingLat": {
394
+ "summary": "long supplied without lat",
395
+ "value": {
396
+ "message": "'lat' must not be null"
397
+ }
398
+ },
399
+ "nonNumericLat": {
400
+ "summary": "Non-numeric lat, long or elevation (parameter name in the message)",
401
+ "value": {
402
+ "message": "Invalid value 'abc' for parameter 'lat'."
403
+ }
404
+ },
405
+ "elevationTooHigh": {
406
+ "summary": "elevation above 10000",
407
+ "value": {
408
+ "message": "Elevation cannot be greater than 10000 meters."
409
+ }
410
+ },
411
+ "invalidLang": {
412
+ "summary": "Unsupported lang value",
413
+ "value": {
414
+ "message": "This 'zz' lang is not valid. Please use 'en' as the default language"
415
+ }
416
+ },
417
+ "invalidTimeZone": {
418
+ "summary": "Unknown time_zone value",
419
+ "value": {
420
+ "message": "Check whether your input value is correct; time_zone_name = Bad"
421
+ }
422
+ },
423
+ "missingApiKey": {
424
+ "summary": "No API key supplied",
425
+ "value": {
426
+ "error": "Invalid Param Exception",
427
+ "message": "Please provide apiKey",
428
+ "path": "/v2.0/geolocation/astronomy",
429
+ "status": 400,
430
+ "timestamp": "2026-11-25T10:01:00.000Z"
431
+ }
375
432
  }
376
433
  }
377
434
  }
@@ -395,6 +452,70 @@
395
452
  "value": {
396
453
  "message": "We couldn't find the location (ZZZNOTEXIST). Try a city or state level location address only."
397
454
  }
455
+ },
456
+ "resourceNotFound": {
457
+ "summary": "Unsupported HTTP method (e.g. POST)",
458
+ "value": {
459
+ "error": "Resource Not Found",
460
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
461
+ "path": "/v2.0/geolocation/astronomy",
462
+ "status": 404,
463
+ "timestamp": "2026-11-25T10:01:00.000Z"
464
+ }
465
+ }
466
+ }
467
+ }
468
+ },
469
+ "headers": {
470
+ "X-AF-Credits-Cost": {
471
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
472
+ }
473
+ }
474
+ },
475
+ "401": {
476
+ "description": "Unauthorized — The API key is invalid",
477
+ "content": {
478
+ "application/json": {
479
+ "schema": {
480
+ "$ref": "#/components/schemas/ErrorResponse"
481
+ },
482
+ "examples": {
483
+ "invalidApiKey": {
484
+ "summary": "Invalid API key",
485
+ "value": {
486
+ "error": "API Access Exception",
487
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
488
+ "path": "/v2.0/geolocation/astronomy",
489
+ "status": 401,
490
+ "timestamp": "2026-11-25T10:01:00.000Z"
491
+ }
492
+ }
493
+ }
494
+ }
495
+ },
496
+ "headers": {
497
+ "X-AF-Credits-Cost": {
498
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
499
+ }
500
+ }
501
+ },
502
+ "406": {
503
+ "description": "Not Acceptable — Unsupported format value",
504
+ "content": {
505
+ "application/json": {
506
+ "schema": {
507
+ "$ref": "#/components/schemas/ErrorResponse"
508
+ },
509
+ "examples": {
510
+ "unsupportedFormat": {
511
+ "summary": "format=csv (only json and xml are supported)",
512
+ "value": {
513
+ "error": "Unsupported Media Type",
514
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
515
+ "path": "/v2.0/geolocation/astronomy",
516
+ "status": 406,
517
+ "timestamp": "2026-11-25T10:01:00.000Z"
518
+ }
398
519
  }
399
520
  }
400
521
  }
@@ -27,7 +27,7 @@
27
27
  "name": "format",
28
28
  "in": "query",
29
29
  "required": false,
30
- "description": "Format of the response. Possible values: json.",
30
+ "description": "Format of the response. Only json is supported.",
31
31
  "schema": {
32
32
  "type": "string",
33
33
  "enum": ["json"],
@@ -165,6 +165,32 @@
165
165
  }
166
166
  ]
167
167
  }
168
+ },
169
+ "invalidTimezone": {
170
+ "summary": "timezone query parameter is invalid — request still returns 200 with an error object per item",
171
+ "value": {
172
+ "bulk": [
173
+ {
174
+ "error": "Check whether your input value is correct; timezone = Bad"
175
+ }
176
+ ]
177
+ }
178
+ },
179
+ "partialFailureMixed": {
180
+ "summary": "Per-item errors: unknown location, only one of lat/long, empty item, ip + lat/long",
181
+ "value": {
182
+ "bulk": [
183
+ {
184
+ "error": "Location not found"
185
+ },
186
+ {
187
+ "error": "Missing required location parameters"
188
+ },
189
+ {
190
+ "error": "Missing required location parameters"
191
+ }
192
+ ]
193
+ }
168
194
  }
169
195
  }
170
196
  }
@@ -176,7 +202,7 @@
176
202
  }
177
203
  },
178
204
  "400": {
179
- "description": "Bad Request — Missing/malformed request body, or a non-object item in the locations array",
205
+ "description": "Bad Request — Missing/malformed request body, an empty locations array, or an invalid item in the locations array (non-object item, unknown property, out-of-range or non-numeric lat/long, invalid ip, empty location)",
180
206
  "content": {
181
207
  "application/json": {
182
208
  "schema": {
@@ -202,6 +228,204 @@
202
228
  "error": "error",
203
229
  "path": "/v1.0/weather/current/bulk"
204
230
  }
231
+ },
232
+ "EmptyLocations": {
233
+ "summary": "locations missing, empty, not an array, or the body is not an object (same response as InvalidBody)",
234
+ "value": {
235
+ "error": "Invalid request body Exception",
236
+ "message": "Please provide data in required format in request body",
237
+ "path": "/v1.0/weather/current",
238
+ "status": 400,
239
+ "timestamp": "2026-11-25T10:01:00.000Z"
240
+ }
241
+ },
242
+ "ItemLatOutOfRange": {
243
+ "summary": "lat outside -90..90 in an item (the whole request fails, unlike an unresolvable location)",
244
+ "value": {
245
+ "timestamp": "2026-11-25T10:01:00.000Z",
246
+ "status": 400,
247
+ "message": "\"locations[1].lat\" must be less than or equal to 90",
248
+ "error": "error",
249
+ "path": "/v1.0/weather/current/bulk"
250
+ }
251
+ },
252
+ "ItemLongOutOfRange": {
253
+ "summary": "long outside -180..180 in an item",
254
+ "value": {
255
+ "timestamp": "2026-11-25T10:01:00.000Z",
256
+ "status": 400,
257
+ "message": "\"locations[0].long\" must be less than or equal to 180",
258
+ "error": "error",
259
+ "path": "/v1.0/weather/current/bulk"
260
+ }
261
+ },
262
+ "ItemLatNotNumber": {
263
+ "summary": "lat or long not a number in an item",
264
+ "value": {
265
+ "timestamp": "2026-11-25T10:01:00.000Z",
266
+ "status": 400,
267
+ "message": "\"locations[0].lat\" must be a number",
268
+ "error": "error",
269
+ "path": "/v1.0/weather/current/bulk"
270
+ }
271
+ },
272
+ "ItemInvalidIp": {
273
+ "summary": "Invalid ip in an item",
274
+ "value": {
275
+ "timestamp": "2026-11-25T10:01:00.000Z",
276
+ "status": 400,
277
+ "message": "\"locations[2].ip\" must be a valid ip address of one of the following versions [ipv4, ipv6] with a optional CIDR",
278
+ "error": "error",
279
+ "path": "/v1.0/weather/current/bulk"
280
+ }
281
+ },
282
+ "ItemUnknownField": {
283
+ "summary": "Unknown property in an item",
284
+ "value": {
285
+ "timestamp": "2026-11-25T10:01:00.000Z",
286
+ "status": 400,
287
+ "message": "\"locations[0].bogus\" is not allowed",
288
+ "error": "error",
289
+ "path": "/v1.0/weather/current/bulk"
290
+ }
291
+ },
292
+ "ItemTimezoneNotAllowed": {
293
+ "summary": "timezone set on an item instead of as a query parameter",
294
+ "value": {
295
+ "timestamp": "2026-11-25T10:01:00.000Z",
296
+ "status": 400,
297
+ "message": "\"locations[0].timezone\" is not allowed",
298
+ "error": "error",
299
+ "path": "/v1.0/weather/current/bulk"
300
+ }
301
+ },
302
+ "ItemEmptyLocation": {
303
+ "summary": "Empty location string in an item",
304
+ "value": {
305
+ "timestamp": "2026-11-25T10:01:00.000Z",
306
+ "status": 400,
307
+ "message": "\"locations[0].location\" is not allowed to be empty",
308
+ "error": "error",
309
+ "path": "/v1.0/weather/current/bulk"
310
+ }
311
+ },
312
+ "MissingApiKey": {
313
+ "summary": "No API key supplied (neither X-apiKey header nor apiKey query parameter)",
314
+ "value": {
315
+ "error": "Invalid Param Exception",
316
+ "message": "Please provide apiKey",
317
+ "path": "/v1.0/weather/current",
318
+ "status": 400,
319
+ "timestamp": "2026-11-25T10:01:00.000Z"
320
+ }
321
+ }
322
+ }
323
+ }
324
+ },
325
+ "headers": {
326
+ "X-AF-Credits-Cost": {
327
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
328
+ }
329
+ }
330
+ },
331
+ "401": {
332
+ "description": "Unauthorized — The API key is invalid",
333
+ "content": {
334
+ "application/json": {
335
+ "schema": {
336
+ "$ref": "#/components/schemas/ErrorResponse"
337
+ },
338
+ "examples": {
339
+ "invalidApiKey": {
340
+ "summary": "Invalid API key",
341
+ "value": {
342
+ "error": "API Access Exception",
343
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
344
+ "path": "/v1.0/weather/current",
345
+ "status": 401,
346
+ "timestamp": "2026-11-25T10:01:00.000Z"
347
+ }
348
+ }
349
+ }
350
+ }
351
+ },
352
+ "headers": {
353
+ "X-AF-Credits-Cost": {
354
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
355
+ }
356
+ }
357
+ },
358
+ "404": {
359
+ "description": "Not Found — Unsupported HTTP method (e.g. PUT)",
360
+ "content": {
361
+ "application/json": {
362
+ "schema": {
363
+ "$ref": "#/components/schemas/ErrorResponse"
364
+ },
365
+ "examples": {
366
+ "ResourceNotFound": {
367
+ "summary": "Unsupported HTTP method for this endpoint (e.g. POST to a GET endpoint)",
368
+ "value": {
369
+ "error": "Resource Not Found",
370
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
371
+ "path": "/v1.0/weather/current",
372
+ "status": 404,
373
+ "timestamp": "2026-11-25T10:01:00.000Z"
374
+ }
375
+ }
376
+ }
377
+ }
378
+ },
379
+ "headers": {
380
+ "X-AF-Credits-Cost": {
381
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
382
+ }
383
+ }
384
+ },
385
+ "413": {
386
+ "description": "Payload Too Large — More than 50 locations in the request",
387
+ "content": {
388
+ "application/json": {
389
+ "schema": {
390
+ "$ref": "#/components/schemas/ErrorResponse"
391
+ },
392
+ "examples": {
393
+ "tooManyLocations": {
394
+ "summary": "51 or more items in locations",
395
+ "value": {
396
+ "error": "Payload too large Exception",
397
+ "message": "Maximum request body size limit exceeded",
398
+ "path": "/v1.0/weather/current",
399
+ "status": 413,
400
+ "timestamp": "2026-11-25T10:01:00.000Z"
401
+ }
402
+ }
403
+ }
404
+ }
405
+ },
406
+ "headers": {
407
+ "X-AF-Credits-Cost": {
408
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
409
+ }
410
+ }
411
+ },
412
+ "500": {
413
+ "description": "Internal Server Error — Request body is not sent as JSON (missing or non-JSON Content-Type header)",
414
+ "content": {
415
+ "application/json": {
416
+ "schema": {
417
+ "$ref": "#/components/schemas/ErrorResponse"
418
+ },
419
+ "examples": {
420
+ "missingContentType": {
421
+ "summary": "POST without Content-Type: application/json; note the path in this response is duplicated",
422
+ "value": {
423
+ "timestamp": "2026-11-25T10:01:00.000Z",
424
+ "status": 500,
425
+ "message": "Internal Server Error",
426
+ "error": "internal-server-error",
427
+ "path": "/v1.0/weather/v1.0/weather/current/bulk"
428
+ }
205
429
  }
206
430
  }
207
431
  }
@@ -250,7 +474,7 @@
250
474
  },
251
475
  "BulkLocationItem": {
252
476
  "type": "object",
253
- "description": "Each object specifies one location using exactly one of the supported lookup methods: location alone, lat+long together, or ip alone. None of these fields is required at the schema level — an item missing all of them is still accepted by the request, but resolves to a per-item error object in the response (see BulkCurrentResponse) rather than failing the whole request.",
477
+ "description": "Each object specifies one location using one of the supported lookup methods: location alone, lat+long together, or ip alone. If more than one is given, lat+long takes precedence over location, and location over ip. None of these fields is required at the schema level — an item missing all of them (or with only one of lat/long, or with lat or long equal to 0) is still accepted by the request, but resolves to a per-item error object in the response (see BulkCurrentResponse) rather than failing the whole request. Only the properties below are allowed (e.g. a per-item timezone is rejected with a 400; use the timezone query parameter instead), lat must be between -90 and 90, long between -180 and 180, ip a valid IPv4/IPv6 address, and location a non-empty string, otherwise the whole request fails with a 400.",
254
478
  "properties": {
255
479
  "location": {
256
480
  "type": "string",