@apifreaks/openapi-specs 0.4.20 → 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 +4020 -214
- package/dist/index.js +4020 -214
- 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/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/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
|
@@ -32,7 +32,7 @@ paths:
|
|
|
32
32
|
- name: ip
|
|
33
33
|
in: query
|
|
34
34
|
required: true
|
|
35
|
-
description: IPv4 or IPv6 address to look up.
|
|
35
|
+
description: 'IPv4 or IPv6 address to look up. Private, loopback and reserved addresses are not rejected: they return a 200 with the IANA special-use record.'
|
|
36
36
|
schema:
|
|
37
37
|
type: string
|
|
38
38
|
responses:
|
|
@@ -173,25 +173,38 @@ paths:
|
|
|
173
173
|
X-AF-Credits-Cost:
|
|
174
174
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
175
175
|
'206':
|
|
176
|
-
description: Partial Content -- The
|
|
176
|
+
description: Partial Content -- The registry query succeeded but the registrar query failed, so some details (for example contacts, routes or whois_raw_response) may be missing. Retry later for the full record.
|
|
177
177
|
content:
|
|
178
178
|
application/json:
|
|
179
179
|
schema:
|
|
180
|
-
$ref: '#/components/schemas/
|
|
180
|
+
$ref: '#/components/schemas/IpWhoisPartialResponse'
|
|
181
181
|
examples:
|
|
182
182
|
partialResponse:
|
|
183
|
-
summary: Partial WHOIS response
|
|
183
|
+
summary: Partial WHOIS response (inet_nums only)
|
|
184
184
|
value:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
status: true
|
|
186
|
+
ip_address: 8.8.8.8
|
|
187
|
+
query_time: '2024-02-01 07:50:47'
|
|
188
|
+
whois_server: whois.arin.net
|
|
189
|
+
inet_nums:
|
|
190
|
+
- start_ip: 8.8.8.0
|
|
191
|
+
end_ip: 8.8.8.255
|
|
192
|
+
cidr:
|
|
193
|
+
- 8.8.8.0/24
|
|
194
|
+
net_name: GOGL
|
|
195
|
+
net_handle: NET-8-8-8-0-2
|
|
196
|
+
status: Direct Allocation
|
|
197
|
+
organization: Google LLC (GOGL)
|
|
198
|
+
date_created: '2023-12-28'
|
|
199
|
+
date_updated: '2023-12-28'
|
|
200
|
+
source: https://rdap.arin.net/registry/ip/8.8.8.0
|
|
201
|
+
parents:
|
|
202
|
+
- NET8 (NET-8-0-0-0-0)
|
|
190
203
|
headers:
|
|
191
204
|
X-AF-Credits-Cost:
|
|
192
205
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
193
206
|
'400':
|
|
194
|
-
description: Bad Request -- Missing or invalid ip parameter
|
|
207
|
+
description: Bad Request -- Missing or invalid ip parameter, or no apiKey
|
|
195
208
|
content:
|
|
196
209
|
application/json:
|
|
197
210
|
schema:
|
|
@@ -213,9 +226,248 @@ paths:
|
|
|
213
226
|
error: Input parameter is not valid
|
|
214
227
|
message: Request-param 'ip' (not-an-ip) is not an IP address
|
|
215
228
|
path: /v1.0/ip-whois
|
|
229
|
+
missingApiKey:
|
|
230
|
+
summary: Missing apiKey
|
|
231
|
+
value:
|
|
232
|
+
error: Invalid Param Exception
|
|
233
|
+
message: Please provide apiKey
|
|
234
|
+
path: /v1.0/ip/whois/live
|
|
235
|
+
status: 400
|
|
236
|
+
timestamp: '2026-11-19T09:08:36.219Z'
|
|
237
|
+
headers:
|
|
238
|
+
X-AF-Credits-Cost:
|
|
239
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
240
|
+
'401':
|
|
241
|
+
description: Unauthorized -- invalid apiKey
|
|
242
|
+
content:
|
|
243
|
+
application/json:
|
|
244
|
+
schema:
|
|
245
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
246
|
+
examples:
|
|
247
|
+
invalidApiKey:
|
|
248
|
+
summary: Invalid apiKey
|
|
249
|
+
value:
|
|
250
|
+
error: API Access Exception
|
|
251
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
252
|
+
path: /v1.0/ip/whois/live
|
|
253
|
+
status: 401
|
|
254
|
+
timestamp: '2026-11-20T10:10:38.861Z'
|
|
255
|
+
inactiveApiKey:
|
|
256
|
+
summary: Inactive API key
|
|
257
|
+
value:
|
|
258
|
+
error: API Access Exception
|
|
259
|
+
message: Provided API key is inactive.
|
|
260
|
+
path: /v1.0/ip/whois/live
|
|
261
|
+
status: 401
|
|
262
|
+
timestamp: '2026-11-20T10:10:38.861Z'
|
|
263
|
+
noSubscription:
|
|
264
|
+
summary: No subscription or credits
|
|
265
|
+
value:
|
|
266
|
+
error: API Access Exception
|
|
267
|
+
message: Please buy a subscription plan or add api credits, then use this api key.
|
|
268
|
+
path: /v1.0/ip/whois/live
|
|
269
|
+
status: 401
|
|
270
|
+
timestamp: '2026-11-20T10:10:38.861Z'
|
|
271
|
+
subscriptionDeactivated:
|
|
272
|
+
summary: Subscription deactivated
|
|
273
|
+
value:
|
|
274
|
+
error: API Access Exception
|
|
275
|
+
message: Your subscription is deactivated. Please buy new plan or add api credits for using apifreaks APIs.
|
|
276
|
+
path: /v1.0/ip/whois/live
|
|
277
|
+
status: 401
|
|
278
|
+
timestamp: '2026-11-20T10:10:38.861Z'
|
|
279
|
+
subscriptionPaymentFailure:
|
|
280
|
+
summary: Subscription deactivated after payment failures
|
|
281
|
+
value:
|
|
282
|
+
error: API Access Exception
|
|
283
|
+
message: Your subscription is deactivated due to much time payment failure. Please buy a new plan or add api credits for using apifreaks APIs.
|
|
284
|
+
path: /v1.0/ip/whois/live
|
|
285
|
+
status: 401
|
|
286
|
+
timestamp: '2026-11-20T10:10:38.861Z'
|
|
287
|
+
accountDeactivated:
|
|
288
|
+
summary: Account deactivated
|
|
289
|
+
value:
|
|
290
|
+
error: API Access Exception
|
|
291
|
+
message: Your account is deactivated.
|
|
292
|
+
path: /v1.0/ip/whois/live
|
|
293
|
+
status: 401
|
|
294
|
+
timestamp: '2026-11-20T10:10:38.861Z'
|
|
295
|
+
blockedSuspiciousActivity:
|
|
296
|
+
summary: Blocked for suspicious activity
|
|
297
|
+
value:
|
|
298
|
+
error: API Access Exception
|
|
299
|
+
message: You are blocked due to suspicious activity.
|
|
300
|
+
path: /v1.0/ip/whois/live
|
|
301
|
+
status: 401
|
|
302
|
+
timestamp: '2026-11-20T10:10:38.861Z'
|
|
303
|
+
apiRecordNotFound:
|
|
304
|
+
summary: API record not found
|
|
305
|
+
value:
|
|
306
|
+
error: API Access Exception
|
|
307
|
+
message: Api record not found.
|
|
308
|
+
path: /v1.0/ip/whois/live
|
|
309
|
+
status: 401
|
|
310
|
+
timestamp: '2026-11-20T10:10:38.861Z'
|
|
311
|
+
'404':
|
|
312
|
+
description: Not Found -- Gateway response when the endpoint is called with an HTTP method other than GET (POST, PUT and DELETE were verified live)
|
|
313
|
+
content:
|
|
314
|
+
application/json:
|
|
315
|
+
schema:
|
|
316
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
317
|
+
examples:
|
|
318
|
+
resourceNotFound:
|
|
319
|
+
summary: Wrong HTTP method or path
|
|
320
|
+
value:
|
|
321
|
+
error: Resource Not Found
|
|
322
|
+
message: The requested resource could not be found. Please verify the URL and try again.
|
|
323
|
+
path: /v1.0/ip/whois/live
|
|
324
|
+
status: 404
|
|
325
|
+
timestamp: '2026-11-20T11:13:06.175Z'
|
|
326
|
+
'406':
|
|
327
|
+
description: Not Acceptable -- format is not json or xml
|
|
328
|
+
content:
|
|
329
|
+
application/json:
|
|
330
|
+
schema:
|
|
331
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
332
|
+
examples:
|
|
333
|
+
invalidFormat:
|
|
334
|
+
summary: Unsupported format
|
|
335
|
+
value:
|
|
336
|
+
error: Unsupported Media Type
|
|
337
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
338
|
+
path: /v1.0/ip/whois/live
|
|
339
|
+
status: 406
|
|
340
|
+
timestamp: '2026-11-19T09:08:38.549Z'
|
|
216
341
|
headers:
|
|
217
342
|
X-AF-Credits-Cost:
|
|
218
343
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
344
|
+
'408':
|
|
345
|
+
description: Request Timeout -- The WHOIS data could not be fetched
|
|
346
|
+
content:
|
|
347
|
+
application/json:
|
|
348
|
+
schema:
|
|
349
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
350
|
+
examples:
|
|
351
|
+
fetchFailed:
|
|
352
|
+
summary: Unable to fetch whois data
|
|
353
|
+
value:
|
|
354
|
+
timestamp: '2024-07-10T13:47:02.486Z'
|
|
355
|
+
status: 408
|
|
356
|
+
error: Fetching Whois Data Failed
|
|
357
|
+
message: 'Unable to fetch whois data.Please try again [For Technical Support: support@apifreaks.com]'
|
|
358
|
+
path: /v1.0/ip/whois/live
|
|
359
|
+
'412':
|
|
360
|
+
description: Precondition Failed -- The API plan request limit is exceeded and the subscription is canceled
|
|
361
|
+
content:
|
|
362
|
+
application/json:
|
|
363
|
+
schema:
|
|
364
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
365
|
+
examples:
|
|
366
|
+
planLimitExceeded:
|
|
367
|
+
summary: API plan request limit exceeded
|
|
368
|
+
value:
|
|
369
|
+
timestamp: '2024-07-10T13:47:02.486Z'
|
|
370
|
+
status: 412
|
|
371
|
+
error: Fetching Whois Data Failed
|
|
372
|
+
message: 'You have exceeded the limit of api plan requests and your subscription is canceled. [For Technical Support email at: support@apifreaks.com]'
|
|
373
|
+
path: /v1.0/ip/whois/live
|
|
374
|
+
'413':
|
|
375
|
+
description: Payload Too Large -- A request or surcharge limit is exceeded
|
|
376
|
+
content:
|
|
377
|
+
application/json:
|
|
378
|
+
schema:
|
|
379
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
380
|
+
examples:
|
|
381
|
+
surchargeLimitExceeded:
|
|
382
|
+
summary: Surcharge request limit exceeded
|
|
383
|
+
value:
|
|
384
|
+
timestamp: '2024-07-10T13:47:02.486Z'
|
|
385
|
+
status: 413
|
|
386
|
+
error: Fetching Whois Data Failed
|
|
387
|
+
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]'
|
|
388
|
+
path: /v1.0/ip/whois/live
|
|
389
|
+
'429':
|
|
390
|
+
description: Too Many Requests -- The per-minute request limit is reached
|
|
391
|
+
content:
|
|
392
|
+
application/json:
|
|
393
|
+
schema:
|
|
394
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
395
|
+
examples:
|
|
396
|
+
rateLimited:
|
|
397
|
+
summary: Per-minute request limit reached
|
|
398
|
+
value:
|
|
399
|
+
timestamp: '2024-07-10T13:47:02.486Z'
|
|
400
|
+
status: 429
|
|
401
|
+
error: Fetching Whois Data Failed
|
|
402
|
+
message: Please slow down. Your maximum request limit per minute reached.
|
|
403
|
+
path: /v1.0/ip/whois/live
|
|
404
|
+
'499':
|
|
405
|
+
description: Client Closed Request -- The request or connection timeout set by the client is too short
|
|
406
|
+
content:
|
|
407
|
+
application/json:
|
|
408
|
+
schema:
|
|
409
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
410
|
+
examples:
|
|
411
|
+
clientTimeoutTooShort:
|
|
412
|
+
summary: Client timeout too short
|
|
413
|
+
value:
|
|
414
|
+
message: The request or connection timeout you’ve set is too short, which is causing the server to close the connection before completing the response. Please increase the timeout duration to ensure successful communication with the server.
|
|
415
|
+
'500':
|
|
416
|
+
description: Internal Server Error
|
|
417
|
+
content:
|
|
418
|
+
application/json:
|
|
419
|
+
schema:
|
|
420
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
421
|
+
examples:
|
|
422
|
+
internalServerError:
|
|
423
|
+
summary: Internal server error
|
|
424
|
+
value:
|
|
425
|
+
timestamp: '2024-07-10T13:47:02.486Z'
|
|
426
|
+
status: 500
|
|
427
|
+
error: Fetching Whois Data Failed
|
|
428
|
+
message: 'Internal Server error occurred. [For Technical Support email at: support@apifreaks.com]'
|
|
429
|
+
path: /v1.0/ip/whois/live
|
|
430
|
+
'503':
|
|
431
|
+
description: Service Unavailable
|
|
432
|
+
content:
|
|
433
|
+
application/json:
|
|
434
|
+
schema:
|
|
435
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
436
|
+
examples:
|
|
437
|
+
serviceUnavailable:
|
|
438
|
+
summary: Service unavailable
|
|
439
|
+
value:
|
|
440
|
+
timestamp: '2024-07-10T13:47:02.486Z'
|
|
441
|
+
status: 503
|
|
442
|
+
error: Fetching Whois Data Failed
|
|
443
|
+
message: 'Service is unavailable. Please try after some time. [For Technical Support email at: support@apifreaks.com]'
|
|
444
|
+
path: /v1.0/ip/whois/live
|
|
445
|
+
'504':
|
|
446
|
+
description: Gateway Timeout -- The request timed out
|
|
447
|
+
content:
|
|
448
|
+
application/json:
|
|
449
|
+
schema:
|
|
450
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
451
|
+
examples:
|
|
452
|
+
requestTimedOut:
|
|
453
|
+
summary: Request timed out
|
|
454
|
+
value:
|
|
455
|
+
timestamp: '2024-07-10T13:47:02.486Z'
|
|
456
|
+
status: 504
|
|
457
|
+
error: Fetching Whois Data Failed
|
|
458
|
+
message: 'Request is timed-out. [For Technical Support email at: support@apifreaks.com]'
|
|
459
|
+
path: /v1.0/ip/whois/live
|
|
460
|
+
'505':
|
|
461
|
+
description: HTTP Version Not Supported
|
|
462
|
+
content:
|
|
463
|
+
application/json:
|
|
464
|
+
schema:
|
|
465
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
466
|
+
examples:
|
|
467
|
+
httpVersionNotSupported:
|
|
468
|
+
summary: Outdated HTTP version
|
|
469
|
+
value:
|
|
470
|
+
message: You might be using an outdated HTTP version.
|
|
219
471
|
components:
|
|
220
472
|
securitySchemes:
|
|
221
473
|
ApiKeyAuthHeader:
|
|
@@ -229,6 +481,42 @@ components:
|
|
|
229
481
|
name: apiKey
|
|
230
482
|
description: Pass your API key via the apiKey query parameter.
|
|
231
483
|
schemas:
|
|
484
|
+
IpWhoisPartialResponse:
|
|
485
|
+
type: object
|
|
486
|
+
description: Partial WHOIS response (HTTP 206). Same shape as IpWhoisResponse, but only the fields the registry returned are present; whois_raw_response, the organization and the contact lists may be missing.
|
|
487
|
+
required:
|
|
488
|
+
- status
|
|
489
|
+
- ip_address
|
|
490
|
+
- query_time
|
|
491
|
+
- whois_server
|
|
492
|
+
- inet_nums
|
|
493
|
+
properties:
|
|
494
|
+
status:
|
|
495
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/status'
|
|
496
|
+
ip_address:
|
|
497
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/ip_address'
|
|
498
|
+
query_time:
|
|
499
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/query_time'
|
|
500
|
+
whois_server:
|
|
501
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/whois_server'
|
|
502
|
+
inet_nums:
|
|
503
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/inet_nums'
|
|
504
|
+
irt:
|
|
505
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/irt'
|
|
506
|
+
organization:
|
|
507
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/organization'
|
|
508
|
+
administrative_contacts:
|
|
509
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/administrative_contacts'
|
|
510
|
+
technical_contacts:
|
|
511
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/technical_contacts'
|
|
512
|
+
abuse_contacts:
|
|
513
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/abuse_contacts'
|
|
514
|
+
routes:
|
|
515
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/routes'
|
|
516
|
+
whois_raw_response:
|
|
517
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/whois_raw_response'
|
|
518
|
+
r_whois_raw_response:
|
|
519
|
+
$ref: '#/components/schemas/IpWhoisResponse/properties/r_whois_raw_response'
|
|
232
520
|
ErrorResponse:
|
|
233
521
|
type: object
|
|
234
522
|
required:
|
|
@@ -262,7 +550,7 @@ components:
|
|
|
262
550
|
properties:
|
|
263
551
|
status:
|
|
264
552
|
type: boolean
|
|
265
|
-
description:
|
|
553
|
+
description: true when the record from the WHOIS server is complete. A different field from status inside inet_nums.
|
|
266
554
|
ip_address:
|
|
267
555
|
type: string
|
|
268
556
|
description: IP address (IPv4 or IPv6) that was queried.
|
|
@@ -281,6 +569,11 @@ components:
|
|
|
281
569
|
$ref: '#/components/schemas/IrtObject'
|
|
282
570
|
organization:
|
|
283
571
|
$ref: '#/components/schemas/IpWhoisOrganization'
|
|
572
|
+
administrative_contacts:
|
|
573
|
+
type: array
|
|
574
|
+
description: Administrative contact persons or roles for this IP allocation. Returned by RIPE NCC, APNIC, LACNIC and AFRINIC; not returned by ARIN.
|
|
575
|
+
items:
|
|
576
|
+
$ref: '#/components/schemas/WhoisContactRef'
|
|
284
577
|
technical_contacts:
|
|
285
578
|
type: array
|
|
286
579
|
description: Technical contact persons or roles for this IP allocation.
|
|
@@ -996,7 +1289,8 @@ components:
|
|
|
996
1289
|
RouteObject:
|
|
997
1290
|
type: object
|
|
998
1291
|
description: BGP route object containing the route prefix, origin AS, and related metadata.
|
|
999
|
-
required:
|
|
1292
|
+
required:
|
|
1293
|
+
- source
|
|
1000
1294
|
properties:
|
|
1001
1295
|
route:
|
|
1002
1296
|
type:
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Historical Commodity Prices, Delivered Simply.",
|
|
5
5
|
"version": "2.0.0",
|
|
6
|
-
"description": "OHLC price data for one or more commodities on a specific date, back to January 1990. Falls back to the nearest earlier rate if none exists for the exact date. Monthly-updated commodities
|
|
6
|
+
"description": "OHLC price data for one or more commodities on a specific date, back to January 1990. Falls back to the nearest earlier rate if none exists for the exact date. Monthly-updated commodities have a single monthly price, which is returned as `open`, `high`, `low`, and `close`. Unresolved symbols degrade to a 206 partial response instead of failing the whole request. A known alias (for example `GOLD`) is resolved to its API symbol and returned with a 200, listed under `unresolved` with a `resolvedTo` value.",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "APIFreaks Support",
|
|
9
9
|
"url": "https://apifreaks.com/contact",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"name": "date",
|
|
49
49
|
"in": "query",
|
|
50
50
|
"required": true,
|
|
51
|
-
"description": "Date in `YYYY-MM-DD` format. Data available from 1990 onwards.",
|
|
51
|
+
"description": "Date in `YYYY-MM-DD` format. Data available from 1990 onwards. If there is no rate on the date (weekend, holiday, or a future date), the nearest earlier rate is returned and its own date appears in the rate object.",
|
|
52
52
|
"schema": {
|
|
53
53
|
"type": "string"
|
|
54
54
|
}
|
|
@@ -87,20 +87,42 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"monthlyCommodity": {
|
|
90
|
-
"summary": "Monthly-updated commodity (
|
|
90
|
+
"summary": "Monthly-updated commodity (one monthly price in all four fields)",
|
|
91
91
|
"value": {
|
|
92
92
|
"success": true,
|
|
93
93
|
"date": "2025-01-10",
|
|
94
94
|
"rates": {
|
|
95
95
|
"NG-EU": {
|
|
96
96
|
"date": "2025-01-01",
|
|
97
|
-
"open":
|
|
98
|
-
"high":
|
|
99
|
-
"low":
|
|
97
|
+
"open": 14.66,
|
|
98
|
+
"high": 14.66,
|
|
99
|
+
"low": 14.66,
|
|
100
100
|
"close": 14.66
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
+
},
|
|
105
|
+
"aliasResolved": {
|
|
106
|
+
"summary": "Alias symbol resolved to its API symbol (symbols=GOLD)",
|
|
107
|
+
"value": {
|
|
108
|
+
"success": true,
|
|
109
|
+
"date": "2025-01-10",
|
|
110
|
+
"rates": {
|
|
111
|
+
"XAU": {
|
|
112
|
+
"date": "2025-01-10",
|
|
113
|
+
"open": 2669.93,
|
|
114
|
+
"high": 2697.85,
|
|
115
|
+
"low": 2663.61,
|
|
116
|
+
"close": 2689.44
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"unresolved": {
|
|
120
|
+
"GOLD": {
|
|
121
|
+
"message": "GOLD is not a symbol code used by this API. Gold is available as \"XAU\", so its rate was returned under that symbol.",
|
|
122
|
+
"resolvedTo": "XAU"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
104
126
|
}
|
|
105
127
|
}
|
|
106
128
|
}
|
|
@@ -302,7 +324,7 @@
|
|
|
302
324
|
},
|
|
303
325
|
"unresolved": {
|
|
304
326
|
"type": "object",
|
|
305
|
-
"description": "Present
|
|
327
|
+
"description": "Present on a 206 Partial Content response when some requested symbols could not be resolved, and on a 200 response when an alias was resolved to its API symbol. Map of each symbol to a detail message, optional close-match suggestions, and `resolvedTo` for resolved aliases.",
|
|
306
328
|
"additionalProperties": {
|
|
307
329
|
"type": "object",
|
|
308
330
|
"properties": {
|
|
@@ -316,6 +338,10 @@
|
|
|
316
338
|
"items": {
|
|
317
339
|
"type": "string"
|
|
318
340
|
}
|
|
341
|
+
},
|
|
342
|
+
"resolvedTo": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"description": "Present when the symbol is a known alias. The API symbol the alias was resolved to; the rate is returned under that symbol in `rates`."
|
|
319
345
|
}
|
|
320
346
|
}
|
|
321
347
|
}
|
|
@@ -335,7 +361,7 @@
|
|
|
335
361
|
},
|
|
336
362
|
"HistoricalCommodityRate": {
|
|
337
363
|
"type": "object",
|
|
338
|
-
"description": "OHLC price data for a single commodity on a specific date. For monthly-updated commodities,
|
|
364
|
+
"description": "OHLC price data for a single commodity on a specific date. For monthly-updated commodities, the single monthly price is returned in `open`, `high`, `low`, and `close`.",
|
|
339
365
|
"required": ["date", "open", "high", "low", "close"],
|
|
340
366
|
"properties": {
|
|
341
367
|
"date": {
|
|
@@ -345,17 +371,17 @@
|
|
|
345
371
|
"open": {
|
|
346
372
|
"type": "number",
|
|
347
373
|
"format": "float",
|
|
348
|
-
"description": "Opening price on the given date. `
|
|
374
|
+
"description": "Opening price on the given date. Equals `close` for monthly-updated commodities."
|
|
349
375
|
},
|
|
350
376
|
"high": {
|
|
351
377
|
"type": "number",
|
|
352
378
|
"format": "float",
|
|
353
|
-
"description": "Highest price recorded on the given date. `
|
|
379
|
+
"description": "Highest price recorded on the given date. Equals `close` for monthly-updated commodities."
|
|
354
380
|
},
|
|
355
381
|
"low": {
|
|
356
382
|
"type": "number",
|
|
357
383
|
"format": "float",
|
|
358
|
-
"description": "Lowest price recorded on the given date. `
|
|
384
|
+
"description": "Lowest price recorded on the given date. Equals `close` for monthly-updated commodities."
|
|
359
385
|
},
|
|
360
386
|
"close": {
|
|
361
387
|
"type": "number",
|