@apifreaks/openapi-specs 0.1.0

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 (109) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +156 -0
  3. package/dist/index.cjs +44663 -0
  4. package/dist/index.d.cts +30 -0
  5. package/dist/index.d.ts +30 -0
  6. package/dist/index.js +44631 -0
  7. package/package.json +81 -0
  8. package/specs/commodity/commodity-fluctuation.json +301 -0
  9. package/specs/commodity/commodity-prices.json +317 -0
  10. package/specs/commodity/commodity-symbols.json +215 -0
  11. package/specs/commodity/commodity-time-series.json +329 -0
  12. package/specs/commodity/historical-commodity-prices.json +273 -0
  13. package/specs/currency/currency-converter.json +261 -0
  14. package/specs/currency/currency-fluctuation.json +282 -0
  15. package/specs/currency/currency-historical-data-limit.json +158 -0
  16. package/specs/currency/currency-rate.json +229 -0
  17. package/specs/currency/currency-supported.json +234 -0
  18. package/specs/currency/currency-symbols.json +161 -0
  19. package/specs/currency/currency-time-series.json +325 -0
  20. package/specs/currency/geolocalized-currency-conversion.json +287 -0
  21. package/specs/currency/historical-currency-converter.json +269 -0
  22. package/specs/currency/historical-currency-rate.json +246 -0
  23. package/specs/dns/bulk-dns-lookup.json +624 -0
  24. package/specs/dns/dns-history-lookup.json +579 -0
  25. package/specs/dns/dns-lookup.json +466 -0
  26. package/specs/dns/reverse-dns-lookup.json +414 -0
  27. package/specs/domain/bulk-domain-checker.json +284 -0
  28. package/specs/domain/domain-search-with-suggestions.json +280 -0
  29. package/specs/domain/domain-search.json +206 -0
  30. package/specs/domain/subdomain-lookup.json +343 -0
  31. package/specs/email-validation/bulk-email-validation.json +534 -0
  32. package/specs/email-validation/email-checker.json +586 -0
  33. package/specs/financial/bulk-vat-rates-country.json +341 -0
  34. package/specs/financial/financial-apis-supported-countries.json +204 -0
  35. package/specs/financial/iban-validation.json +328 -0
  36. package/specs/financial/swift-code-finder.json +192 -0
  37. package/specs/financial/swift-code-lookup.json +220 -0
  38. package/specs/financial/vat-number-validation.json +283 -0
  39. package/specs/financial/vat-rates-by-ip.json +275 -0
  40. package/specs/financial/vat-rates-country.json +288 -0
  41. package/specs/general/usage-credits.json +218 -0
  42. package/specs/geocoding/forward-geocoding.json +402 -0
  43. package/specs/geocoding/reverse-geocoding.json +326 -0
  44. package/specs/geodb/administrative-units-details.json +250 -0
  45. package/specs/geodb/administrative-units-levels.json +198 -0
  46. package/specs/geodb/administrative-units.json +237 -0
  47. package/specs/geodb/cities.json +288 -0
  48. package/specs/geodb/countries-details.json +274 -0
  49. package/specs/geodb/countries.json +276 -0
  50. package/specs/geodb/flags-supported.json +166 -0
  51. package/specs/geodb/flags.json +227 -0
  52. package/specs/geodb/regions.json +109 -0
  53. package/specs/geodb/subregions.json +217 -0
  54. package/specs/ip-intelligence/bulk-ip-lookup.json +1162 -0
  55. package/specs/ip-intelligence/bulk-ip-threat-intelligence.json +417 -0
  56. package/specs/ip-intelligence/ip-locator.json +941 -0
  57. package/specs/ip-intelligence/ip-threat-intelligence.json +316 -0
  58. package/specs/other/astronomy-data.json +803 -0
  59. package/specs/pdf/delete-pdf-page.json +286 -0
  60. package/specs/pdf/linearize-pdf.json +277 -0
  61. package/specs/pdf/merge-pdf.json +285 -0
  62. package/specs/pdf/pdf-compress.json +304 -0
  63. package/specs/pdf/pdf-decrypt.json +297 -0
  64. package/specs/pdf/pdf-encrypt.json +314 -0
  65. package/specs/pdf/pdf-extract-pages.json +295 -0
  66. package/specs/pdf/pdf-file-status.json +208 -0
  67. package/specs/pdf/pdf-file.json +190 -0
  68. package/specs/pdf/pdf-files.json +126 -0
  69. package/specs/pdf/pdf-resource-download.json +168 -0
  70. package/specs/pdf/pdf-resource-upload-binary.json +218 -0
  71. package/specs/pdf/pdf-resource-upload.json +248 -0
  72. package/specs/pdf/pdf-restrict.json +343 -0
  73. package/specs/pdf/pdf-split-pages.json +281 -0
  74. package/specs/pdf/pdf-task-status.json +252 -0
  75. package/specs/pdf/pdf-to-image.json +1219 -0
  76. package/specs/pdf/pdf-unrestrict.json +324 -0
  77. package/specs/pdf/rotate-pdf-pages.json +305 -0
  78. package/specs/phone-validation/bulk-phone-number-validation.json +518 -0
  79. package/specs/phone-validation/phone-number-validation.json +456 -0
  80. package/specs/scraper/web-scraper.json +674 -0
  81. package/specs/screenshot/bulk-screenshot.json +949 -0
  82. package/specs/screenshot/website-screenshot.json +1147 -0
  83. package/specs/ssl/ssl-certificate-chain-lookup.json +756 -0
  84. package/specs/ssl/ssl-certificate-lookup.json +634 -0
  85. package/specs/timezone/timezone-converter.json +362 -0
  86. package/specs/timezone/timezone-lookup.json +910 -0
  87. package/specs/user-agent/bulk-user-agent-parser.json +441 -0
  88. package/specs/user-agent/user-agent-parser.json +346 -0
  89. package/specs/weather/air-quality.json +779 -0
  90. package/specs/weather/bulk-live-weather.json +834 -0
  91. package/specs/weather/flood-forecast.json +693 -0
  92. package/specs/weather/historical-weather.json +1019 -0
  93. package/specs/weather/live-weather.json +789 -0
  94. package/specs/weather/marine-weather.json +940 -0
  95. package/specs/weather/time-series-weather.json +1056 -0
  96. package/specs/weather/weather-forecast.json +1202 -0
  97. package/specs/whois/asn-lookup.json +729 -0
  98. package/specs/whois/bulk-whois-lookup.json +698 -0
  99. package/specs/whois/domain-whois-history-lookup.json +500 -0
  100. package/specs/whois/reverse-whois.json +625 -0
  101. package/specs/whois/whois-domain-lookup.json +533 -0
  102. package/specs/whois/whois-ip-lookup.json +1110 -0
  103. package/specs/zip-code/bulk-zip-code-lookup.json +318 -0
  104. package/specs/zip-code/zip-code-api.json +299 -0
  105. package/specs/zip-code/zip-code-distance-match.json +311 -0
  106. package/specs/zip-code/zip-code-distance.json +307 -0
  107. package/specs/zip-code/zip-codes-by-city.json +279 -0
  108. package/specs/zip-code/zip-codes-by-region.json +278 -0
  109. package/specs/zip-code/zip-codes-radius-search.json +349 -0
@@ -0,0 +1,317 @@
1
+ {
2
+ "openapi": "3.1.1",
3
+ "info": {
4
+ "title": "Live Commodity Prices API - Real Time Market Insights",
5
+ "version": "1.0.0",
6
+ "description": "Get real-time prices for 130+ commodities in a single request. Returns current market prices for each requested symbol plus unit and quote currency metadata. Supports an optional quote parameter to convert prices into a desired currency, defaulting to each commodity's native market currency. Accepts 1-minute or 10-minute update frequencies for price freshness. An unsupported symbol or quote currency returns a 404.",
7
+ "contact": {
8
+ "name": "APIFreaks Support",
9
+ "url": "https://apifreaks.com/contact",
10
+ "email": "support@apifreaks.com"
11
+ }
12
+ },
13
+ "servers": [
14
+ {
15
+ "url": "https://api.apifreaks.com/v1.0",
16
+ "description": "Live Commodity Prices API Server"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/commodity/rates/latest": {
21
+ "get": {
22
+ "tags": ["Commodity APIs"],
23
+ "summary": "Get latest commodity prices",
24
+ "description": "Returns the current live price for the requested commodity symbols.",
25
+ "operationId": "getLatestCommodityPrices",
26
+ "parameters": [
27
+ {
28
+ "name": "format",
29
+ "in": "query",
30
+ "required": false,
31
+ "description": "Response format. Currently only `json` is supported.",
32
+ "schema": {
33
+ "type": "string",
34
+ "default": "json",
35
+ "enum": ["json"]
36
+ }
37
+ },
38
+ {
39
+ "name": "symbols",
40
+ "in": "query",
41
+ "required": true,
42
+ "description": "Comma-separated list of commodity symbols (e.g., `XAU`, `WTIOIL-SPOT`).",
43
+ "schema": {
44
+ "type": "string"
45
+ }
46
+ },
47
+ {
48
+ "name": "updates",
49
+ "in": "query",
50
+ "required": true,
51
+ "description": "Update frequency. Accepted values: `1m` (default), `10m`.",
52
+ "schema": {
53
+ "type": "string",
54
+ "enum": ["1m", "10m"],
55
+ "default": "1m"
56
+ }
57
+ },
58
+ {
59
+ "name": "quote",
60
+ "in": "query",
61
+ "required": false,
62
+ "description": "Target currency for the exchange rate. Defaults to the market currency of each commodity.",
63
+ "schema": {
64
+ "type": "string"
65
+ }
66
+ }
67
+ ],
68
+ "responses": {
69
+ "200": {
70
+ "description": "Successful operation",
71
+ "content": {
72
+ "application/json": {
73
+ "schema": {
74
+ "$ref": "#/components/schemas/LiveCommodityPricesResponse"
75
+ },
76
+ "examples": {
77
+ "success": {
78
+ "summary": "Successful response",
79
+ "value": {
80
+ "success": true,
81
+ "timestamp": 1785152172,
82
+ "rates": {
83
+ "XAU": 4099.1,
84
+ "WTIOIL-SPOT": 81.88
85
+ },
86
+ "metadata": {
87
+ "XAU": {
88
+ "unit": "T.oz",
89
+ "quote": "USD"
90
+ },
91
+ "WTIOIL-SPOT": {
92
+ "unit": "Bbl",
93
+ "quote": "USD"
94
+ }
95
+ }
96
+ }
97
+ },
98
+ "withQuoteConversion": {
99
+ "summary": "Price converted to a target quote currency",
100
+ "value": {
101
+ "success": true,
102
+ "timestamp": 1785152172,
103
+ "rates": {
104
+ "XAU": 3597.734
105
+ },
106
+ "metadata": {
107
+ "XAU": {
108
+ "unit": "T.oz",
109
+ "quote": "EUR"
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ },
118
+ "400": {
119
+ "description": "Bad Request — Missing or invalid query parameters",
120
+ "content": {
121
+ "application/json": {
122
+ "schema": {
123
+ "$ref": "#/components/schemas/ErrorResponse"
124
+ },
125
+ "examples": {
126
+ "missingSymbols": {
127
+ "summary": "Missing required symbols parameter",
128
+ "value": {
129
+ "error": "Invalid Param Exception",
130
+ "message": "please pass correct parameters",
131
+ "path": "/v1.0/commodity/rates/latest",
132
+ "status": 400,
133
+ "timestamp": "2026-07-27T11:36:13.312Z"
134
+ }
135
+ },
136
+ "invalidUpdates": {
137
+ "summary": "updates is not 1m or 10m",
138
+ "value": {
139
+ "error": "Invalid Param Exception",
140
+ "message": "please pass correct parameters",
141
+ "path": "/v1.0/commodity/rates/latest",
142
+ "status": 400,
143
+ "timestamp": "2026-07-27T11:36:35.755Z"
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ },
150
+ "404": {
151
+ "description": "Not found - Symbol or quote currency not available",
152
+ "content": {
153
+ "application/json": {
154
+ "schema": {
155
+ "$ref": "#/components/schemas/CommodityNotFoundError"
156
+ },
157
+ "examples": {
158
+ "symbolNotFound": {
159
+ "summary": "Symbol Not Found",
160
+ "value": {
161
+ "timestamp": 1781792620618,
162
+ "path": "/rates/latestRates",
163
+ "code": 404,
164
+ "error": "SYMBOL_NOT_FOUND",
165
+ "message": "The symbol is not supported, please visit the documentation for a list of supported symbols"
166
+ }
167
+ },
168
+ "quoteNotFound": {
169
+ "summary": "Quote Currency Not Found",
170
+ "value": {
171
+ "timestamp": 1781792620618,
172
+ "path": "/rates/latestRates",
173
+ "code": 404,
174
+ "error": "QUOTE_NOT_FOUND",
175
+ "message": "The quote currency is invalid, please visit the documentation for a list of valid quote currencies"
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ },
186
+ "components": {
187
+ "securitySchemes": {
188
+ "ApiKeyAuthHeader": {
189
+ "type": "apiKey",
190
+ "in": "header",
191
+ "name": "X-apiKey",
192
+ "description": "Pass your API key via the X-apiKey request header."
193
+ },
194
+ "ApiKeyAuthQuery": {
195
+ "type": "apiKey",
196
+ "in": "query",
197
+ "name": "apiKey",
198
+ "description": "Pass your API key via the apiKey query parameter."
199
+ }
200
+ },
201
+ "schemas": {
202
+ "LiveCommodityPricesResponse": {
203
+ "type": "object",
204
+ "required": ["success", "timestamp", "rates", "metadata"],
205
+ "properties": {
206
+ "success": {
207
+ "type": "boolean",
208
+ "description": "`true` for successful requests."
209
+ },
210
+ "timestamp": {
211
+ "type": "integer",
212
+ "description": "Unix timestamp (seconds) indicating when the response was generated."
213
+ },
214
+ "rates": {
215
+ "$ref": "#/components/schemas/CommodityRates"
216
+ },
217
+ "metadata": {
218
+ "$ref": "#/components/schemas/CommodityMetadata"
219
+ }
220
+ },
221
+ "description": "Live commodity prices response containing success status, timestamp, rates, and metadata."
222
+ },
223
+ "CommodityRates": {
224
+ "type": "object",
225
+ "description": "Map of requested commodity symbols to their current live price. Each key is a commodity symbol (e.g. XAU); the value is the current price.",
226
+ "additionalProperties": {
227
+ "title": "CommodityPrice",
228
+ "type": "number",
229
+ "description": "Current live price for this commodity symbol."
230
+ }
231
+ },
232
+ "CommodityMetadata": {
233
+ "type": "object",
234
+ "description": "Map of requested commodity symbols to their unit and quote currency metadata. Each key is a commodity symbol (e.g. XAU).",
235
+ "additionalProperties": {
236
+ "title": "CommodityMetadataItem",
237
+ "type": "object",
238
+ "description": "Unit and currency metadata for a single commodity.",
239
+ "required": ["unit", "quote"],
240
+ "properties": {
241
+ "unit": {
242
+ "type": "string",
243
+ "description": "Unit of measurement for the commodity (e.g., Bbl, T.oz)."
244
+ },
245
+ "quote": {
246
+ "type": "string",
247
+ "description": "Quote currency used for this commodity's price."
248
+ }
249
+ }
250
+ }
251
+ },
252
+ "ErrorResponse": {
253
+ "type": "object",
254
+ "description": "Standard error envelope returned by the API on failed requests.",
255
+ "required": ["message"],
256
+ "properties": {
257
+ "error": {
258
+ "type": "string",
259
+ "description": "Short error category or exception type."
260
+ },
261
+ "message": {
262
+ "type": "string",
263
+ "description": "Human-readable error message describing the failure."
264
+ },
265
+ "path": {
266
+ "type": "string",
267
+ "description": "API endpoint path that produced the error."
268
+ },
269
+ "status": {
270
+ "type": "integer",
271
+ "description": "HTTP status code returned with the error."
272
+ },
273
+ "timestamp": {
274
+ "type": "string",
275
+ "format": "date-time",
276
+ "description": "Timestamp when the error occurred (ISO 8601)."
277
+ }
278
+ }
279
+ },
280
+ "CommodityNotFoundError": {
281
+ "type": "object",
282
+ "description": "Error envelope returned by the commodity pricing service specifically for unresolvable symbol/quote errors. Uses `code` instead of `status` and a Unix millisecond `timestamp`, unlike the standard ErrorResponse.",
283
+ "required": ["code", "error", "message"],
284
+ "properties": {
285
+ "timestamp": {
286
+ "type": "integer",
287
+ "description": "Unix timestamp in milliseconds when the error occurred."
288
+ },
289
+ "path": {
290
+ "type": "string",
291
+ "description": "Internal service path that produced the error."
292
+ },
293
+ "code": {
294
+ "type": "integer",
295
+ "description": "HTTP status code returned with the error."
296
+ },
297
+ "error": {
298
+ "type": "string",
299
+ "description": "Specific error type (e.g., SYMBOL_NOT_FOUND, QUOTE_NOT_FOUND)."
300
+ },
301
+ "message": {
302
+ "type": "string",
303
+ "description": "Human-readable error message describing the failure."
304
+ }
305
+ }
306
+ }
307
+ }
308
+ },
309
+ "security": [
310
+ {
311
+ "ApiKeyAuthHeader": []
312
+ },
313
+ {
314
+ "ApiKeyAuthQuery": []
315
+ }
316
+ ]
317
+ }
@@ -0,0 +1,215 @@
1
+ {
2
+ "openapi": "3.1.1",
3
+ "info": {
4
+ "title": "Commodity Symbols API Reference",
5
+ "version": "1.0.0",
6
+ "description": "List all supported commodity symbols available in the APIFreaks Commodity API. Returns an array of commodity objects with symbol, name, category, pricing currency, unit of measurement, status, and update interval. Supports metals, energy, agriculture, and livestock categories.",
7
+ "contact": {
8
+ "name": "APIFreaks Support",
9
+ "url": "https://apifreaks.com/contact",
10
+ "email": "support@apifreaks.com"
11
+ }
12
+ },
13
+ "servers": [
14
+ {
15
+ "url": "https://api.apifreaks.com/v1.0",
16
+ "description": "Commodity Symbols API Server"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/commodity/symbols": {
21
+ "get": {
22
+ "tags": ["Commodity APIs"],
23
+ "summary": "Get all supported commodity symbols",
24
+ "description": "Returns the list of supported commodity symbols with metadata.",
25
+ "operationId": "getCommoditySymbols",
26
+ "parameters": [
27
+ {
28
+ "name": "format",
29
+ "in": "query",
30
+ "required": false,
31
+ "description": "Response format. Accepted values: `json` (default) or `xml`.",
32
+ "schema": {
33
+ "type": "string",
34
+ "enum": ["json"],
35
+ "default": "json"
36
+ }
37
+ }
38
+ ],
39
+ "responses": {
40
+ "200": {
41
+ "description": "Successful operation",
42
+ "content": {
43
+ "application/json": {
44
+ "schema": {
45
+ "$ref": "#/components/schemas/CommoditySymbolsResponse"
46
+ },
47
+ "examples": {
48
+ "success": {
49
+ "summary": "Successful response",
50
+ "value": {
51
+ "success": true,
52
+ "symbols": [
53
+ {
54
+ "symbol": "XAU",
55
+ "name": "Gold",
56
+ "category": "Metals",
57
+ "status": "active",
58
+ "updateInterval": "PER_SECOND",
59
+ "currency": {
60
+ "code": "USD",
61
+ "name": "US Dollar",
62
+ "symbol": "$"
63
+ },
64
+ "unit": {
65
+ "symbol": "T.oz",
66
+ "name": "Troy Ounce"
67
+ }
68
+ },
69
+ {
70
+ "symbol": "NG-FUT",
71
+ "name": "Natural Gas Futures",
72
+ "category": "Energy",
73
+ "status": "active",
74
+ "updateInterval": "PER_MINUTE",
75
+ "currency": {
76
+ "code": "USD",
77
+ "name": "US Dollar",
78
+ "symbol": "$"
79
+ },
80
+ "unit": {
81
+ "symbol": "MMBtu",
82
+ "name": "Million British Thermal Units"
83
+ }
84
+ }
85
+ ]
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ },
96
+ "components": {
97
+ "securitySchemes": {
98
+ "ApiKeyAuthHeader": {
99
+ "type": "apiKey",
100
+ "in": "header",
101
+ "name": "X-apiKey",
102
+ "description": "Pass your API key via the X-apiKey request header."
103
+ },
104
+ "ApiKeyAuthQuery": {
105
+ "type": "apiKey",
106
+ "in": "query",
107
+ "name": "apiKey",
108
+ "description": "Pass your API key via the apiKey query parameter."
109
+ }
110
+ },
111
+ "schemas": {
112
+ "CommoditySymbolsResponse": {
113
+ "type": "object",
114
+ "required": ["success", "symbols"],
115
+ "properties": {
116
+ "success": {
117
+ "type": "boolean",
118
+ "description": "Indicates whether the API request was successful."
119
+ },
120
+ "symbols": {
121
+ "type": "array",
122
+ "description": "Array of commodity symbol objects with metadata.",
123
+ "items": {
124
+ "$ref": "#/components/schemas/CommoditySymbolItem"
125
+ }
126
+ }
127
+ },
128
+ "description": "Commodity symbols response containing an array of supported commodity symbol objects."
129
+ },
130
+ "CommoditySymbolItem": {
131
+ "type": "object",
132
+ "description": "A single commodity symbol with metadata.",
133
+ "required": [
134
+ "symbol",
135
+ "name",
136
+ "category",
137
+ "status",
138
+ "updateInterval",
139
+ "currency",
140
+ "unit"
141
+ ],
142
+ "properties": {
143
+ "symbol": {
144
+ "type": "string",
145
+ "description": "Unique identifier/ticker symbol for the commodity (e.g., XAU, NG-FUT)."
146
+ },
147
+ "name": {
148
+ "type": "string",
149
+ "description": "Full name of the commodity (e.g., Gold, Natural Gas Futures)."
150
+ },
151
+ "category": {
152
+ "type": "string",
153
+ "description": "Category the commodity belongs to (e.g., Metals, Energy)."
154
+ },
155
+ "status": {
156
+ "type": "string",
157
+ "description": "Current status of the commodity. Value: active."
158
+ },
159
+ "updateInterval": {
160
+ "type": "string",
161
+ "description": "Rate at which the price is updated. Values: PER_SECOND, PER_MINUTE."
162
+ },
163
+ "currency": {
164
+ "$ref": "#/components/schemas/CommodityCurrency"
165
+ },
166
+ "unit": {
167
+ "$ref": "#/components/schemas/CommodityUnit"
168
+ }
169
+ }
170
+ },
171
+ "CommodityCurrency": {
172
+ "type": "object",
173
+ "description": "Currency information for a commodity.",
174
+ "required": ["code", "name", "symbol"],
175
+ "properties": {
176
+ "code": {
177
+ "type": "string",
178
+ "description": "ISO 4217 currency code."
179
+ },
180
+ "name": {
181
+ "type": "string",
182
+ "description": "Full name of the currency."
183
+ },
184
+ "symbol": {
185
+ "type": "string",
186
+ "description": "Symbol of the currency (e.g., $)."
187
+ }
188
+ }
189
+ },
190
+ "CommodityUnit": {
191
+ "type": "object",
192
+ "description": "Unit of measurement for a commodity.",
193
+ "required": ["symbol", "name"],
194
+ "properties": {
195
+ "symbol": {
196
+ "type": "string",
197
+ "description": "Abbreviated unit symbol (e.g., T.oz, MMBtu)."
198
+ },
199
+ "name": {
200
+ "type": "string",
201
+ "description": "Full name of the unit of measurement (e.g., Troy Ounce)."
202
+ }
203
+ }
204
+ }
205
+ }
206
+ },
207
+ "security": [
208
+ {
209
+ "ApiKeyAuthHeader": []
210
+ },
211
+ {
212
+ "ApiKeyAuthQuery": []
213
+ }
214
+ ]
215
+ }