@apifreaks/openapi-specs 0.4.24 → 0.4.26

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 (69) hide show
  1. package/dist/index.cjs +3912 -757
  2. package/dist/index.js +3912 -757
  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 -3
  24. package/dist/specs/phone-number-validation/phone-validation.yaml +49 -3
  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/reverse-whois.yaml +78 -75
  36. package/package.json +1 -1
  37. package/specs/commodity/commodity-fluctuation.json +44 -2
  38. package/specs/commodity/commodity-intraday-rates.json +44 -2
  39. package/specs/commodity/commodity-prices.json +44 -2
  40. package/specs/commodity/commodity-symbols.json +95 -1
  41. package/specs/commodity/commodity-time-series.json +44 -2
  42. package/specs/commodity/historical-commodity-prices.json +44 -2
  43. package/specs/dns/bulk-dns-lookup.json +63 -4
  44. package/specs/dns/dns-history-lookup.json +102 -3
  45. package/specs/dns/dns-lookup.json +96 -6
  46. package/specs/dns/reverse-dns-lookup.json +121 -2
  47. package/specs/financial/bulk-vat-rates-country.json +27 -0
  48. package/specs/financial/financial-apis-supported-countries.json +114 -23
  49. package/specs/financial/iban-validation.json +28 -1
  50. package/specs/financial/swift-code-finder.json +27 -0
  51. package/specs/financial/swift-code-lookup.json +27 -0
  52. package/specs/financial/vat-number-validation.json +72 -0
  53. package/specs/financial/vat-rates-by-ip.json +27 -0
  54. package/specs/financial/vat-rates-country.json +27 -0
  55. package/specs/geocoding/forward-geocoding.json +127 -2
  56. package/specs/geocoding/reverse-geocoding.json +102 -0
  57. package/specs/phone-number-validation/bulk-phone-number-validation.json +35 -3
  58. package/specs/phone-number-validation/phone-validation.json +65 -3
  59. package/specs/scraper/web-scraper.json +110 -7
  60. package/specs/weather/air-quality.json +92 -5
  61. package/specs/weather/astronomy-data.json +122 -1
  62. package/specs/weather/bulk-live-weather.json +227 -3
  63. package/specs/weather/flood-forecast.json +78 -11
  64. package/specs/weather/historical-weather.json +70 -3
  65. package/specs/weather/live-weather.json +85 -17
  66. package/specs/weather/marine-weather.json +95 -8
  67. package/specs/weather/time-series-weather.json +82 -8
  68. package/specs/weather/weather-forecast.json +107 -6
  69. package/specs/whois/reverse-whois.json +71 -92
@@ -2,7 +2,7 @@ openapi: 3.1.1
2
2
  info:
3
3
  title: Reverse WHOIS API - Search Domains by Owner Name, Email, Company, or Keyword
4
4
  version: 1.0.0
5
- description: Search all domain names registered under a particular owner, email, company name, or keyword using reverse WHOIS lookup. Returns matching domains with full registration details (default mode) or a condensed summary (mini mode). Supports exact-match filtering and paginated results (50 per page in default mode, 100 in mini mode). At least one search parameter (keyword, email, owner, or company) is required. A 404 is returned when no domains match the search criteria.
5
+ description: Search current and historical WHOIS records for the domains registered under an email address, company, owner name or keyword. Returns matching domains with full registration details (default mode, up to 50 per page) or key fields (mini mode, up to 100 per page). Send exactly one of keyword, email, owner or company per request. A search with no matches returns 404 and costs no credits.
6
6
  contact:
7
7
  name: APIFreaks Support
8
8
  url: https://apifreaks.com/contact
@@ -22,7 +22,7 @@ paths:
22
22
  - name: format
23
23
  in: query
24
24
  required: false
25
- description: Format of the response.
25
+ description: json (default) or xml. An unsupported value returns 406.
26
26
  schema:
27
27
  type: string
28
28
  enum:
@@ -32,38 +32,40 @@ paths:
32
32
  - name: keyword
33
33
  in: query
34
34
  required: false
35
- description: Keyword to search for in domain names (case-insensitive pattern matching).
35
+ description: Text to find in domain names, 3 to 63 characters, case-insensitive. By default it matches any domain name that contains the text (keyword=airbnb also returns 123airbnb.com); with exact=true it matches only domains named exactly that text, on any extension. Send only one of keyword, email, owner or company.
36
36
  schema:
37
37
  type: string
38
+ minLength: 3
39
+ maxLength: 63
38
40
  - name: email
39
41
  in: query
40
42
  required: false
41
- description: Email address to search for in registrant records (case-insensitive exact or regex match; * wildcard supported).
43
+ description: Registrant email address to search for. A full address matches that address exactly, ignoring case. Use * in the part before the @ to stand for any characters, for example *@example.com or sales*@example.com, and give the domain after the @ in full. Wide patterns on large mail domains can run for minutes. exact has no effect on email. Send only one of keyword, email, owner or company.
42
44
  schema:
43
45
  type: string
44
46
  - name: owner
45
47
  in: query
46
48
  required: false
47
- description: Registrant or owner name to search for (full-text phrase matching).
49
+ description: Registrant (owner) name to search for, ignoring case. By default it matches names that contain the words you send; exact=true returns only records with exactly that name. Some registries put the company in this field, so search it as well as company. Send only one of keyword, email, owner or company.
48
50
  schema:
49
51
  type: string
50
52
  - name: company
51
53
  in: query
52
54
  required: false
53
- description: Organization or company name to search for (full-text phrase matching).
55
+ description: Registrant organization or company name to search for, ignoring case. By default it matches names that contain the words you send, so company=Google also returns Google LLC and Google Inc.; exact=true returns only records filed under exactly that name. Send only one of keyword, email, owner or company.
54
56
  schema:
55
57
  type: string
56
58
  - name: exact
57
59
  in: query
58
60
  required: false
59
- description: Set to true to return only exact matches for keyword, owner, or company. Default is false.
61
+ description: true returns only exact matches for keyword, owner or company. It has no effect on email. Default false.
60
62
  schema:
61
63
  type: boolean
62
64
  default: false
63
65
  - name: mode
64
66
  in: query
65
67
  required: false
66
- description: Response detail level. 'default' returns full WHOIS data per domain; 'mini' returns only key fields.
68
+ description: default returns the full WHOIS record of each match, up to 50 per page. mini returns domain_name, create_date, update_date, expiry_date, name, email and company_name, up to 100 per page. Both cost the same per request. Any other value returns 400.
67
69
  schema:
68
70
  type: string
69
71
  enum:
@@ -73,7 +75,7 @@ paths:
73
75
  - name: page
74
76
  in: query
75
77
  required: false
76
- description: Page number for paginated results.
78
+ description: Page of results to return, starting at 1. total_Pages in the response is the last page. Each page is a separate request and is billed like a search.
77
79
  schema:
78
80
  type: integer
79
81
  default: 1
@@ -149,6 +151,37 @@ paths:
149
151
  name: On behalf of ipgeolocationdatabase.com OWNER
150
152
  email: 720ed14de67db24c4eb07295ecae369f9f1bfe8a4dd5cd0c51f0e4754ee24895@ipgeolocationdatabase.com.whoisproxy.org
151
153
  company_name: c/o whoisproxy.com
154
+ application/xml:
155
+ schema:
156
+ $ref: '#/components/schemas/ReverseWhoisResponse'
157
+ examples:
158
+ miniMode:
159
+ summary: Mini mode as XML (company=Spotify AB, exact=true, mode=mini, format=xml; live 26 Nov 2026, first rows)
160
+ value: |-
161
+ <ReverseWhoisMiniResponse>
162
+ <total_Result>763</total_Result>
163
+ <total_Pages>8</total_Pages>
164
+ <current_Page>1</current_Page>
165
+ <whois_domains_historical>
166
+ <domainInfo>
167
+ <num>1</num>
168
+ <domain_name>preact.com</domain_name>
169
+ <create_date>1997-01-28</create_date>
170
+ <update_date>2026-01-22</update_date>
171
+ <expiry_date>2027-01-29</expiry_date>
172
+ <email>Contact Form located at https://ext.abion.com/whoismail/</email>
173
+ <company_name>Spotify AB</company_name>
174
+ </domainInfo>
175
+ <domainInfo>
176
+ <num>2</num>
177
+ <domain_name>soundtrap.com</domain_name>
178
+ <create_date>1998-04-13</create_date>
179
+ <update_date>2023-07-12</update_date>
180
+ <expiry_date>2024-04-12</expiry_date>
181
+ <company_name>Spotify AB</company_name>
182
+ </domainInfo>
183
+ </whois_domains_historical>
184
+ </ReverseWhoisMiniResponse>
152
185
  headers:
153
186
  X-AF-Credits-Cost:
154
187
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -157,7 +190,7 @@ paths:
157
190
  X-Concurrent-Threads-Active:
158
191
  $ref: '#/components/headers/X-Concurrent-Threads-Active'
159
192
  '400':
160
- description: Bad Request -- Missing API key, missing or invalid search parameters, or an unsupported mode
193
+ description: Bad Request -- Missing API key, missing or invalid search parameters (such as a keyword shorter than 3 characters), or an unsupported mode. No credits charged.
161
194
  content:
162
195
  application/json:
163
196
  schema:
@@ -180,13 +213,19 @@ paths:
180
213
  status: 400
181
214
  timestamp: '2026-11-20T11:12:57.333Z'
182
215
  invalidMode:
183
- summary: Unsupported mode value (live upstream error)
216
+ summary: Unsupported mode value (mode must be default or mini)
184
217
  value:
185
218
  timestamp: '2026-11-20T11:13:00.645837354Z'
186
219
  status: 400
187
220
  error: Invalid Param Exception
188
221
  message: 'Please pass domain param correct value [For Technical Support: support@apifreaks.com]'
189
- path: /v1.0/whois
222
+ keywordTooShort:
223
+ summary: Keyword shorter than 3 characters (keyword=ab)
224
+ value:
225
+ timestamp: '2026-11-26T13:56:58.821893817Z'
226
+ status: 400
227
+ error: Invalid Param Exception
228
+ message: Invalid keyword parameter
190
229
  headers:
191
230
  X-AF-Credits-Cost:
192
231
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -281,7 +320,7 @@ paths:
281
320
  X-Concurrent-Threads-Active:
282
321
  $ref: '#/components/headers/X-Concurrent-Threads-Active'
283
322
  '404':
284
- description: Not Found -- No domains match the search criteria, or the HTTP method is not supported by the endpoint
323
+ description: Not Found -- No domains match the search criteria (no credits charged), or the HTTP method is not supported by the endpoint
285
324
  content:
286
325
  application/json:
287
326
  schema:
@@ -294,7 +333,6 @@ paths:
294
333
  status: 404
295
334
  error: Record Not Found
296
335
  message: Record not found
297
- path: /v1.0/whois
298
336
  resourceNotFound:
299
337
  summary: Unsupported HTTP method (POST, PUT, PATCH, DELETE); the endpoint accepts GET only
300
338
  value:
@@ -332,21 +370,25 @@ paths:
332
370
  $ref: '#/components/headers/X-Concurrent-Threads'
333
371
  X-Concurrent-Threads-Active:
334
372
  $ref: '#/components/headers/X-Concurrent-Threads-Active'
373
+ '408':
374
+ description: Request Timeout -- the search ran too long, usually a wide email pattern on a large mail domain. Narrow the pattern and retry. Costs no credits.
375
+ headers:
376
+ X-AF-Credits-Cost:
377
+ $ref: '#/components/headers/X-AF-Credits-Cost'
378
+ X-Concurrent-Threads:
379
+ $ref: '#/components/headers/X-Concurrent-Threads'
380
+ X-Concurrent-Threads-Active:
381
+ $ref: '#/components/headers/X-Concurrent-Threads-Active'
382
+ content:
383
+ application/json:
384
+ schema:
385
+ $ref: '#/components/schemas/ErrorResponse'
335
386
  '412':
336
387
  description: Precondition Failed -- API plan request limit exceeded and subscription canceled
337
388
  content:
338
389
  application/json:
339
390
  schema:
340
391
  $ref: '#/components/schemas/ErrorResponse'
341
- examples:
342
- planLimitExceeded:
343
- summary: API plan request limit exceeded
344
- value:
345
- timestamp: '2024-07-10T13:47:02.486Z'
346
- status: 412
347
- error: Fetching Whois Data Failed
348
- message: 'You have exceeded the limit of api plan requests and your subscription is canceled. [For Technical Support email at: support@apifreaks.com]'
349
- path: /v1.0/domain/whois/reverse
350
392
  headers:
351
393
  X-AF-Credits-Cost:
352
394
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -361,14 +403,6 @@ paths:
361
403
  schema:
362
404
  $ref: '#/components/schemas/ErrorResponse'
363
405
  examples:
364
- surchargeLimitExceeded:
365
- summary: Surcharge request limit exceeded
366
- value:
367
- timestamp: '2024-07-10T13:47:02.486Z'
368
- status: 413
369
- error: Fetching Whois Data Failed
370
- message: 'You have exceeded the limit of Surcharge Requests [allowed_surcharge_request_no]. Please upgrade your plan. [For Technical Support email at: support@apifreaks.com]'
371
- path: /v1.0/domain/whois/reverse
372
406
  creditsLimitExceeded:
373
407
  summary: API credits request limit exceeded
374
408
  value:
@@ -385,20 +419,16 @@ paths:
385
419
  X-Concurrent-Threads-Active:
386
420
  $ref: '#/components/headers/X-Concurrent-Threads-Active'
387
421
  '429':
388
- description: Too Many Requests -- Per-minute request limit reached
422
+ description: Too Many Requests -- more requests than your plan allows; Reverse WHOIS is limited by concurrency (see X-Concurrent-Threads). Wait for a request to finish, then retry. Costs no credits.
389
423
  content:
390
424
  application/json:
391
425
  schema:
392
426
  $ref: '#/components/schemas/ErrorResponse'
393
427
  examples:
394
- rateLimited:
395
- summary: Per-minute request limit reached
428
+ concurrencyLimit:
429
+ summary: Concurrency limit reached (message as documented for the platform)
396
430
  value:
397
- timestamp: '2024-07-10T13:47:02.486Z'
398
- status: 429
399
- error: Fetching Whois Data Failed
400
- message: Please slow down. Your maximum request limit per minute reached.
401
- path: /v1.0/domain/whois/reverse
431
+ message: Please slow down. Allowed Maximum concurrent request limit has been reached.
402
432
  headers:
403
433
  X-AF-Credits-Cost:
404
434
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -430,15 +460,6 @@ paths:
430
460
  application/json:
431
461
  schema:
432
462
  $ref: '#/components/schemas/ErrorResponse'
433
- examples:
434
- internalError:
435
- summary: Internal server error
436
- value:
437
- timestamp: '2024-07-10T13:47:02.486Z'
438
- status: 500
439
- error: Fetching Whois Data Failed
440
- message: 'Internal Server error occurred. [For Technical Support email at: support@apifreaks.com]'
441
- path: /v1.0/domain/whois/reverse
442
463
  headers:
443
464
  X-AF-Credits-Cost:
444
465
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -452,15 +473,6 @@ paths:
452
473
  application/json:
453
474
  schema:
454
475
  $ref: '#/components/schemas/ErrorResponse'
455
- examples:
456
- serviceUnavailable:
457
- summary: Service unavailable
458
- value:
459
- timestamp: '2024-07-10T13:47:02.486Z'
460
- status: 503
461
- error: Fetching Whois Data Failed
462
- message: 'Service is unavailable. Please try after some time. [For Technical Support email at: support@apifreaks.com]'
463
- path: /v1.0/domain/whois/reverse
464
476
  headers:
465
477
  X-AF-Credits-Cost:
466
478
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -474,15 +486,6 @@ paths:
474
486
  application/json:
475
487
  schema:
476
488
  $ref: '#/components/schemas/ErrorResponse'
477
- examples:
478
- timedOut:
479
- summary: Request timed out
480
- value:
481
- timestamp: '2024-07-10T13:47:02.486Z'
482
- status: 504
483
- error: Fetching Whois Data Failed
484
- message: 'Request is timed-out. [For Technical Support email at: support@apifreaks.com]'
485
- path: /v1.0/domain/whois/reverse
486
489
  headers:
487
490
  X-AF-Credits-Cost:
488
491
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -553,10 +556,10 @@ components:
553
556
  properties:
554
557
  total_Result:
555
558
  type: integer
556
- description: Total number of domain records matching the search criteria.
559
+ description: Number of matching records on the day of the request; it grows as records are added.
557
560
  total_Pages:
558
561
  type: integer
559
- description: Total number of pages available (50 records per page in default mode, 100 in mini mode).
562
+ description: total_Result divided by 50 in default mode or 100 in mini mode, rounded up.
560
563
  current_Page:
561
564
  type: integer
562
565
  description: Current page number in the paginated result.
@@ -577,7 +580,7 @@ components:
577
580
  properties:
578
581
  num:
579
582
  type: integer
580
- description: Sequential result number.
583
+ description: Position of the record on this page, starting at 1 on every page.
581
584
  status:
582
585
  type: boolean
583
586
  description: Indicates whether the WHOIS request was successfully processed.
@@ -588,12 +591,12 @@ components:
588
591
  type:
589
592
  - string
590
593
  - 'null'
591
- description: Timestamp of the WHOIS query (YYYY-MM-DD HH:mm:ss).
594
+ description: When this WHOIS record was collected (YYYY-MM-DD HH:mm:ss); a match can be an older stored record.
592
595
  whois_server:
593
596
  type:
594
597
  - string
595
598
  - 'null'
596
- description: WHOIS server that provided the domain information.
599
+ description: WHOIS server that provided the domain information. Can be an empty string.
597
600
  domain_registered:
598
601
  type:
599
602
  - string
@@ -620,7 +623,7 @@ components:
620
623
  - string
621
624
  - 'null'
622
625
  format: date
623
- description: Date when the domain registration expires if not renewed (YYYY-MM-DD).
626
+ description: Expiry date in the matched record (YYYY-MM-DD); a past date can mean the domain lapsed or that the record is an older snapshot taken before a renewal.
624
627
  domain_registrar:
625
628
  $ref: '#/components/schemas/DomainRegistrar'
626
629
  reseller_contact:
@@ -656,14 +659,14 @@ components:
656
659
  $ref: '#/components/schemas/RegistryData'
657
660
  ReverseWhoisDomainMini:
658
661
  type: object
659
- description: Condensed WHOIS record for a matching domain in mini mode, containing only key registration fields.
662
+ description: Condensed WHOIS record for a matching domain in mini mode, containing only key registration fields. Fields with no value are omitted.
660
663
  required:
661
664
  - num
662
665
  - domain_name
663
666
  properties:
664
667
  num:
665
668
  type: integer
666
- description: Sequential result number.
669
+ description: Position of the record on this page, starting at 1 on every page.
667
670
  domain_name:
668
671
  type: string
669
672
  description: The matched domain name.
@@ -684,7 +687,7 @@ components:
684
687
  - string
685
688
  - 'null'
686
689
  format: date
687
- description: Date when the domain registration expires if not renewed (YYYY-MM-DD).
690
+ description: Expiry date in the matched record (YYYY-MM-DD); a past date can mean the domain lapsed or that the record is an older snapshot taken before a renewal.
688
691
  name:
689
692
  type:
690
693
  - string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apifreaks/openapi-specs",
3
- "version": "0.4.24",
3
+ "version": "0.4.26",
4
4
  "description": "Public OpenAPI 3.1 specifications for all APIFreaks API products.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -142,7 +142,7 @@
142
142
  }
143
143
  },
144
144
  "400": {
145
- "description": "Bad Request — Missing parameters or invalid dates",
145
+ "description": "Bad Request — Missing parameters or invalid dates, or missing API key",
146
146
  "content": {
147
147
  "application/json": {
148
148
  "examples": {
@@ -185,6 +185,16 @@
185
185
  "error": "VALIDATION_ERROR",
186
186
  "message": "Start date cannot be after end date"
187
187
  }
188
+ },
189
+ "missingApiKey": {
190
+ "summary": "API key not sent",
191
+ "value": {
192
+ "error": "Invalid Param Exception",
193
+ "message": "Please provide apiKey",
194
+ "path": "/v2.0/commodity/fluctuation",
195
+ "status": 400,
196
+ "timestamp": "2026-11-25T10:07:00.000Z"
197
+ }
188
198
  }
189
199
  },
190
200
  "schema": {
@@ -198,6 +208,28 @@
198
208
  }
199
209
  }
200
210
  },
211
+ "401": {
212
+ "description": "Unauthorized — API key invalid",
213
+ "content": {
214
+ "application/json": {
215
+ "schema": {
216
+ "$ref": "#/components/schemas/ErrorResponse"
217
+ },
218
+ "examples": {
219
+ "invalidApiKey": {
220
+ "summary": "Invalid API key",
221
+ "value": {
222
+ "error": "API Access Exception",
223
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
224
+ "path": "/v2.0/commodity/fluctuation",
225
+ "status": 401,
226
+ "timestamp": "2026-11-25T10:07:00.000Z"
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+ },
201
233
  "402": {
202
234
  "description": "Payment Required — Maximum symbols per request exceeded",
203
235
  "content": {
@@ -226,7 +258,7 @@
226
258
  }
227
259
  },
228
260
  "404": {
229
- "description": "Not found - Symbol or data not available",
261
+ "description": "Not found - Symbol or data not available, or wrong HTTP method",
230
262
  "content": {
231
263
  "application/json": {
232
264
  "schema": {
@@ -257,6 +289,16 @@
257
289
  "error": "DATA_NOT_FOUND",
258
290
  "message": "No data found for the given date range"
259
291
  }
292
+ },
293
+ "wrongMethod": {
294
+ "summary": "Wrong HTTP method used on the endpoint",
295
+ "value": {
296
+ "error": "Resource Not Found",
297
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
298
+ "path": "/v2.0/commodity/fluctuation",
299
+ "status": 404,
300
+ "timestamp": "2026-11-25T10:07:00.000Z"
301
+ }
260
302
  }
261
303
  }
262
304
  }
@@ -302,7 +302,7 @@
302
302
  }
303
303
  },
304
304
  "400": {
305
- "description": "Bad Request: Missing or invalid parameters, or the symbol has no intraday rates",
305
+ "description": "Bad Request: Missing or invalid parameters, or the symbol has no intraday rates, or missing API key",
306
306
  "content": {
307
307
  "application/json": {
308
308
  "schema": {
@@ -428,6 +428,16 @@
428
428
  "error": "VALIDATION_ERROR",
429
429
  "message": "Invalid interval '7m': use one of 1m, 5m, 10m, 15m, 30m, 45m, 1h, 2h, 4h, 8h, 12h, 1d"
430
430
  }
431
+ },
432
+ "missingApiKey": {
433
+ "summary": "API key not sent",
434
+ "value": {
435
+ "error": "Invalid Param Exception",
436
+ "message": "Please provide apiKey",
437
+ "path": "/v2.0/commodity/rates/intraday",
438
+ "status": 400,
439
+ "timestamp": "2026-11-25T10:07:00.000Z"
440
+ }
431
441
  }
432
442
  }
433
443
  }
@@ -438,8 +448,30 @@
438
448
  }
439
449
  }
440
450
  },
451
+ "401": {
452
+ "description": "Unauthorized — API key invalid",
453
+ "content": {
454
+ "application/json": {
455
+ "schema": {
456
+ "$ref": "#/components/schemas/ErrorResponse"
457
+ },
458
+ "examples": {
459
+ "invalidApiKey": {
460
+ "summary": "Invalid API key",
461
+ "value": {
462
+ "error": "API Access Exception",
463
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
464
+ "path": "/v2.0/commodity/rates/intraday",
465
+ "status": 401,
466
+ "timestamp": "2026-11-25T10:07:00.000Z"
467
+ }
468
+ }
469
+ }
470
+ }
471
+ }
472
+ },
441
473
  "404": {
442
- "description": "Not found: Symbol not supported, or no data for the requested window",
474
+ "description": "Not found: Symbol not supported, or no data for the requested window, or wrong HTTP method",
443
475
  "content": {
444
476
  "application/json": {
445
477
  "schema": {
@@ -470,6 +502,16 @@
470
502
  "error": "DATA_NOT_FOUND",
471
503
  "message": "No intraday data found for the specified window"
472
504
  }
505
+ },
506
+ "wrongMethod": {
507
+ "summary": "Wrong HTTP method used on the endpoint",
508
+ "value": {
509
+ "error": "Resource Not Found",
510
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
511
+ "path": "/v2.0/commodity/rates/intraday",
512
+ "status": 404,
513
+ "timestamp": "2026-11-25T10:07:00.000Z"
514
+ }
473
515
  }
474
516
  }
475
517
  }
@@ -170,7 +170,7 @@
170
170
  }
171
171
  },
172
172
  "400": {
173
- "description": "Bad Request — Missing or invalid query parameters",
173
+ "description": "Bad Request — Missing or invalid query parameters, or missing API key",
174
174
  "content": {
175
175
  "application/json": {
176
176
  "schema": {
@@ -186,6 +186,16 @@
186
186
  "status": 400,
187
187
  "timestamp": "2026-09-14T08:43:43.964Z"
188
188
  }
189
+ },
190
+ "missingApiKey": {
191
+ "summary": "API key not sent",
192
+ "value": {
193
+ "error": "Invalid Param Exception",
194
+ "message": "Please provide apiKey",
195
+ "path": "/v2.0/commodity/rates/latest",
196
+ "status": 400,
197
+ "timestamp": "2026-11-25T10:07:00.000Z"
198
+ }
189
199
  }
190
200
  }
191
201
  }
@@ -196,6 +206,28 @@
196
206
  }
197
207
  }
198
208
  },
209
+ "401": {
210
+ "description": "Unauthorized — API key invalid",
211
+ "content": {
212
+ "application/json": {
213
+ "schema": {
214
+ "$ref": "#/components/schemas/ErrorResponse"
215
+ },
216
+ "examples": {
217
+ "invalidApiKey": {
218
+ "summary": "Invalid API key",
219
+ "value": {
220
+ "error": "API Access Exception",
221
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
222
+ "path": "/v2.0/commodity/rates/latest",
223
+ "status": 401,
224
+ "timestamp": "2026-11-25T10:07:00.000Z"
225
+ }
226
+ }
227
+ }
228
+ }
229
+ }
230
+ },
199
231
  "402": {
200
232
  "description": "Payment Required — Maximum symbols per request exceeded",
201
233
  "content": {
@@ -224,7 +256,7 @@
224
256
  }
225
257
  },
226
258
  "404": {
227
- "description": "Not found - Symbol or quote currency not available",
259
+ "description": "Not found - Symbol or quote currency not available, or wrong HTTP method",
228
260
  "content": {
229
261
  "application/json": {
230
262
  "schema": {
@@ -271,6 +303,16 @@
271
303
  "error": "QUOTE_NOT_FOUND",
272
304
  "message": "The quote currency is invalid, please visit the documentation for a list of valid quote currencies"
273
305
  }
306
+ },
307
+ "wrongMethod": {
308
+ "summary": "Wrong HTTP method used on the endpoint",
309
+ "value": {
310
+ "error": "Resource Not Found",
311
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
312
+ "path": "/v2.0/commodity/rates/latest",
313
+ "status": 404,
314
+ "timestamp": "2026-11-25T10:07:00.000Z"
315
+ }
274
316
  }
275
317
  }
276
318
  }