@apifreaks/openapi-specs 0.4.24 → 0.4.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3722 -546
- package/dist/index.js +3722 -546
- package/dist/specs/commodity/commodity-fluctuation.yaml +33 -2
- package/dist/specs/commodity/commodity-intraday-rates.yaml +33 -2
- package/dist/specs/commodity/commodity-prices.yaml +33 -2
- package/dist/specs/commodity/commodity-symbols.yaml +68 -1
- package/dist/specs/commodity/commodity-time-series.yaml +33 -2
- package/dist/specs/commodity/historical-commodity-prices.yaml +33 -2
- package/dist/specs/dns/bulk-dns-lookup.yaml +45 -3
- package/dist/specs/dns/dns-history-lookup.yaml +76 -3
- package/dist/specs/dns/dns-lookup.yaml +72 -6
- package/dist/specs/dns/reverse-dns-lookup.yaml +91 -2
- package/dist/specs/financial/bulk-vat-rates-country.yaml +18 -0
- package/dist/specs/financial/financial-apis-supported-countries.yaml +75 -17
- package/dist/specs/financial/iban-validation.yaml +19 -1
- package/dist/specs/financial/swift-code-finder.yaml +18 -0
- package/dist/specs/financial/swift-code-lookup.yaml +18 -0
- package/dist/specs/financial/vat-number-validation.yaml +48 -0
- package/dist/specs/financial/vat-rates-by-ip.yaml +18 -0
- package/dist/specs/financial/vat-rates-country.yaml +18 -0
- package/dist/specs/geocoding/forward-geocoding.yaml +95 -2
- package/dist/specs/geocoding/reverse-geocoding.yaml +71 -0
- package/dist/specs/phone-number-validation/bulk-phone-number-validation.yaml +25 -3
- package/dist/specs/phone-number-validation/phone-validation.yaml +49 -3
- package/dist/specs/scraper/web-scraper.yaml +85 -7
- package/dist/specs/weather/air-quality.yaml +71 -5
- package/dist/specs/weather/astronomy-data.yaml +84 -1
- package/dist/specs/weather/bulk-live-weather.yaml +159 -3
- package/dist/specs/weather/flood-forecast.yaml +61 -11
- package/dist/specs/weather/historical-weather.yaml +53 -3
- package/dist/specs/weather/live-weather.yaml +66 -15
- package/dist/specs/weather/marine-weather.yaml +74 -8
- package/dist/specs/weather/time-series-weather.yaml +60 -8
- package/dist/specs/weather/weather-forecast.yaml +76 -6
- package/package.json +1 -1
- package/specs/commodity/commodity-fluctuation.json +44 -2
- package/specs/commodity/commodity-intraday-rates.json +44 -2
- package/specs/commodity/commodity-prices.json +44 -2
- package/specs/commodity/commodity-symbols.json +95 -1
- package/specs/commodity/commodity-time-series.json +44 -2
- package/specs/commodity/historical-commodity-prices.json +44 -2
- package/specs/dns/bulk-dns-lookup.json +63 -4
- package/specs/dns/dns-history-lookup.json +102 -3
- package/specs/dns/dns-lookup.json +96 -6
- package/specs/dns/reverse-dns-lookup.json +121 -2
- package/specs/financial/bulk-vat-rates-country.json +27 -0
- package/specs/financial/financial-apis-supported-countries.json +114 -23
- package/specs/financial/iban-validation.json +28 -1
- package/specs/financial/swift-code-finder.json +27 -0
- package/specs/financial/swift-code-lookup.json +27 -0
- package/specs/financial/vat-number-validation.json +72 -0
- package/specs/financial/vat-rates-by-ip.json +27 -0
- package/specs/financial/vat-rates-country.json +27 -0
- package/specs/geocoding/forward-geocoding.json +127 -2
- package/specs/geocoding/reverse-geocoding.json +102 -0
- package/specs/phone-number-validation/bulk-phone-number-validation.json +35 -3
- package/specs/phone-number-validation/phone-validation.json +65 -3
- package/specs/scraper/web-scraper.json +110 -7
- package/specs/weather/air-quality.json +92 -5
- package/specs/weather/astronomy-data.json +122 -1
- package/specs/weather/bulk-live-weather.json +227 -3
- package/specs/weather/flood-forecast.json +78 -11
- package/specs/weather/historical-weather.json +70 -3
- package/specs/weather/live-weather.json +85 -17
- package/specs/weather/marine-weather.json +95 -8
- package/specs/weather/time-series-weather.json +82 -8
- package/specs/weather/weather-forecast.json +107 -6
|
@@ -2,7 +2,7 @@ openapi: 3.1.1
|
|
|
2
2
|
info:
|
|
3
3
|
title: DNS Lookup API - Live DNS Records, TTLs & PTR Lookups for Any Hostname
|
|
4
4
|
version: 1.0.0
|
|
5
|
-
description: Performs a live DNS lookup for any hostname or IP address, returning real-time records from authoritative name servers. Supports A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record types, plus PTR records
|
|
5
|
+
description: Performs a live DNS lookup for any hostname or IP address, returning real-time records from authoritative name servers. Supports A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record types, plus PTR records, which are looked up from an IP address passed in the ipAddress parameter with type PTR or all. Each record object includes parsed fields such as address, target, priority, TTL, serial, or verification strings, depending on the record type. Pass a comma-separated list of record types with the type parameter, or use 'all' to retrieve every supported type. The optional format parameter allows switching between JSON and XML output.
|
|
6
6
|
contact:
|
|
7
7
|
name: APIFreaks Support
|
|
8
8
|
url: https://apifreaks.com/contact
|
|
@@ -34,13 +34,13 @@ paths:
|
|
|
34
34
|
required: false
|
|
35
35
|
schema:
|
|
36
36
|
type: string
|
|
37
|
-
description: Hostname or URL whose DNS records are required.
|
|
37
|
+
description: Hostname or URL whose DNS records are required. Send `host-name`, `ipAddress`, or both.
|
|
38
38
|
- name: ipAddress
|
|
39
39
|
in: query
|
|
40
40
|
required: false
|
|
41
41
|
schema:
|
|
42
42
|
type: string
|
|
43
|
-
description:
|
|
43
|
+
description: IPv4 or IPv6 address whose PTR record is required. Use it with `type` set to `PTR` or `all`. Send `host-name`, `ipAddress`, or both; with both, `host-name` is used for the other record types and `ipAddress` for the PTR record.
|
|
44
44
|
- name: type
|
|
45
45
|
in: query
|
|
46
46
|
required: true
|
|
@@ -55,8 +55,9 @@ paths:
|
|
|
55
55
|
- SPF
|
|
56
56
|
- TXT
|
|
57
57
|
- CNAME
|
|
58
|
+
- PTR
|
|
58
59
|
- all
|
|
59
|
-
description: 'A comma-separated list of DNS record types for lookup. Possible values: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, or all.
|
|
60
|
+
description: 'A comma-separated list of DNS record types for lookup. Possible values: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, PTR, or all. Values are case-insensitive. PTR is looked up from `ipAddress`; the other types are looked up from `host-name`. With only `ipAddress` sent, use `PTR` or `all`.'
|
|
60
61
|
responses:
|
|
61
62
|
'200':
|
|
62
63
|
description: Successful DNS lookup response
|
|
@@ -187,7 +188,7 @@ paths:
|
|
|
187
188
|
X-AF-Credits-Cost:
|
|
188
189
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
189
190
|
'400':
|
|
190
|
-
description: Bad Request — Missing or invalid parameters
|
|
191
|
+
description: Bad Request — Missing or invalid parameters, or missing API key
|
|
191
192
|
content:
|
|
192
193
|
application/json:
|
|
193
194
|
schema:
|
|
@@ -217,6 +218,71 @@ paths:
|
|
|
217
218
|
error: Invalid Param Exception
|
|
218
219
|
message: 'Please pass domain param correct value[For Technical Support: support@whoisfreaks.com]'
|
|
219
220
|
path: /v2.0/dns/live
|
|
221
|
+
ptrWithoutIpAddress:
|
|
222
|
+
summary: PTR requested without ipAddress
|
|
223
|
+
value:
|
|
224
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
225
|
+
status: 400
|
|
226
|
+
error: Invalid Param Exception
|
|
227
|
+
message: IP Address is required!
|
|
228
|
+
path: /v2.0/dns/live
|
|
229
|
+
recordTypeWithoutHostName:
|
|
230
|
+
summary: Non-PTR type requested with only ipAddress
|
|
231
|
+
value:
|
|
232
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
233
|
+
status: 400
|
|
234
|
+
error: Invalid Param Exception
|
|
235
|
+
message: Domain name is required!
|
|
236
|
+
path: /v2.0/dns/live
|
|
237
|
+
invalidIpAddress:
|
|
238
|
+
summary: Malformed ipAddress
|
|
239
|
+
value:
|
|
240
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
241
|
+
status: 400
|
|
242
|
+
error: Invalid Param Exception
|
|
243
|
+
message: Pass a valid value for 'ipAddress' param.
|
|
244
|
+
path: /v2.0/dns/live
|
|
245
|
+
missingApiKey:
|
|
246
|
+
summary: API key not sent
|
|
247
|
+
value:
|
|
248
|
+
error: Invalid Param Exception
|
|
249
|
+
message: Please provide apiKey
|
|
250
|
+
path: /v1.0/domain/dns/live
|
|
251
|
+
status: 400
|
|
252
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
253
|
+
headers:
|
|
254
|
+
X-AF-Credits-Cost:
|
|
255
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
256
|
+
'401':
|
|
257
|
+
description: Unauthorized — API key invalid
|
|
258
|
+
content:
|
|
259
|
+
application/json:
|
|
260
|
+
schema:
|
|
261
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
262
|
+
examples:
|
|
263
|
+
invalidApiKey:
|
|
264
|
+
summary: Invalid API key
|
|
265
|
+
value:
|
|
266
|
+
error: API Access Exception
|
|
267
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
268
|
+
path: /v1.0/domain/dns/live
|
|
269
|
+
status: 401
|
|
270
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
271
|
+
'406':
|
|
272
|
+
description: Unsupported Media Type — format is not json or xml
|
|
273
|
+
content:
|
|
274
|
+
application/json:
|
|
275
|
+
schema:
|
|
276
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
277
|
+
examples:
|
|
278
|
+
badFormat:
|
|
279
|
+
summary: format value not supported
|
|
280
|
+
value:
|
|
281
|
+
error: Unsupported Media Type
|
|
282
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
283
|
+
path: /v1.0/domain/dns/live
|
|
284
|
+
status: 406
|
|
285
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
220
286
|
headers:
|
|
221
287
|
X-AF-Credits-Cost:
|
|
222
288
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -254,7 +320,7 @@ components:
|
|
|
254
320
|
description: Indicates whether the domain is registered.
|
|
255
321
|
ipAddress:
|
|
256
322
|
type: string
|
|
257
|
-
description: IP address queried (present when ipAddress parameter is used instead of host-name).
|
|
323
|
+
description: IP address queried (present when the ipAddress parameter is used, together with or instead of host-name).
|
|
258
324
|
dnsTypes:
|
|
259
325
|
$ref: '#/components/schemas/DnsTypes'
|
|
260
326
|
description: Map of each record type found to its IANA type code. Omitted when the domain is not registered or no records were found.
|
|
@@ -132,7 +132,7 @@ paths:
|
|
|
132
132
|
X-Concurrent-Threads-Active:
|
|
133
133
|
$ref: '#/components/headers/X-Concurrent-Threads-Active'
|
|
134
134
|
'400':
|
|
135
|
-
description: Invalid DNS type
|
|
135
|
+
description: Bad Request — Invalid DNS type, invalid value, missing required parameter, or missing API key
|
|
136
136
|
content:
|
|
137
137
|
application/json:
|
|
138
138
|
schema:
|
|
@@ -154,6 +154,54 @@ paths:
|
|
|
154
154
|
path: /v1.0/domain/dns/reverse
|
|
155
155
|
status: 400
|
|
156
156
|
timestamp: '2026-07-23T09:51:58.951Z'
|
|
157
|
+
ptrNotSupported:
|
|
158
|
+
summary: PTR requested (not available in reverse lookup)
|
|
159
|
+
value:
|
|
160
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
161
|
+
status: 400
|
|
162
|
+
error: Invalid Param Exception
|
|
163
|
+
message: Reverse data does not have PTR record support. kindly try other Record Types.
|
|
164
|
+
path: /v2.1/dns/reverse
|
|
165
|
+
multipleTypes:
|
|
166
|
+
summary: More than one type sent
|
|
167
|
+
value:
|
|
168
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
169
|
+
status: 400
|
|
170
|
+
error: Invalid Param Exception
|
|
171
|
+
message: Reverse query supports only single record type at a time.
|
|
172
|
+
path: /v2.1/dns/reverse
|
|
173
|
+
invalidIpv4:
|
|
174
|
+
summary: type=A with a value that is not an IPv4 address or CIDR
|
|
175
|
+
value:
|
|
176
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
177
|
+
status: 400
|
|
178
|
+
error: Invalid Param Exception
|
|
179
|
+
message: Please provide valid Ipv4 Address or CIDR Notation
|
|
180
|
+
path: /v2.1/dns/reverse
|
|
181
|
+
invalidIpv6:
|
|
182
|
+
summary: type=AAAA with a value that is not an IPv6 address or CIDR
|
|
183
|
+
value:
|
|
184
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
185
|
+
status: 400
|
|
186
|
+
error: Invalid Param Exception
|
|
187
|
+
message: Please provide valid Ipv6 Address or CIDR Notation
|
|
188
|
+
path: /v2.1/dns/reverse
|
|
189
|
+
cidrSuffixOutOfRange:
|
|
190
|
+
summary: CIDR suffix outside the supported range (16-32 for IPv4, 64-128 for IPv6)
|
|
191
|
+
value:
|
|
192
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
193
|
+
status: 400
|
|
194
|
+
error: CIDR Suffix Out of Range
|
|
195
|
+
message: IP Network Suffix must be in the range 16-32 for IPv4 CIDR Notation
|
|
196
|
+
path: /v2.1/dns/reverse
|
|
197
|
+
missingApiKey:
|
|
198
|
+
summary: API key not sent
|
|
199
|
+
value:
|
|
200
|
+
error: Invalid Param Exception
|
|
201
|
+
message: Please provide apiKey
|
|
202
|
+
path: /v1.0/domain/dns/reverse
|
|
203
|
+
status: 400
|
|
204
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
157
205
|
headers:
|
|
158
206
|
X-AF-Credits-Cost:
|
|
159
207
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -161,8 +209,23 @@ paths:
|
|
|
161
209
|
$ref: '#/components/headers/X-Concurrent-Threads'
|
|
162
210
|
X-Concurrent-Threads-Active:
|
|
163
211
|
$ref: '#/components/headers/X-Concurrent-Threads-Active'
|
|
212
|
+
'401':
|
|
213
|
+
description: Unauthorized — API key invalid
|
|
214
|
+
content:
|
|
215
|
+
application/json:
|
|
216
|
+
schema:
|
|
217
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
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: /v1.0/domain/dns/reverse
|
|
225
|
+
status: 401
|
|
226
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
164
227
|
'404':
|
|
165
|
-
description: No reverse DNS records found for the given input
|
|
228
|
+
description: Not Found — No reverse DNS records found for the given input, or wrong HTTP method
|
|
166
229
|
content:
|
|
167
230
|
application/json:
|
|
168
231
|
schema:
|
|
@@ -176,6 +239,14 @@ paths:
|
|
|
176
239
|
status: 404
|
|
177
240
|
error: Record not Found
|
|
178
241
|
message: 'No Record Found across: zzsuperrandomnonexistentmxprovider99988.com'
|
|
242
|
+
wrongMethod:
|
|
243
|
+
summary: Wrong HTTP method used on the endpoint
|
|
244
|
+
value:
|
|
245
|
+
error: Resource Not Found
|
|
246
|
+
message: The requested resource could not be found. Please verify the URL and try again.
|
|
247
|
+
path: /v1.0/domain/dns/reverse
|
|
248
|
+
status: 404
|
|
249
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
179
250
|
headers:
|
|
180
251
|
X-AF-Credits-Cost:
|
|
181
252
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -183,6 +254,24 @@ paths:
|
|
|
183
254
|
$ref: '#/components/headers/X-Concurrent-Threads'
|
|
184
255
|
X-Concurrent-Threads-Active:
|
|
185
256
|
$ref: '#/components/headers/X-Concurrent-Threads-Active'
|
|
257
|
+
'406':
|
|
258
|
+
description: Unsupported Media Type — format is not json or xml
|
|
259
|
+
content:
|
|
260
|
+
application/json:
|
|
261
|
+
schema:
|
|
262
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
263
|
+
examples:
|
|
264
|
+
badFormat:
|
|
265
|
+
summary: format value not supported
|
|
266
|
+
value:
|
|
267
|
+
error: Unsupported Media Type
|
|
268
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
269
|
+
path: /v1.0/domain/dns/reverse
|
|
270
|
+
status: 406
|
|
271
|
+
timestamp: '2026-11-25T10:07:00.000Z'
|
|
272
|
+
headers:
|
|
273
|
+
X-AF-Credits-Cost:
|
|
274
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
186
275
|
components:
|
|
187
276
|
securitySchemes:
|
|
188
277
|
ApiKeyAuthHeader:
|
|
@@ -125,6 +125,24 @@ paths:
|
|
|
125
125
|
headers:
|
|
126
126
|
X-AF-Credits-Cost:
|
|
127
127
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
128
|
+
'406':
|
|
129
|
+
description: Unsupported Media Type — format is not json or xml
|
|
130
|
+
content:
|
|
131
|
+
application/json:
|
|
132
|
+
schema:
|
|
133
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
134
|
+
examples:
|
|
135
|
+
badFormat:
|
|
136
|
+
summary: format value not supported
|
|
137
|
+
value:
|
|
138
|
+
error: Unsupported Media Type
|
|
139
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
140
|
+
path: /v1.0/vat/rates/country
|
|
141
|
+
status: 406
|
|
142
|
+
timestamp: '2026-11-25T10:00:55.394Z'
|
|
143
|
+
headers:
|
|
144
|
+
X-AF-Credits-Cost:
|
|
145
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
128
146
|
'413':
|
|
129
147
|
description: Payload Too Large — Request body exceeds the size limit (more than 100 entries in `countries`)
|
|
130
148
|
content:
|
|
@@ -2,7 +2,7 @@ openapi: 3.1.1
|
|
|
2
2
|
info:
|
|
3
3
|
title: Financial APIs Supported Countries Reference
|
|
4
4
|
version: 1.0.0
|
|
5
|
-
description: Retrieve the countries and states supported by the VAT, IBAN, and SWIFT APIs.
|
|
5
|
+
description: Retrieve the countries and states supported by the VAT, IBAN, and SWIFT APIs. Use the `type` query parameter (`vat`, `iban` or `swift`) to choose which list is returned; a call with a valid `type` returns only that list, under its own top-level key (VAT_Supported_Countries_And_States, IBAN_Supported_Countries or SWIFT_Supported_Countries). When `type` is omitted or is not one of the three values, all three lists are returned. VAT entries are keyed by lowercase country name and include an ISO code plus, for a handful of countries (US, Canada, Spain), a nested map of sub-national state/region codes. IBAN and SWIFT entries are flat arrays of {name, countryCode} objects.
|
|
6
6
|
contact:
|
|
7
7
|
name: APIFreaks Support
|
|
8
8
|
url: https://apifreaks.com/contact
|
|
@@ -16,7 +16,7 @@ paths:
|
|
|
16
16
|
tags:
|
|
17
17
|
- Financial APIs
|
|
18
18
|
summary: Get supported countries
|
|
19
|
-
description: Returns the countries and states supported by the VAT, IBAN,
|
|
19
|
+
description: Returns the list of countries (and, for VAT, states) supported by the VAT, IBAN, or SWIFT API, depending on the `type` parameter. Only the requested list is returned.
|
|
20
20
|
operationId: getSupportedCountries
|
|
21
21
|
parameters:
|
|
22
22
|
- name: format
|
|
@@ -34,17 +34,33 @@ paths:
|
|
|
34
34
|
required: false
|
|
35
35
|
schema:
|
|
36
36
|
type: string
|
|
37
|
-
|
|
37
|
+
enum:
|
|
38
|
+
- vat
|
|
39
|
+
- iban
|
|
40
|
+
- swift
|
|
41
|
+
description: 'Selects which list to return: `vat`, `iban` or `swift`. Each value returns only its own list. Matching is case-insensitive. If omitted, or set to any other value, all three lists are returned. There is no default.'
|
|
38
42
|
responses:
|
|
39
43
|
'200':
|
|
40
|
-
description: Successful response —
|
|
44
|
+
description: Successful response — returns the list selected by `type`, or all three lists when `type` is omitted or not recognised
|
|
41
45
|
content:
|
|
42
46
|
application/json:
|
|
43
47
|
schema:
|
|
44
48
|
$ref: '#/components/schemas/SupportedCountriesResponse'
|
|
45
49
|
examples:
|
|
46
|
-
|
|
47
|
-
summary:
|
|
50
|
+
allLists:
|
|
51
|
+
summary: type omitted — all three lists (truncated)
|
|
52
|
+
value:
|
|
53
|
+
VAT_Supported_Countries_And_States:
|
|
54
|
+
- germany:
|
|
55
|
+
code: de
|
|
56
|
+
IBAN_Supported_Countries:
|
|
57
|
+
- name: Albania
|
|
58
|
+
countryCode: AL
|
|
59
|
+
SWIFT_Supported_Countries:
|
|
60
|
+
- name: Afghanistan
|
|
61
|
+
countryCode: AF
|
|
62
|
+
vatList:
|
|
63
|
+
summary: type=vat — VAT list only (truncated)
|
|
48
64
|
value:
|
|
49
65
|
VAT_Supported_Countries_And_States:
|
|
50
66
|
- germany:
|
|
@@ -55,16 +71,40 @@ paths:
|
|
|
55
71
|
california: us:ca
|
|
56
72
|
new_york: us:ny
|
|
57
73
|
texas: us:tx
|
|
74
|
+
ibanList:
|
|
75
|
+
summary: type=iban — IBAN list only (truncated)
|
|
76
|
+
value:
|
|
58
77
|
IBAN_Supported_Countries:
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
|
|
78
|
+
- name: Albania
|
|
79
|
+
countryCode: AL
|
|
80
|
+
- name: Germany
|
|
81
|
+
countryCode: DE
|
|
82
|
+
swiftList:
|
|
83
|
+
summary: type=swift — SWIFT list only (truncated)
|
|
84
|
+
value:
|
|
63
85
|
SWIFT_Supported_Countries:
|
|
86
|
+
- name: Afghanistan
|
|
87
|
+
countryCode: AF
|
|
64
88
|
- name: Germany
|
|
65
89
|
countryCode: DE
|
|
66
|
-
|
|
67
|
-
|
|
90
|
+
headers:
|
|
91
|
+
X-AF-Credits-Cost:
|
|
92
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
93
|
+
'406':
|
|
94
|
+
description: Unsupported Media Type — format is not json or xml
|
|
95
|
+
content:
|
|
96
|
+
application/json:
|
|
97
|
+
schema:
|
|
98
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
99
|
+
examples:
|
|
100
|
+
badFormat:
|
|
101
|
+
summary: format value not supported
|
|
102
|
+
value:
|
|
103
|
+
error: Unsupported Media Type
|
|
104
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
105
|
+
path: /v1.0/vat/supported-countries
|
|
106
|
+
status: 406
|
|
107
|
+
timestamp: '2026-11-25T10:00:55.394Z'
|
|
68
108
|
headers:
|
|
69
109
|
X-AF-Credits-Cost:
|
|
70
110
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -83,11 +123,7 @@ components:
|
|
|
83
123
|
schemas:
|
|
84
124
|
SupportedCountriesResponse:
|
|
85
125
|
type: object
|
|
86
|
-
description: Countries and states supported by the VAT, IBAN, and SWIFT APIs.
|
|
87
|
-
required:
|
|
88
|
-
- VAT_Supported_Countries_And_States
|
|
89
|
-
- IBAN_Supported_Countries
|
|
90
|
-
- SWIFT_Supported_Countries
|
|
126
|
+
description: Countries and states supported by the VAT, IBAN, and SWIFT APIs. Exactly one of the three properties is present, depending on the `type` request parameter.
|
|
91
127
|
properties:
|
|
92
128
|
VAT_Supported_Countries_And_States:
|
|
93
129
|
type: array
|
|
@@ -108,6 +144,28 @@ components:
|
|
|
108
144
|
description: Array of countries supported by the SWIFT/BIC Code Lookup and Finder APIs.
|
|
109
145
|
items:
|
|
110
146
|
$ref: '#/components/schemas/SwiftCountryEntry'
|
|
147
|
+
ErrorResponse:
|
|
148
|
+
type: object
|
|
149
|
+
required:
|
|
150
|
+
- message
|
|
151
|
+
properties:
|
|
152
|
+
error:
|
|
153
|
+
type: string
|
|
154
|
+
description: Short error category or exception type.
|
|
155
|
+
message:
|
|
156
|
+
type: string
|
|
157
|
+
description: Human-readable error message describing the failure.
|
|
158
|
+
path:
|
|
159
|
+
type: string
|
|
160
|
+
description: API endpoint path that produced the error.
|
|
161
|
+
status:
|
|
162
|
+
type: integer
|
|
163
|
+
description: HTTP status code returned with the error.
|
|
164
|
+
timestamp:
|
|
165
|
+
type: string
|
|
166
|
+
format: date-time
|
|
167
|
+
description: Timestamp when the error occurred (ISO 8601).
|
|
168
|
+
description: Standard error envelope returned by the API on failed requests.
|
|
111
169
|
VatCountryEntry:
|
|
112
170
|
type: object
|
|
113
171
|
description: 'VAT country metadata: an ISO 3166-1 alpha-2 code, plus an optional map of sub-national states/regions for countries with state-level VAT (US, Canada, Spain).'
|
|
@@ -33,7 +33,7 @@ paths:
|
|
|
33
33
|
required: true
|
|
34
34
|
schema:
|
|
35
35
|
type: string
|
|
36
|
-
description: IBAN to validate.
|
|
36
|
+
description: 'IBAN to validate. Pass it as a single uppercase string with no spaces or separators; lowercase letters or spaces are not normalized for validation and make the result `valid: false` (is_valid_structure false).'
|
|
37
37
|
responses:
|
|
38
38
|
'200':
|
|
39
39
|
description: Successful response
|
|
@@ -141,6 +141,24 @@ paths:
|
|
|
141
141
|
headers:
|
|
142
142
|
X-AF-Credits-Cost:
|
|
143
143
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
144
|
+
'406':
|
|
145
|
+
description: Unsupported Media Type — format is not json or xml
|
|
146
|
+
content:
|
|
147
|
+
application/json:
|
|
148
|
+
schema:
|
|
149
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
150
|
+
examples:
|
|
151
|
+
badFormat:
|
|
152
|
+
summary: format value not supported
|
|
153
|
+
value:
|
|
154
|
+
error: Unsupported Media Type
|
|
155
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
156
|
+
path: /v1.0/iban/validation
|
|
157
|
+
status: 406
|
|
158
|
+
timestamp: '2026-11-25T10:00:55.394Z'
|
|
159
|
+
headers:
|
|
160
|
+
X-AF-Credits-Cost:
|
|
161
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
144
162
|
operationId: validateIban
|
|
145
163
|
components:
|
|
146
164
|
securitySchemes:
|
|
@@ -104,6 +104,24 @@ paths:
|
|
|
104
104
|
headers:
|
|
105
105
|
X-AF-Credits-Cost:
|
|
106
106
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
107
|
+
'406':
|
|
108
|
+
description: Unsupported Media Type — format is not json or xml
|
|
109
|
+
content:
|
|
110
|
+
application/json:
|
|
111
|
+
schema:
|
|
112
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
113
|
+
examples:
|
|
114
|
+
badFormat:
|
|
115
|
+
summary: format value not supported
|
|
116
|
+
value:
|
|
117
|
+
error: Unsupported Media Type
|
|
118
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
119
|
+
path: /v1.0/swift-code/finder
|
|
120
|
+
status: 406
|
|
121
|
+
timestamp: '2026-11-25T10:00:55.394Z'
|
|
122
|
+
headers:
|
|
123
|
+
X-AF-Credits-Cost:
|
|
124
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
107
125
|
components:
|
|
108
126
|
securitySchemes:
|
|
109
127
|
ApiKeyAuthHeader:
|
|
@@ -107,6 +107,24 @@ paths:
|
|
|
107
107
|
headers:
|
|
108
108
|
X-AF-Credits-Cost:
|
|
109
109
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
110
|
+
'406':
|
|
111
|
+
description: Unsupported Media Type — format is not json or xml
|
|
112
|
+
content:
|
|
113
|
+
application/json:
|
|
114
|
+
schema:
|
|
115
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
116
|
+
examples:
|
|
117
|
+
badFormat:
|
|
118
|
+
summary: format value not supported
|
|
119
|
+
value:
|
|
120
|
+
error: Unsupported Media Type
|
|
121
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
122
|
+
path: /v1.0/swift-code/lookup
|
|
123
|
+
status: 406
|
|
124
|
+
timestamp: '2026-11-25T10:00:55.394Z'
|
|
125
|
+
headers:
|
|
126
|
+
X-AF-Credits-Cost:
|
|
127
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
110
128
|
operationId: lookupSwiftCode
|
|
111
129
|
components:
|
|
112
130
|
securitySchemes:
|
|
@@ -97,6 +97,18 @@ paths:
|
|
|
97
97
|
summary: Unsupported VAT country code
|
|
98
98
|
value:
|
|
99
99
|
message: Unsupported VAT country code. Supported prefixes are UK/GB and EU VAT country codes.
|
|
100
|
+
InvalidRequesterCountry:
|
|
101
|
+
summary: requesterVatNumber has an invalid or unsupported country prefix
|
|
102
|
+
value:
|
|
103
|
+
message: The requester member state code is invalid.
|
|
104
|
+
MandatoryFieldMissing:
|
|
105
|
+
summary: vatNumber has a valid prefix but no number (for example DE)
|
|
106
|
+
value:
|
|
107
|
+
message: A mandatory field is missing
|
|
108
|
+
UpstreamBusy:
|
|
109
|
+
summary: Upstream VIES service is at its concurrent-request limit (transient, retry later)
|
|
110
|
+
value:
|
|
111
|
+
message: MS MAX CONCURRENT REQ
|
|
100
112
|
headers:
|
|
101
113
|
X-AF-Credits-Cost:
|
|
102
114
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -114,6 +126,42 @@ paths:
|
|
|
114
126
|
headers:
|
|
115
127
|
X-AF-Credits-Cost:
|
|
116
128
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
129
|
+
'406':
|
|
130
|
+
description: Unsupported Media Type — format is not json or xml
|
|
131
|
+
content:
|
|
132
|
+
application/json:
|
|
133
|
+
schema:
|
|
134
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
135
|
+
examples:
|
|
136
|
+
badFormat:
|
|
137
|
+
summary: format value not supported
|
|
138
|
+
value:
|
|
139
|
+
error: Unsupported Media Type
|
|
140
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
141
|
+
path: /v1.0/vat/validation
|
|
142
|
+
status: 406
|
|
143
|
+
timestamp: '2026-11-25T10:00:55.394Z'
|
|
144
|
+
headers:
|
|
145
|
+
X-AF-Credits-Cost:
|
|
146
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
147
|
+
'504':
|
|
148
|
+
description: Gateway Timeout — the upstream VIES/HMRC service did not respond in time (transient, retry later)
|
|
149
|
+
content:
|
|
150
|
+
application/json:
|
|
151
|
+
schema:
|
|
152
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
153
|
+
examples:
|
|
154
|
+
GatewayTimeout:
|
|
155
|
+
summary: Upstream validation service timed out
|
|
156
|
+
value:
|
|
157
|
+
error: Gateway Timeout
|
|
158
|
+
message: Request is timed-out. Please contact at support@apifreaks.com
|
|
159
|
+
path: /v1.0/vat/validation
|
|
160
|
+
status: 504
|
|
161
|
+
timestamp: '2026-11-25T10:06:09.994Z'
|
|
162
|
+
headers:
|
|
163
|
+
X-AF-Credits-Cost:
|
|
164
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
117
165
|
operationId: validateVatNumber
|
|
118
166
|
components:
|
|
119
167
|
securitySchemes:
|
|
@@ -97,6 +97,24 @@ paths:
|
|
|
97
97
|
headers:
|
|
98
98
|
X-AF-Credits-Cost:
|
|
99
99
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
100
|
+
'406':
|
|
101
|
+
description: Unsupported Media Type — format is not json or xml
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
106
|
+
examples:
|
|
107
|
+
badFormat:
|
|
108
|
+
summary: format value not supported
|
|
109
|
+
value:
|
|
110
|
+
error: Unsupported Media Type
|
|
111
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
112
|
+
path: /v1.0/vat/rates/ip-address
|
|
113
|
+
status: 406
|
|
114
|
+
timestamp: '2026-11-25T10:00:55.394Z'
|
|
115
|
+
headers:
|
|
116
|
+
X-AF-Credits-Cost:
|
|
117
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
100
118
|
components:
|
|
101
119
|
securitySchemes:
|
|
102
120
|
ApiKeyAuthHeader:
|
|
@@ -107,6 +107,24 @@ paths:
|
|
|
107
107
|
headers:
|
|
108
108
|
X-AF-Credits-Cost:
|
|
109
109
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
110
|
+
'406':
|
|
111
|
+
description: Unsupported Media Type — format is not json or xml
|
|
112
|
+
content:
|
|
113
|
+
application/json:
|
|
114
|
+
schema:
|
|
115
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
116
|
+
examples:
|
|
117
|
+
badFormat:
|
|
118
|
+
summary: format value not supported
|
|
119
|
+
value:
|
|
120
|
+
error: Unsupported Media Type
|
|
121
|
+
message: The media type specified in the request is not supported. For more details, please refer to the API documentation.
|
|
122
|
+
path: /v1.0/vat/rates/country
|
|
123
|
+
status: 406
|
|
124
|
+
timestamp: '2026-11-25T10:00:55.394Z'
|
|
125
|
+
headers:
|
|
126
|
+
X-AF-Credits-Cost:
|
|
127
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
110
128
|
components:
|
|
111
129
|
securitySchemes:
|
|
112
130
|
ApiKeyAuthHeader:
|