@apifreaks/openapi-specs 0.1.2 → 0.3.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.
- package/README.md +37 -37
- package/dist/index.cjs +4288 -1107
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4288 -1107
- package/dist/specs/commodity/commodity-fluctuation.yaml +14 -0
- package/dist/specs/commodity/commodity-prices.yaml +14 -0
- package/dist/specs/commodity/commodity-symbols.yaml +8 -0
- package/dist/specs/commodity/commodity-time-series.yaml +14 -0
- package/dist/specs/commodity/historical-commodity-prices.yaml +14 -0
- package/dist/specs/currency/currency-converter.yaml +14 -0
- package/dist/specs/currency/currency-fluctuation.yaml +14 -0
- package/dist/specs/currency/currency-historical-data-limit.yaml +11 -0
- package/dist/specs/currency/currency-rate.yaml +14 -0
- package/dist/specs/currency/currency-supported.yaml +11 -0
- package/dist/specs/currency/currency-symbols.yaml +11 -0
- package/dist/specs/currency/currency-time-series.yaml +14 -0
- package/dist/specs/currency/geolocalized-currency-conversion.yaml +14 -0
- package/dist/specs/currency/historical-currency-converter.yaml +14 -0
- package/dist/specs/currency/historical-currency-rate.yaml +14 -0
- package/dist/specs/dns/bulk-dns-lookup.yaml +14 -0
- package/dist/specs/dns/dns-history-lookup.yaml +14 -0
- package/dist/specs/dns/dns-lookup.yaml +11 -0
- package/dist/specs/dns/reverse-dns-lookup.yaml +34 -0
- package/dist/specs/domain/bulk-domain-checker.yaml +17 -0
- package/dist/specs/domain/domain-search-with-suggestions.yaml +14 -0
- package/dist/specs/domain/domain-search.yaml +14 -0
- package/dist/specs/domain/subdomain-lookup.yaml +14 -0
- package/dist/specs/email-validation/bulk-email-validation.yaml +17 -0
- package/dist/specs/email-validation/email-checker.yaml +41 -0
- package/dist/specs/financial/bulk-vat-rates-country.yaml +14 -0
- package/dist/specs/financial/financial-apis-supported-countries.yaml +8 -0
- package/dist/specs/financial/iban-validation.yaml +11 -0
- package/dist/specs/financial/swift-code-finder.yaml +11 -0
- package/dist/specs/financial/swift-code-lookup.yaml +14 -0
- package/dist/specs/financial/vat-number-validation.yaml +14 -0
- package/dist/specs/financial/vat-rates-by-ip.yaml +14 -0
- package/dist/specs/financial/vat-rates-country.yaml +14 -0
- package/dist/specs/general/usage-credits.yaml +11 -0
- package/dist/specs/geocoding/forward-geocoding.yaml +14 -0
- package/dist/specs/geocoding/reverse-geocoding.yaml +11 -0
- package/dist/specs/geodb/administrative-units-details.yaml +14 -0
- package/dist/specs/geodb/administrative-units-levels.yaml +14 -0
- package/dist/specs/geodb/administrative-units.yaml +14 -0
- package/dist/specs/geodb/cities.yaml +14 -0
- package/dist/specs/geodb/countries-details.yaml +11 -0
- package/dist/specs/geodb/countries.yaml +11 -0
- package/dist/specs/geodb/flags-supported.yaml +8 -0
- package/dist/specs/geodb/flags.yaml +14 -0
- package/dist/specs/geodb/regions.yaml +8 -0
- package/dist/specs/geodb/subregions.yaml +14 -0
- package/dist/specs/ip-intelligence/bulk-ip-lookup.yaml +14 -0
- package/dist/specs/ip-intelligence/bulk-ip-threat-intelligence.yaml +11 -0
- package/dist/specs/ip-intelligence/ip-locator.yaml +17 -0
- package/dist/specs/ip-intelligence/ip-threat-intelligence.yaml +14 -0
- package/dist/specs/other/astronomy-data.yaml +14 -0
- package/dist/specs/pdf/bulk-pdf-generator.yaml +231 -0
- package/dist/specs/pdf/delete-pdf-page.yaml +14 -0
- package/dist/specs/pdf/linearize-pdf.yaml +14 -0
- package/dist/specs/pdf/merge-pdf.yaml +14 -0
- package/dist/specs/pdf/pdf-compress.yaml +14 -0
- package/dist/specs/pdf/pdf-decrypt.yaml +14 -0
- package/dist/specs/pdf/pdf-encrypt.yaml +14 -0
- package/dist/specs/pdf/pdf-extract-pages.yaml +14 -0
- package/dist/specs/pdf/pdf-file-status.yaml +14 -0
- package/dist/specs/pdf/pdf-file.yaml +14 -0
- package/dist/specs/pdf/pdf-files.yaml +8 -0
- package/dist/specs/pdf/pdf-generator.yaml +348 -0
- package/dist/specs/pdf/pdf-resource-download.yaml +14 -0
- package/dist/specs/pdf/pdf-resource-upload-binary.yaml +14 -0
- package/dist/specs/pdf/pdf-resource-upload.yaml +14 -0
- package/dist/specs/pdf/pdf-restrict.yaml +14 -0
- package/dist/specs/pdf/pdf-split-pages.yaml +14 -0
- package/dist/specs/pdf/pdf-task-status.yaml +14 -0
- package/dist/specs/pdf/pdf-to-image.yaml +35 -0
- package/dist/specs/pdf/pdf-unrestrict.yaml +14 -0
- package/dist/specs/pdf/rotate-pdf-pages.yaml +14 -0
- package/dist/specs/phone-validation/bulk-phone-number-validation.yaml +23 -0
- package/dist/specs/phone-validation/phone-number-validation.yaml +20 -0
- package/dist/specs/scraper/web-scraper.yaml +34 -0
- package/dist/specs/screenshot/bulk-screenshot.yaml +34 -0
- package/dist/specs/screenshot/website-screenshot.yaml +34 -0
- package/dist/specs/ssl/ssl-certificate-chain-lookup.yaml +17 -0
- package/dist/specs/ssl/ssl-certificate-lookup.yaml +17 -0
- package/dist/specs/timezone/timezone-converter.yaml +14 -0
- package/dist/specs/timezone/timezone-lookup.yaml +14 -0
- package/dist/specs/user-agent/bulk-user-agent-parser.yaml +11 -0
- package/dist/specs/user-agent/user-agent-parser.yaml +11 -0
- package/dist/specs/weather/air-quality.yaml +14 -0
- package/dist/specs/weather/bulk-live-weather.yaml +11 -0
- package/dist/specs/weather/flood-forecast.yaml +14 -0
- package/dist/specs/weather/historical-weather.yaml +14 -0
- package/dist/specs/weather/live-weather.yaml +14 -0
- package/dist/specs/weather/marine-weather.yaml +14 -0
- package/dist/specs/weather/time-series-weather.yaml +11 -0
- package/dist/specs/weather/weather-forecast.yaml +11 -0
- package/dist/specs/whois/asn-lookup.yaml +14 -0
- package/dist/specs/whois/bulk-whois-lookup.yaml +17 -0
- package/dist/specs/whois/domain-whois-history-lookup.yaml +14 -0
- package/dist/specs/whois/reverse-whois.yaml +34 -0
- package/dist/specs/whois/whois-domain-lookup.yaml +17 -0
- package/dist/specs/whois/whois-ip-lookup.yaml +14 -0
- package/dist/specs/zip-code/bulk-zip-code-lookup.yaml +14 -0
- package/dist/specs/zip-code/zip-code-api.yaml +14 -0
- package/dist/specs/zip-code/zip-code-distance-match.yaml +14 -0
- package/dist/specs/zip-code/zip-code-distance.yaml +14 -0
- package/dist/specs/zip-code/zip-codes-by-city.yaml +14 -0
- package/dist/specs/zip-code/zip-codes-by-region.yaml +14 -0
- package/dist/specs/zip-code/zip-codes-radius-search.yaml +34 -0
- package/package.json +1 -1
- package/specs/commodity/commodity-fluctuation.json +23 -0
- package/specs/commodity/commodity-prices.json +23 -0
- package/specs/commodity/commodity-symbols.json +13 -0
- package/specs/commodity/commodity-time-series.json +27 -13
- package/specs/commodity/historical-commodity-prices.json +23 -0
- package/specs/currency/currency-converter.json +23 -0
- package/specs/currency/currency-fluctuation.json +23 -0
- package/specs/currency/currency-historical-data-limit.json +18 -0
- package/specs/currency/currency-rate.json +23 -0
- package/specs/currency/currency-supported.json +18 -0
- package/specs/currency/currency-symbols.json +18 -0
- package/specs/currency/currency-time-series.json +23 -0
- package/specs/currency/geolocalized-currency-conversion.json +23 -0
- package/specs/currency/historical-currency-converter.json +23 -0
- package/specs/currency/historical-currency-rate.json +23 -0
- package/specs/dns/bulk-dns-lookup.json +23 -0
- package/specs/dns/dns-history-lookup.json +23 -0
- package/specs/dns/dns-lookup.json +18 -0
- package/specs/dns/reverse-dns-lookup.json +61 -1
- package/specs/domain/bulk-domain-checker.json +28 -0
- package/specs/domain/domain-search-with-suggestions.json +23 -0
- package/specs/domain/domain-search.json +23 -0
- package/specs/domain/subdomain-lookup.json +23 -0
- package/specs/email-validation/bulk-email-validation.json +28 -0
- package/specs/email-validation/email-checker.json +64 -0
- package/specs/financial/bulk-vat-rates-country.json +23 -0
- package/specs/financial/financial-apis-supported-countries.json +34 -5
- package/specs/financial/iban-validation.json +18 -0
- package/specs/financial/swift-code-finder.json +31 -2
- package/specs/financial/swift-code-lookup.json +23 -0
- package/specs/financial/vat-number-validation.json +23 -0
- package/specs/financial/vat-rates-by-ip.json +23 -0
- package/specs/financial/vat-rates-country.json +23 -0
- package/specs/general/usage-credits.json +18 -0
- package/specs/geocoding/forward-geocoding.json +23 -0
- package/specs/geocoding/reverse-geocoding.json +18 -0
- package/specs/geodb/administrative-units-details.json +23 -0
- package/specs/geodb/administrative-units-levels.json +23 -0
- package/specs/geodb/administrative-units.json +23 -0
- package/specs/geodb/cities.json +23 -0
- package/specs/geodb/countries-details.json +18 -0
- package/specs/geodb/countries.json +18 -0
- package/specs/geodb/flags-supported.json +13 -0
- package/specs/geodb/flags.json +23 -0
- package/specs/geodb/regions.json +13 -0
- package/specs/geodb/subregions.json +23 -0
- package/specs/ip-intelligence/bulk-ip-lookup.json +23 -0
- package/specs/ip-intelligence/bulk-ip-threat-intelligence.json +18 -0
- package/specs/ip-intelligence/ip-locator.json +33 -5
- package/specs/ip-intelligence/ip-threat-intelligence.json +23 -0
- package/specs/other/astronomy-data.json +24 -2
- package/specs/pdf/bulk-pdf-generator.json +343 -0
- package/specs/pdf/delete-pdf-page.json +33 -21
- package/specs/pdf/linearize-pdf.json +31 -19
- package/specs/pdf/merge-pdf.json +30 -18
- package/specs/pdf/pdf-compress.json +32 -25
- package/specs/pdf/pdf-decrypt.json +32 -21
- package/specs/pdf/pdf-encrypt.json +31 -19
- package/specs/pdf/pdf-extract-pages.json +33 -21
- package/specs/pdf/pdf-file-status.json +23 -0
- package/specs/pdf/pdf-file.json +23 -0
- package/specs/pdf/pdf-files.json +13 -0
- package/specs/pdf/pdf-generator.json +497 -0
- package/specs/pdf/pdf-resource-download.json +23 -0
- package/specs/pdf/pdf-resource-upload-binary.json +29 -16
- package/specs/pdf/pdf-resource-upload.json +30 -19
- package/specs/pdf/pdf-restrict.json +32 -20
- package/specs/pdf/pdf-split-pages.json +33 -21
- package/specs/pdf/pdf-task-status.json +23 -0
- package/specs/pdf/pdf-to-image.json +90 -101
- package/specs/pdf/pdf-unrestrict.json +32 -20
- package/specs/pdf/rotate-pdf-pages.json +32 -20
- package/specs/phone-validation/bulk-phone-number-validation.json +54 -16
- package/specs/phone-validation/phone-number-validation.json +33 -0
- package/specs/scraper/web-scraper.json +53 -0
- package/specs/screenshot/bulk-screenshot.json +53 -0
- package/specs/screenshot/website-screenshot.json +53 -0
- package/specs/ssl/ssl-certificate-chain-lookup.json +28 -0
- package/specs/ssl/ssl-certificate-lookup.json +28 -0
- package/specs/timezone/timezone-converter.json +23 -0
- package/specs/timezone/timezone-lookup.json +25 -2
- package/specs/user-agent/bulk-user-agent-parser.json +20 -2
- package/specs/user-agent/user-agent-parser.json +18 -0
- package/specs/weather/air-quality.json +23 -0
- package/specs/weather/bulk-live-weather.json +18 -0
- package/specs/weather/flood-forecast.json +23 -0
- package/specs/weather/historical-weather.json +23 -0
- package/specs/weather/live-weather.json +23 -0
- package/specs/weather/marine-weather.json +23 -0
- package/specs/weather/time-series-weather.json +18 -0
- package/specs/weather/weather-forecast.json +18 -0
- package/specs/whois/asn-lookup.json +23 -0
- package/specs/whois/bulk-whois-lookup.json +28 -0
- package/specs/whois/domain-whois-history-lookup.json +23 -0
- package/specs/whois/reverse-whois.json +53 -0
- package/specs/whois/whois-domain-lookup.json +28 -0
- package/specs/whois/whois-ip-lookup.json +23 -0
- package/specs/zip-code/bulk-zip-code-lookup.json +23 -0
- package/specs/zip-code/zip-code-api.json +23 -0
- package/specs/zip-code/zip-code-distance-match.json +23 -0
- package/specs/zip-code/zip-code-distance.json +23 -0
- package/specs/zip-code/zip-codes-by-city.json +23 -0
- package/specs/zip-code/zip-codes-by-region.json +24 -7
- package/specs/zip-code/zip-codes-radius-search.json +53 -0
|
@@ -169,6 +169,9 @@ paths:
|
|
|
169
169
|
#
|
|
170
170
|
# Copyright 1997-2026, American Registry for Internet Numbers, Ltd.
|
|
171
171
|
#
|
|
172
|
+
headers:
|
|
173
|
+
X-AF-Credits-Cost:
|
|
174
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
172
175
|
'206':
|
|
173
176
|
description: Partial Content -- The WHOIS server returned an incomplete response. Some fields may be missing or truncated.
|
|
174
177
|
content:
|
|
@@ -184,6 +187,9 @@ paths:
|
|
|
184
187
|
error: Partial Response
|
|
185
188
|
message: Partial response due to an error occurred while processing the request.
|
|
186
189
|
path: /v1.0/ip/whois/live
|
|
190
|
+
headers:
|
|
191
|
+
X-AF-Credits-Cost:
|
|
192
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
187
193
|
'400':
|
|
188
194
|
description: Bad Request -- Missing or invalid ip parameter
|
|
189
195
|
content:
|
|
@@ -207,6 +213,9 @@ paths:
|
|
|
207
213
|
error: Input parameter is not valid
|
|
208
214
|
message: Request-param 'ip' (not-an-ip) is not an IP address
|
|
209
215
|
path: /v1.0/ip-whois
|
|
216
|
+
headers:
|
|
217
|
+
X-AF-Credits-Cost:
|
|
218
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
210
219
|
components:
|
|
211
220
|
securitySchemes:
|
|
212
221
|
ApiKeyAuthHeader:
|
|
@@ -1118,6 +1127,11 @@ components:
|
|
|
1118
1127
|
- string
|
|
1119
1128
|
- 'null'
|
|
1120
1129
|
description: WHOIS data source for this route object.
|
|
1130
|
+
headers:
|
|
1131
|
+
X-AF-Credits-Cost:
|
|
1132
|
+
description: Specifies the number of credits consumed by the current request.
|
|
1133
|
+
schema:
|
|
1134
|
+
type: integer
|
|
1121
1135
|
security:
|
|
1122
1136
|
- ApiKeyAuthHeader: []
|
|
1123
1137
|
- ApiKeyAuthQuery: []
|
|
@@ -83,6 +83,9 @@ paths:
|
|
|
83
83
|
locality: Manhattan
|
|
84
84
|
latitude: 40.748436
|
|
85
85
|
longitude: -73.99402
|
|
86
|
+
headers:
|
|
87
|
+
X-AF-Credits-Cost:
|
|
88
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
86
89
|
'400':
|
|
87
90
|
description: Bad Request — Malformed body, invalid country code, or over the 100-code limit
|
|
88
91
|
content:
|
|
@@ -114,6 +117,9 @@ paths:
|
|
|
114
117
|
status: 400
|
|
115
118
|
error: Maximum Postal/Zip Code Limit Exceeded
|
|
116
119
|
message: A maximum of 100 postal/zip codes can be processed per request.
|
|
120
|
+
headers:
|
|
121
|
+
X-AF-Credits-Cost:
|
|
122
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
117
123
|
'404':
|
|
118
124
|
description: Not Found — None of the submitted codes matched anything
|
|
119
125
|
content:
|
|
@@ -129,6 +135,9 @@ paths:
|
|
|
129
135
|
status: 404
|
|
130
136
|
error: Postal/Zip Codes Not Found
|
|
131
137
|
message: None of the provided postal/zip codes were found in our database.
|
|
138
|
+
headers:
|
|
139
|
+
X-AF-Credits-Cost:
|
|
140
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
132
141
|
components:
|
|
133
142
|
securitySchemes:
|
|
134
143
|
ApiKeyAuthHeader:
|
|
@@ -227,6 +236,11 @@ components:
|
|
|
227
236
|
type: string
|
|
228
237
|
format: date-time
|
|
229
238
|
description: Timestamp when the error occurred (ISO 8601).
|
|
239
|
+
headers:
|
|
240
|
+
X-AF-Credits-Cost:
|
|
241
|
+
description: Specifies the number of credits consumed by the current request.
|
|
242
|
+
schema:
|
|
243
|
+
type: integer
|
|
230
244
|
security:
|
|
231
245
|
- ApiKeyAuthHeader: []
|
|
232
246
|
- ApiKeyAuthQuery: []
|
|
@@ -89,6 +89,9 @@ paths:
|
|
|
89
89
|
locality: Kalia
|
|
90
90
|
latitude: -1.310763
|
|
91
91
|
longitude: 37.969997
|
|
92
|
+
headers:
|
|
93
|
+
X-AF-Credits-Cost:
|
|
94
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
92
95
|
'400':
|
|
93
96
|
description: Bad Request — Missing code or invalid country code
|
|
94
97
|
content:
|
|
@@ -112,6 +115,9 @@ paths:
|
|
|
112
115
|
status: 400
|
|
113
116
|
error: Invalid Country Code Provided
|
|
114
117
|
message: Only ISO 3166-1 alpha-2 codes country codes are supported.
|
|
118
|
+
headers:
|
|
119
|
+
X-AF-Credits-Cost:
|
|
120
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
115
121
|
'404':
|
|
116
122
|
description: Not Found — No location matches the given code
|
|
117
123
|
content:
|
|
@@ -127,6 +133,9 @@ paths:
|
|
|
127
133
|
status: 404
|
|
128
134
|
error: Postal/Zip Code Not Found
|
|
129
135
|
message: Provided postal/zip code was not found in our database.
|
|
136
|
+
headers:
|
|
137
|
+
X-AF-Credits-Cost:
|
|
138
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
130
139
|
components:
|
|
131
140
|
securitySchemes:
|
|
132
141
|
ApiKeyAuthHeader:
|
|
@@ -211,6 +220,11 @@ components:
|
|
|
211
220
|
type: string
|
|
212
221
|
format: date-time
|
|
213
222
|
description: Timestamp when the error occurred (ISO 8601).
|
|
223
|
+
headers:
|
|
224
|
+
X-AF-Credits-Cost:
|
|
225
|
+
description: Specifies the number of credits consumed by the current request.
|
|
226
|
+
schema:
|
|
227
|
+
type: integer
|
|
214
228
|
security:
|
|
215
229
|
- ApiKeyAuthHeader: []
|
|
216
230
|
- ApiKeyAuthQuery: []
|
|
@@ -71,6 +71,9 @@ paths:
|
|
|
71
71
|
value:
|
|
72
72
|
result_count: 0
|
|
73
73
|
results: []
|
|
74
|
+
headers:
|
|
75
|
+
X-AF-Credits-Cost:
|
|
76
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
74
77
|
'400':
|
|
75
78
|
description: Bad Request — Missing/invalid body, country, or unit, or over the 100-code limit
|
|
76
79
|
content:
|
|
@@ -118,6 +121,9 @@ paths:
|
|
|
118
121
|
status: 400
|
|
119
122
|
error: Maximum Postal/Zip Code Limit Exceeded
|
|
120
123
|
message: A maximum of 100 postal/zip codes can be processed per request.
|
|
124
|
+
headers:
|
|
125
|
+
X-AF-Credits-Cost:
|
|
126
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
121
127
|
'404':
|
|
122
128
|
description: Not Found — None of the submitted codes matched anything
|
|
123
129
|
content:
|
|
@@ -133,6 +139,9 @@ paths:
|
|
|
133
139
|
status: 404
|
|
134
140
|
error: Postal/Zip Codes Not Found
|
|
135
141
|
message: None of the provided postal/zip codes were found in our database.
|
|
142
|
+
headers:
|
|
143
|
+
X-AF-Credits-Cost:
|
|
144
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
136
145
|
components:
|
|
137
146
|
securitySchemes:
|
|
138
147
|
ApiKeyAuthHeader:
|
|
@@ -234,6 +243,11 @@ components:
|
|
|
234
243
|
type: string
|
|
235
244
|
format: date-time
|
|
236
245
|
description: Timestamp when the error occurred (ISO 8601).
|
|
246
|
+
headers:
|
|
247
|
+
X-AF-Credits-Cost:
|
|
248
|
+
description: Specifies the number of credits consumed by the current request.
|
|
249
|
+
schema:
|
|
250
|
+
type: integer
|
|
237
251
|
security:
|
|
238
252
|
- ApiKeyAuthHeader: []
|
|
239
253
|
- ApiKeyAuthQuery: []
|
|
@@ -62,6 +62,9 @@ paths:
|
|
|
62
62
|
distance: 3948.696
|
|
63
63
|
- code: '94103'
|
|
64
64
|
distance: 544.134
|
|
65
|
+
headers:
|
|
66
|
+
X-AF-Credits-Cost:
|
|
67
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
65
68
|
'400':
|
|
66
69
|
description: Bad Request — Missing/invalid body, country, or unit, or over the 100-code limit
|
|
67
70
|
content:
|
|
@@ -109,6 +112,9 @@ paths:
|
|
|
109
112
|
status: 400
|
|
110
113
|
error: Maximum Postal/Zip Code Limit Exceeded
|
|
111
114
|
message: A maximum of 100 postal/zip codes can be processed per request.
|
|
115
|
+
headers:
|
|
116
|
+
X-AF-Credits-Cost:
|
|
117
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
112
118
|
'404':
|
|
113
119
|
description: Not Found — None of the compare codes matched anything
|
|
114
120
|
content:
|
|
@@ -124,6 +130,9 @@ paths:
|
|
|
124
130
|
status: 404
|
|
125
131
|
error: Postal/Zip Codes Not Found
|
|
126
132
|
message: None of the provided postal/zip codes were found in our database.
|
|
133
|
+
headers:
|
|
134
|
+
X-AF-Credits-Cost:
|
|
135
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
127
136
|
components:
|
|
128
137
|
securitySchemes:
|
|
129
138
|
ApiKeyAuthHeader:
|
|
@@ -228,6 +237,11 @@ components:
|
|
|
228
237
|
type: string
|
|
229
238
|
format: date-time
|
|
230
239
|
description: Timestamp when the error occurred (ISO 8601).
|
|
240
|
+
headers:
|
|
241
|
+
X-AF-Credits-Cost:
|
|
242
|
+
description: Specifies the number of credits consumed by the current request.
|
|
243
|
+
schema:
|
|
244
|
+
type: integer
|
|
231
245
|
security:
|
|
232
246
|
- ApiKeyAuthHeader: []
|
|
233
247
|
- ApiKeyAuthQuery: []
|
|
@@ -77,6 +77,9 @@ paths:
|
|
|
77
77
|
- '90210'
|
|
78
78
|
- '90211'
|
|
79
79
|
- '90212'
|
|
80
|
+
headers:
|
|
81
|
+
X-AF-Credits-Cost:
|
|
82
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
80
83
|
'400':
|
|
81
84
|
description: Bad Request — Missing city, invalid country code, or invalid page number
|
|
82
85
|
content:
|
|
@@ -108,6 +111,9 @@ paths:
|
|
|
108
111
|
status: 400
|
|
109
112
|
error: Invalid Page Number
|
|
110
113
|
message: The page number must be greater than 0.
|
|
114
|
+
headers:
|
|
115
|
+
X-AF-Credits-Cost:
|
|
116
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
111
117
|
'404':
|
|
112
118
|
description: Not Found — No codes for the city, or requested page is out of range
|
|
113
119
|
content:
|
|
@@ -131,6 +137,9 @@ paths:
|
|
|
131
137
|
status: 404
|
|
132
138
|
error: Page Not Found
|
|
133
139
|
message: The requested page exceeds the available page range.
|
|
140
|
+
headers:
|
|
141
|
+
X-AF-Credits-Cost:
|
|
142
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
134
143
|
components:
|
|
135
144
|
securitySchemes:
|
|
136
145
|
ApiKeyAuthHeader:
|
|
@@ -196,6 +205,11 @@ components:
|
|
|
196
205
|
type: string
|
|
197
206
|
format: date-time
|
|
198
207
|
description: Timestamp when the error occurred (ISO 8601).
|
|
208
|
+
headers:
|
|
209
|
+
X-AF-Credits-Cost:
|
|
210
|
+
description: Specifies the number of credits consumed by the current request.
|
|
211
|
+
schema:
|
|
212
|
+
type: integer
|
|
199
213
|
security:
|
|
200
214
|
- ApiKeyAuthHeader: []
|
|
201
215
|
- ApiKeyAuthQuery: []
|
|
@@ -76,6 +76,9 @@ paths:
|
|
|
76
76
|
- '90003'
|
|
77
77
|
- '90004'
|
|
78
78
|
- '90005'
|
|
79
|
+
headers:
|
|
80
|
+
X-AF-Credits-Cost:
|
|
81
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
79
82
|
'400':
|
|
80
83
|
description: Bad Request — Missing region/region_code, invalid country code, or invalid page number
|
|
81
84
|
content:
|
|
@@ -107,6 +110,9 @@ paths:
|
|
|
107
110
|
status: 400
|
|
108
111
|
error: Invalid Page Number
|
|
109
112
|
message: The page number must be greater than 0.
|
|
113
|
+
headers:
|
|
114
|
+
X-AF-Credits-Cost:
|
|
115
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
110
116
|
'404':
|
|
111
117
|
description: Not Found — No codes for the region, or requested page is out of range
|
|
112
118
|
content:
|
|
@@ -130,6 +136,9 @@ paths:
|
|
|
130
136
|
status: 404
|
|
131
137
|
error: Page Not Found
|
|
132
138
|
message: The requested page exceeds the available page range.
|
|
139
|
+
headers:
|
|
140
|
+
X-AF-Credits-Cost:
|
|
141
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
133
142
|
components:
|
|
134
143
|
securitySchemes:
|
|
135
144
|
ApiKeyAuthHeader:
|
|
@@ -195,6 +204,11 @@ components:
|
|
|
195
204
|
type: string
|
|
196
205
|
format: date-time
|
|
197
206
|
description: Timestamp when the error occurred (ISO 8601).
|
|
207
|
+
headers:
|
|
208
|
+
X-AF-Credits-Cost:
|
|
209
|
+
description: Specifies the number of credits consumed by the current request.
|
|
210
|
+
schema:
|
|
211
|
+
type: integer
|
|
198
212
|
security:
|
|
199
213
|
- ApiKeyAuthHeader: []
|
|
200
214
|
- ApiKeyAuthQuery: []
|
|
@@ -112,6 +112,13 @@ paths:
|
|
|
112
112
|
city: Los Angeles
|
|
113
113
|
district: West Hollywood (West Hollywood)
|
|
114
114
|
distance: 3.403
|
|
115
|
+
headers:
|
|
116
|
+
X-AF-Credits-Cost:
|
|
117
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
118
|
+
X-Concurrent-Threads:
|
|
119
|
+
$ref: '#/components/headers/X-Concurrent-Threads'
|
|
120
|
+
X-Concurrent-Threads-Active:
|
|
121
|
+
$ref: '#/components/headers/X-Concurrent-Threads-Active'
|
|
115
122
|
'400':
|
|
116
123
|
description: Bad Request — Missing/invalid radius, coordinates, or country code
|
|
117
124
|
content:
|
|
@@ -151,6 +158,13 @@ paths:
|
|
|
151
158
|
status: 400
|
|
152
159
|
error: Invalid Country Code Provided
|
|
153
160
|
message: Only ISO 3166-1 alpha-2 codes country codes are supported.
|
|
161
|
+
headers:
|
|
162
|
+
X-AF-Credits-Cost:
|
|
163
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
164
|
+
X-Concurrent-Threads:
|
|
165
|
+
$ref: '#/components/headers/X-Concurrent-Threads'
|
|
166
|
+
X-Concurrent-Threads-Active:
|
|
167
|
+
$ref: '#/components/headers/X-Concurrent-Threads-Active'
|
|
154
168
|
'404':
|
|
155
169
|
description: Not Found — Base ZIP/postal code does not exist
|
|
156
170
|
content:
|
|
@@ -166,6 +180,13 @@ paths:
|
|
|
166
180
|
status: 404
|
|
167
181
|
error: Base Postal/Zip Code Not Found
|
|
168
182
|
message: The provided base postal/zip code does not exist in our database.
|
|
183
|
+
headers:
|
|
184
|
+
X-AF-Credits-Cost:
|
|
185
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
186
|
+
X-Concurrent-Threads:
|
|
187
|
+
$ref: '#/components/headers/X-Concurrent-Threads'
|
|
188
|
+
X-Concurrent-Threads-Active:
|
|
189
|
+
$ref: '#/components/headers/X-Concurrent-Threads-Active'
|
|
169
190
|
components:
|
|
170
191
|
securitySchemes:
|
|
171
192
|
ApiKeyAuthHeader:
|
|
@@ -257,6 +278,19 @@ components:
|
|
|
257
278
|
type: string
|
|
258
279
|
format: date-time
|
|
259
280
|
description: Timestamp when the error occurred (ISO 8601).
|
|
281
|
+
headers:
|
|
282
|
+
X-AF-Credits-Cost:
|
|
283
|
+
description: Specifies the number of credits consumed by the current request.
|
|
284
|
+
schema:
|
|
285
|
+
type: integer
|
|
286
|
+
X-Concurrent-Threads:
|
|
287
|
+
description: Specifies the maximum number of concurrent requests allowed.
|
|
288
|
+
schema:
|
|
289
|
+
type: integer
|
|
290
|
+
X-Concurrent-Threads-Active:
|
|
291
|
+
description: Indicates the number of active concurrent requests being processed.
|
|
292
|
+
schema:
|
|
293
|
+
type: integer
|
|
260
294
|
security:
|
|
261
295
|
- ApiKeyAuthHeader: []
|
|
262
296
|
- ApiKeyAuthQuery: []
|
package/package.json
CHANGED
|
@@ -96,6 +96,11 @@
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
+
},
|
|
100
|
+
"headers": {
|
|
101
|
+
"X-AF-Credits-Cost": {
|
|
102
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
103
|
+
}
|
|
99
104
|
}
|
|
100
105
|
},
|
|
101
106
|
"400": {
|
|
@@ -148,6 +153,11 @@
|
|
|
148
153
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
149
154
|
}
|
|
150
155
|
}
|
|
156
|
+
},
|
|
157
|
+
"headers": {
|
|
158
|
+
"X-AF-Credits-Cost": {
|
|
159
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
160
|
+
}
|
|
151
161
|
}
|
|
152
162
|
},
|
|
153
163
|
"404": {
|
|
@@ -180,6 +190,11 @@
|
|
|
180
190
|
}
|
|
181
191
|
}
|
|
182
192
|
}
|
|
193
|
+
},
|
|
194
|
+
"headers": {
|
|
195
|
+
"X-AF-Credits-Cost": {
|
|
196
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
197
|
+
}
|
|
183
198
|
}
|
|
184
199
|
}
|
|
185
200
|
}
|
|
@@ -288,6 +303,14 @@
|
|
|
288
303
|
}
|
|
289
304
|
}
|
|
290
305
|
}
|
|
306
|
+
},
|
|
307
|
+
"headers": {
|
|
308
|
+
"X-AF-Credits-Cost": {
|
|
309
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
310
|
+
"schema": {
|
|
311
|
+
"type": "integer"
|
|
312
|
+
}
|
|
313
|
+
}
|
|
291
314
|
}
|
|
292
315
|
},
|
|
293
316
|
"security": [
|
|
@@ -113,6 +113,11 @@
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
+
},
|
|
117
|
+
"headers": {
|
|
118
|
+
"X-AF-Credits-Cost": {
|
|
119
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
120
|
+
}
|
|
116
121
|
}
|
|
117
122
|
},
|
|
118
123
|
"400": {
|
|
@@ -145,6 +150,11 @@
|
|
|
145
150
|
}
|
|
146
151
|
}
|
|
147
152
|
}
|
|
153
|
+
},
|
|
154
|
+
"headers": {
|
|
155
|
+
"X-AF-Credits-Cost": {
|
|
156
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
157
|
+
}
|
|
148
158
|
}
|
|
149
159
|
},
|
|
150
160
|
"404": {
|
|
@@ -177,6 +187,11 @@
|
|
|
177
187
|
}
|
|
178
188
|
}
|
|
179
189
|
}
|
|
190
|
+
},
|
|
191
|
+
"headers": {
|
|
192
|
+
"X-AF-Credits-Cost": {
|
|
193
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
194
|
+
}
|
|
180
195
|
}
|
|
181
196
|
}
|
|
182
197
|
}
|
|
@@ -304,6 +319,14 @@
|
|
|
304
319
|
}
|
|
305
320
|
}
|
|
306
321
|
}
|
|
322
|
+
},
|
|
323
|
+
"headers": {
|
|
324
|
+
"X-AF-Credits-Cost": {
|
|
325
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
326
|
+
"schema": {
|
|
327
|
+
"type": "integer"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
307
330
|
}
|
|
308
331
|
},
|
|
309
332
|
"security": [
|
|
@@ -87,6 +87,11 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
+
},
|
|
91
|
+
"headers": {
|
|
92
|
+
"X-AF-Credits-Cost": {
|
|
93
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
94
|
+
}
|
|
90
95
|
}
|
|
91
96
|
}
|
|
92
97
|
}
|
|
@@ -202,6 +207,14 @@
|
|
|
202
207
|
}
|
|
203
208
|
}
|
|
204
209
|
}
|
|
210
|
+
},
|
|
211
|
+
"headers": {
|
|
212
|
+
"X-AF-Credits-Cost": {
|
|
213
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
214
|
+
"schema": {
|
|
215
|
+
"type": "integer"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
205
218
|
}
|
|
206
219
|
},
|
|
207
220
|
"security": [
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"paths": {
|
|
20
20
|
"/commodity/time-series": {
|
|
21
21
|
"get": {
|
|
22
|
-
"tags": [
|
|
23
|
-
"Commodity APIs"
|
|
24
|
-
],
|
|
22
|
+
"tags": ["Commodity APIs"],
|
|
25
23
|
"summary": "Get commodity price time series",
|
|
26
24
|
"description": "Returns day-by-day OHLC data for the requested commodity symbols within a date range.",
|
|
27
25
|
"operationId": "getCommodityTimeSeries",
|
|
@@ -34,9 +32,7 @@
|
|
|
34
32
|
"schema": {
|
|
35
33
|
"type": "string",
|
|
36
34
|
"default": "json",
|
|
37
|
-
"enum": [
|
|
38
|
-
"json"
|
|
39
|
-
]
|
|
35
|
+
"enum": ["json"]
|
|
40
36
|
}
|
|
41
37
|
},
|
|
42
38
|
{
|
|
@@ -112,10 +108,15 @@
|
|
|
112
108
|
}
|
|
113
109
|
}
|
|
114
110
|
}
|
|
111
|
+
},
|
|
112
|
+
"headers": {
|
|
113
|
+
"X-AF-Credits-Cost": {
|
|
114
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
115
|
+
}
|
|
115
116
|
}
|
|
116
117
|
},
|
|
117
118
|
"400": {
|
|
118
|
-
"description": "Bad Request
|
|
119
|
+
"description": "Bad Request — Missing parameters, invalid dates, or date range exceeded",
|
|
119
120
|
"content": {
|
|
120
121
|
"application/json": {
|
|
121
122
|
"examples": {
|
|
@@ -164,6 +165,11 @@
|
|
|
164
165
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
165
166
|
}
|
|
166
167
|
}
|
|
168
|
+
},
|
|
169
|
+
"headers": {
|
|
170
|
+
"X-AF-Credits-Cost": {
|
|
171
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
172
|
+
}
|
|
167
173
|
}
|
|
168
174
|
},
|
|
169
175
|
"404": {
|
|
@@ -196,6 +202,11 @@
|
|
|
196
202
|
}
|
|
197
203
|
}
|
|
198
204
|
}
|
|
205
|
+
},
|
|
206
|
+
"headers": {
|
|
207
|
+
"X-AF-Credits-Cost": {
|
|
208
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
209
|
+
}
|
|
199
210
|
}
|
|
200
211
|
}
|
|
201
212
|
}
|
|
@@ -220,12 +231,7 @@
|
|
|
220
231
|
"schemas": {
|
|
221
232
|
"CommodityTimeSeriesResponse": {
|
|
222
233
|
"type": "object",
|
|
223
|
-
"required": [
|
|
224
|
-
"success",
|
|
225
|
-
"startDate",
|
|
226
|
-
"endDate",
|
|
227
|
-
"rates"
|
|
228
|
-
],
|
|
234
|
+
"required": ["success", "startDate", "endDate", "rates"],
|
|
229
235
|
"properties": {
|
|
230
236
|
"success": {
|
|
231
237
|
"type": "boolean",
|
|
@@ -316,6 +322,14 @@
|
|
|
316
322
|
}
|
|
317
323
|
}
|
|
318
324
|
}
|
|
325
|
+
},
|
|
326
|
+
"headers": {
|
|
327
|
+
"X-AF-Credits-Cost": {
|
|
328
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
329
|
+
"schema": {
|
|
330
|
+
"type": "integer"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
319
333
|
}
|
|
320
334
|
},
|
|
321
335
|
"security": [
|
|
@@ -88,6 +88,11 @@
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
+
},
|
|
92
|
+
"headers": {
|
|
93
|
+
"X-AF-Credits-Cost": {
|
|
94
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
95
|
+
}
|
|
91
96
|
}
|
|
92
97
|
},
|
|
93
98
|
"400": {
|
|
@@ -120,6 +125,11 @@
|
|
|
120
125
|
}
|
|
121
126
|
}
|
|
122
127
|
}
|
|
128
|
+
},
|
|
129
|
+
"headers": {
|
|
130
|
+
"X-AF-Credits-Cost": {
|
|
131
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
132
|
+
}
|
|
123
133
|
}
|
|
124
134
|
},
|
|
125
135
|
"404": {
|
|
@@ -152,6 +162,11 @@
|
|
|
152
162
|
}
|
|
153
163
|
}
|
|
154
164
|
}
|
|
165
|
+
},
|
|
166
|
+
"headers": {
|
|
167
|
+
"X-AF-Credits-Cost": {
|
|
168
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
169
|
+
}
|
|
155
170
|
}
|
|
156
171
|
}
|
|
157
172
|
}
|
|
@@ -260,6 +275,14 @@
|
|
|
260
275
|
},
|
|
261
276
|
"description": "Standard error envelope returned by the API on failed requests."
|
|
262
277
|
}
|
|
278
|
+
},
|
|
279
|
+
"headers": {
|
|
280
|
+
"X-AF-Credits-Cost": {
|
|
281
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
282
|
+
"schema": {
|
|
283
|
+
"type": "integer"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
263
286
|
}
|
|
264
287
|
},
|
|
265
288
|
"security": [
|
|
@@ -97,6 +97,11 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
+
},
|
|
101
|
+
"headers": {
|
|
102
|
+
"X-AF-Credits-Cost": {
|
|
103
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
104
|
+
}
|
|
100
105
|
}
|
|
101
106
|
},
|
|
102
107
|
"400": {
|
|
@@ -139,6 +144,11 @@
|
|
|
139
144
|
}
|
|
140
145
|
}
|
|
141
146
|
}
|
|
147
|
+
},
|
|
148
|
+
"headers": {
|
|
149
|
+
"X-AF-Credits-Cost": {
|
|
150
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
151
|
+
}
|
|
142
152
|
}
|
|
143
153
|
},
|
|
144
154
|
"404": {
|
|
@@ -161,6 +171,11 @@
|
|
|
161
171
|
}
|
|
162
172
|
}
|
|
163
173
|
}
|
|
174
|
+
},
|
|
175
|
+
"headers": {
|
|
176
|
+
"X-AF-Credits-Cost": {
|
|
177
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
178
|
+
}
|
|
164
179
|
}
|
|
165
180
|
}
|
|
166
181
|
}
|
|
@@ -248,6 +263,14 @@
|
|
|
248
263
|
}
|
|
249
264
|
}
|
|
250
265
|
}
|
|
266
|
+
},
|
|
267
|
+
"headers": {
|
|
268
|
+
"X-AF-Credits-Cost": {
|
|
269
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
270
|
+
"schema": {
|
|
271
|
+
"type": "integer"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
251
274
|
}
|
|
252
275
|
},
|
|
253
276
|
"security": [
|