@apifreaks/openapi-specs 0.4.19 → 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 +5142 -694
- package/dist/index.js +5142 -694
- 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/screenshot/bulk-screenshot.yaml +464 -220
- package/dist/specs/screenshot/website-screenshot.yaml +467 -214
- 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/screenshot/bulk-screenshot.json +537 -232
- package/specs/screenshot/website-screenshot.json +584 -247
- 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
|
@@ -2,7 +2,7 @@ openapi: 3.1.1
|
|
|
2
2
|
info:
|
|
3
3
|
title: Historical Commodity Prices, Delivered Simply.
|
|
4
4
|
version: 2.0.0
|
|
5
|
-
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
|
|
5
|
+
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.
|
|
6
6
|
contact:
|
|
7
7
|
name: APIFreaks Support
|
|
8
8
|
url: https://apifreaks.com/contact
|
|
@@ -37,7 +37,7 @@ paths:
|
|
|
37
37
|
- name: date
|
|
38
38
|
in: query
|
|
39
39
|
required: true
|
|
40
|
-
description: Date in `YYYY-MM-DD` format. Data available from 1990 onwards.
|
|
40
|
+
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.
|
|
41
41
|
schema:
|
|
42
42
|
type: string
|
|
43
43
|
responses:
|
|
@@ -67,17 +67,33 @@ paths:
|
|
|
67
67
|
low: 2663.61
|
|
68
68
|
close: 2689.44
|
|
69
69
|
monthlyCommodity:
|
|
70
|
-
summary: Monthly-updated commodity (
|
|
70
|
+
summary: Monthly-updated commodity (one monthly price in all four fields)
|
|
71
71
|
value:
|
|
72
72
|
success: true
|
|
73
73
|
date: '2025-01-10'
|
|
74
74
|
rates:
|
|
75
75
|
NG-EU:
|
|
76
76
|
date: '2025-01-01'
|
|
77
|
-
open:
|
|
78
|
-
high:
|
|
79
|
-
low:
|
|
77
|
+
open: 14.66
|
|
78
|
+
high: 14.66
|
|
79
|
+
low: 14.66
|
|
80
80
|
close: 14.66
|
|
81
|
+
aliasResolved:
|
|
82
|
+
summary: Alias symbol resolved to its API symbol (symbols=GOLD)
|
|
83
|
+
value:
|
|
84
|
+
success: true
|
|
85
|
+
date: '2025-01-10'
|
|
86
|
+
rates:
|
|
87
|
+
XAU:
|
|
88
|
+
date: '2025-01-10'
|
|
89
|
+
open: 2669.93
|
|
90
|
+
high: 2697.85
|
|
91
|
+
low: 2663.61
|
|
92
|
+
close: 2689.44
|
|
93
|
+
unresolved:
|
|
94
|
+
GOLD:
|
|
95
|
+
message: GOLD is not a symbol code used by this API. Gold is available as "XAU", so its rate was returned under that symbol.
|
|
96
|
+
resolvedTo: XAU
|
|
81
97
|
headers:
|
|
82
98
|
X-AF-Credits-Cost:
|
|
83
99
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -217,7 +233,7 @@ components:
|
|
|
217
233
|
$ref: '#/components/schemas/HistoricalCommodityRates'
|
|
218
234
|
unresolved:
|
|
219
235
|
type: object
|
|
220
|
-
description: Present
|
|
236
|
+
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.
|
|
221
237
|
additionalProperties:
|
|
222
238
|
type: object
|
|
223
239
|
properties:
|
|
@@ -229,6 +245,9 @@ components:
|
|
|
229
245
|
description: Optional list of supported symbols that closely match the unresolved symbol.
|
|
230
246
|
items:
|
|
231
247
|
type: string
|
|
248
|
+
resolvedTo:
|
|
249
|
+
type: string
|
|
250
|
+
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`.
|
|
232
251
|
description: Historical commodity prices response containing success status, date, and OHLC rate data.
|
|
233
252
|
HistoricalCommodityRates:
|
|
234
253
|
type: object
|
|
@@ -240,7 +259,7 @@ components:
|
|
|
240
259
|
- symbol
|
|
241
260
|
HistoricalCommodityRate:
|
|
242
261
|
type: object
|
|
243
|
-
description: OHLC price data for a single commodity on a specific date. For monthly-updated commodities,
|
|
262
|
+
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`.
|
|
244
263
|
required:
|
|
245
264
|
- date
|
|
246
265
|
- open
|
|
@@ -254,15 +273,15 @@ components:
|
|
|
254
273
|
open:
|
|
255
274
|
type: number
|
|
256
275
|
format: float
|
|
257
|
-
description: Opening price on the given date. `
|
|
276
|
+
description: Opening price on the given date. Equals `close` for monthly-updated commodities.
|
|
258
277
|
high:
|
|
259
278
|
type: number
|
|
260
279
|
format: float
|
|
261
|
-
description: Highest price recorded on the given date. `
|
|
280
|
+
description: Highest price recorded on the given date. Equals `close` for monthly-updated commodities.
|
|
262
281
|
low:
|
|
263
282
|
type: number
|
|
264
283
|
format: float
|
|
265
|
-
description: Lowest price recorded on the given date. `
|
|
284
|
+
description: Lowest price recorded on the given date. Equals `close` for monthly-updated commodities.
|
|
266
285
|
close:
|
|
267
286
|
type: number
|
|
268
287
|
format: float
|
|
@@ -16,13 +16,13 @@ paths:
|
|
|
16
16
|
tags:
|
|
17
17
|
- DNS APIs
|
|
18
18
|
summary: Retrieve A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME DNS records of multiple hostnames in a single request
|
|
19
|
-
description: Perform DNS lookups for multiple hostnames in a single request. Supports up to 100 hostnames per request and returns DNS records including A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME records.
|
|
19
|
+
description: Perform DNS lookups for multiple hostnames in a single request. Supports up to 100 hostnames per request and returns DNS records including A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME records. IP addresses in `ipAddresses` are looked up for PTR records. Entries in the response are not guaranteed to follow request order, and a hostname submitted more than once is returned once. Each hostname in `domainNames` costs 15 credits, including duplicates and unregistered domains; hostnames that cannot be processed, IP addresses, and error responses are not charged.
|
|
20
20
|
operationId: bulkDnsLookup
|
|
21
21
|
parameters:
|
|
22
22
|
- name: format
|
|
23
23
|
in: query
|
|
24
24
|
required: false
|
|
25
|
-
description: Format of the response.
|
|
25
|
+
description: Format of the response. With `xml` the response is served as `application/xml` with the root element `BulkDnsInfo`, containing a `bulkDnsResponse` element with one `dnsInfo` element per entry and one `dnsRecord` element per record.
|
|
26
26
|
schema:
|
|
27
27
|
type: string
|
|
28
28
|
enum:
|
|
@@ -32,19 +32,23 @@ paths:
|
|
|
32
32
|
- name: type
|
|
33
33
|
in: query
|
|
34
34
|
required: true
|
|
35
|
-
|
|
35
|
+
style: form
|
|
36
|
+
explode: false
|
|
37
|
+
description: A comma-separated list of DNS record types for lookup (for example `MX,TXT`), or `all` for every supported type. Values are case-insensitive.
|
|
36
38
|
schema:
|
|
37
|
-
type:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
type: array
|
|
40
|
+
items:
|
|
41
|
+
type: string
|
|
42
|
+
enum:
|
|
43
|
+
- A
|
|
44
|
+
- AAAA
|
|
45
|
+
- MX
|
|
46
|
+
- NS
|
|
47
|
+
- SOA
|
|
48
|
+
- SPF
|
|
49
|
+
- TXT
|
|
50
|
+
- CNAME
|
|
51
|
+
- all
|
|
48
52
|
requestBody:
|
|
49
53
|
required: true
|
|
50
54
|
content:
|
|
@@ -62,12 +66,135 @@ paths:
|
|
|
62
66
|
- 8.8.8.8
|
|
63
67
|
responses:
|
|
64
68
|
'200':
|
|
65
|
-
description: Successful DNS lookup response. Each entry in the bulk_dns_info array corresponds to one queried domain or IP address
|
|
69
|
+
description: Successful DNS lookup response. Each entry in the bulk_dns_info array corresponds to one queried domain or IP address. Entries are not guaranteed to follow request order. A registered domain with no matching records, and an unregistered domain (domainRegistered false), are returned with an empty dnsRecords array.
|
|
66
70
|
content:
|
|
67
71
|
application/json:
|
|
68
72
|
schema:
|
|
69
73
|
$ref: '#/components/schemas/BulkDNSLookupResponse'
|
|
70
74
|
examples:
|
|
75
|
+
singleTypeCname:
|
|
76
|
+
summary: Single record type (type=CNAME)
|
|
77
|
+
value:
|
|
78
|
+
bulk_dns_info:
|
|
79
|
+
- status: true
|
|
80
|
+
queryTime: '2026-11-20 10:23:35'
|
|
81
|
+
domainName: www.github.com
|
|
82
|
+
domainRegistered: true
|
|
83
|
+
dnsTypes:
|
|
84
|
+
CNAME: 5
|
|
85
|
+
dnsRecords:
|
|
86
|
+
- name: www.github.com
|
|
87
|
+
type: 5
|
|
88
|
+
dnsType: CNAME
|
|
89
|
+
ttl: 3600
|
|
90
|
+
rawText: "www.github.com.\t\t3600\tIN\tCNAME\tgithub.com."
|
|
91
|
+
rRsetType: 5
|
|
92
|
+
target: github.com.
|
|
93
|
+
allRecordTypes:
|
|
94
|
+
summary: Every record type for one domain (type=all)
|
|
95
|
+
value:
|
|
96
|
+
bulk_dns_info:
|
|
97
|
+
- status: true
|
|
98
|
+
queryTime: '2026-11-20 10:23:38'
|
|
99
|
+
domainName: example.com
|
|
100
|
+
domainRegistered: true
|
|
101
|
+
dnsTypes:
|
|
102
|
+
A: 1
|
|
103
|
+
NS: 2
|
|
104
|
+
SOA: 6
|
|
105
|
+
MX: 15
|
|
106
|
+
TXT: 16
|
|
107
|
+
AAAA: 28
|
|
108
|
+
SPF: 99
|
|
109
|
+
dnsRecords:
|
|
110
|
+
- name: example.com
|
|
111
|
+
type: 1
|
|
112
|
+
dnsType: A
|
|
113
|
+
ttl: 186
|
|
114
|
+
rawText: "example.com.\t\t186\tIN\tA\t104.20.23.154"
|
|
115
|
+
rRsetType: 1
|
|
116
|
+
address: 104.20.23.154
|
|
117
|
+
- name: example.com
|
|
118
|
+
type: 1
|
|
119
|
+
dnsType: A
|
|
120
|
+
ttl: 186
|
|
121
|
+
rawText: "example.com.\t\t186\tIN\tA\t172.66.147.243"
|
|
122
|
+
rRsetType: 1
|
|
123
|
+
address: 172.66.147.243
|
|
124
|
+
- name: example.com
|
|
125
|
+
type: 2
|
|
126
|
+
dnsType: NS
|
|
127
|
+
ttl: 80215
|
|
128
|
+
rawText: "example.com.\t\t80215\tIN\tNS\telliott.ns.cloudflare.com."
|
|
129
|
+
rRsetType: 2
|
|
130
|
+
singleName: elliott.ns.cloudflare.com.
|
|
131
|
+
- name: example.com
|
|
132
|
+
type: 2
|
|
133
|
+
dnsType: NS
|
|
134
|
+
ttl: 80215
|
|
135
|
+
rawText: "example.com.\t\t80215\tIN\tNS\thera.ns.cloudflare.com."
|
|
136
|
+
rRsetType: 2
|
|
137
|
+
singleName: hera.ns.cloudflare.com.
|
|
138
|
+
- name: example.com
|
|
139
|
+
type: 6
|
|
140
|
+
dnsType: SOA
|
|
141
|
+
ttl: 1800
|
|
142
|
+
rawText: "example.com.\t\t1800\tIN\tSOA\telliott.ns.cloudflare.com. dns.cloudflare.com. 2420077714 10000 2400 604800 1800"
|
|
143
|
+
rRsetType: 6
|
|
144
|
+
admin: dns.cloudflare.com.
|
|
145
|
+
host: elliott.ns.cloudflare.com.
|
|
146
|
+
expire: 604800
|
|
147
|
+
minimum: 1800
|
|
148
|
+
refresh: 10000
|
|
149
|
+
retry: 2400
|
|
150
|
+
serial: 2420077714
|
|
151
|
+
- name: example.com
|
|
152
|
+
type: 15
|
|
153
|
+
dnsType: MX
|
|
154
|
+
ttl: 96
|
|
155
|
+
rawText: "example.com.\t\t96\tIN\tMX\t0 ."
|
|
156
|
+
rRsetType: 15
|
|
157
|
+
target: .
|
|
158
|
+
priority: 0
|
|
159
|
+
- name: example.com
|
|
160
|
+
type: 16
|
|
161
|
+
dnsType: TXT
|
|
162
|
+
ttl: 300
|
|
163
|
+
rawText: "example.com.\t\t300\tIN\tTXT\t\"_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9\""
|
|
164
|
+
rRsetType: 16
|
|
165
|
+
strings:
|
|
166
|
+
- _k2n1y4vw3qtb4skdx9e7dxt97qrmmq9
|
|
167
|
+
- name: example.com
|
|
168
|
+
type: 28
|
|
169
|
+
dnsType: AAAA
|
|
170
|
+
ttl: 18
|
|
171
|
+
rawText: "example.com.\t\t18\tIN\tAAAA\t2606:4700:10:0:0:0:ac42:93f3"
|
|
172
|
+
rRsetType: 28
|
|
173
|
+
address: 2606:4700:10:0:0:0:ac42:93f3
|
|
174
|
+
- name: example.com
|
|
175
|
+
type: 28
|
|
176
|
+
dnsType: AAAA
|
|
177
|
+
ttl: 18
|
|
178
|
+
rawText: "example.com.\t\t18\tIN\tAAAA\t2606:4700:10:0:0:0:6814:179a"
|
|
179
|
+
rRsetType: 28
|
|
180
|
+
address: 2606:4700:10:0:0:0:6814:179a
|
|
181
|
+
- name: example.com
|
|
182
|
+
type: 99
|
|
183
|
+
dnsType: SPF
|
|
184
|
+
ttl: 300
|
|
185
|
+
rawText: "example.com.\t\t300\tIN\tSPF\t\"v=spf1 -all\""
|
|
186
|
+
rRsetType: 99
|
|
187
|
+
strings:
|
|
188
|
+
- v=spf1 -all
|
|
189
|
+
unregisteredDomain:
|
|
190
|
+
summary: Unregistered domain (200, domainRegistered false)
|
|
191
|
+
value:
|
|
192
|
+
bulk_dns_info:
|
|
193
|
+
- status: true
|
|
194
|
+
queryTime: '2026-11-20 10:23:38'
|
|
195
|
+
domainName: nonexistent-domain-xyz123456.com
|
|
196
|
+
domainRegistered: false
|
|
197
|
+
dnsRecords: []
|
|
71
198
|
default:
|
|
72
199
|
summary: Bulk DNS lookup with domain and IP entries
|
|
73
200
|
value:
|
|
@@ -265,8 +392,55 @@ paths:
|
|
|
265
392
|
headers:
|
|
266
393
|
X-AF-Credits-Cost:
|
|
267
394
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
395
|
+
'206':
|
|
396
|
+
description: Partial Content — A hostname or IP address in the batch could not be processed (for example a malformed hostname, an invalid IP address, or an IP address submitted in domainNames); its entry has status false and an empty dnsRecords array
|
|
397
|
+
content:
|
|
398
|
+
application/json:
|
|
399
|
+
schema:
|
|
400
|
+
$ref: '#/components/schemas/BulkDNSLookupResponse'
|
|
401
|
+
examples:
|
|
402
|
+
invalidIpAddress:
|
|
403
|
+
summary: Invalid IP address in ipAddresses (the entry carries ipAddress, not domainName)
|
|
404
|
+
value:
|
|
405
|
+
bulk_dns_info:
|
|
406
|
+
- status: true
|
|
407
|
+
queryTime: '2026-11-20 10:23:41'
|
|
408
|
+
domainName: example.com
|
|
409
|
+
domainRegistered: true
|
|
410
|
+
dnsTypes:
|
|
411
|
+
A: 1
|
|
412
|
+
dnsRecords:
|
|
413
|
+
- name: example.com
|
|
414
|
+
type: 1
|
|
415
|
+
dnsType: A
|
|
416
|
+
ttl: 169
|
|
417
|
+
rawText: "example.com.\t\t169\tIN\tA\t104.20.23.154"
|
|
418
|
+
rRsetType: 1
|
|
419
|
+
address: 104.20.23.154
|
|
420
|
+
- name: example.com
|
|
421
|
+
type: 1
|
|
422
|
+
dnsType: A
|
|
423
|
+
ttl: 169
|
|
424
|
+
rawText: "example.com.\t\t169\tIN\tA\t172.66.147.243"
|
|
425
|
+
rRsetType: 1
|
|
426
|
+
address: 172.66.147.243
|
|
427
|
+
- status: false
|
|
428
|
+
queryTime: '2026-11-20 10:23:41'
|
|
429
|
+
ipAddress: 999.1.1.1
|
|
430
|
+
dnsRecords: []
|
|
431
|
+
unresolvedHostname:
|
|
432
|
+
summary: Malformed hostname in the batch
|
|
433
|
+
value:
|
|
434
|
+
bulk_dns_info:
|
|
435
|
+
- status: false
|
|
436
|
+
queryTime: '2026-11-20 10:11:50'
|
|
437
|
+
domainName: not a host!!
|
|
438
|
+
dnsRecords: []
|
|
439
|
+
headers:
|
|
440
|
+
X-AF-Credits-Cost:
|
|
441
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
268
442
|
'400':
|
|
269
|
-
description: Bad Request — Missing type parameter or malformed request body
|
|
443
|
+
description: Bad Request — Missing or unsupported type parameter, or a missing, empty or malformed request body (domainNames is required and must be a non-empty array)
|
|
270
444
|
content:
|
|
271
445
|
application/json:
|
|
272
446
|
schema:
|
|
@@ -280,8 +454,16 @@ paths:
|
|
|
280
454
|
status: 400
|
|
281
455
|
error: Invalid Param Exception
|
|
282
456
|
message: please pass correct parameters
|
|
457
|
+
invalidDnsType:
|
|
458
|
+
summary: Unsupported value in the type query parameter
|
|
459
|
+
value:
|
|
460
|
+
timestamp: '2026-11-20T10:11:49.376174718Z'
|
|
461
|
+
status: 400
|
|
462
|
+
error: Invalid Param Exception
|
|
463
|
+
message: 'Please provide correct dns records type(s) [For Technical Support: support@whoisfreaks.com]'
|
|
464
|
+
path: /v2.0/dns/bulk/live
|
|
283
465
|
malformedBody:
|
|
284
|
-
summary: Missing or malformed request body
|
|
466
|
+
summary: Missing or malformed request body (missing or empty domainNames, non-array values, or a non-JSON body)
|
|
285
467
|
value:
|
|
286
468
|
error: Invalid request body Exception
|
|
287
469
|
message: Please provide data in required format in request body
|
|
@@ -330,13 +512,13 @@ components:
|
|
|
330
512
|
properties:
|
|
331
513
|
domainNames:
|
|
332
514
|
type: array
|
|
333
|
-
description: List of hostnames to lookup DNS records for (
|
|
515
|
+
description: List of hostnames to lookup DNS records for (1 to 100). Required and must not be empty. A hostname submitted more than once is returned once but charged each time.
|
|
334
516
|
maxItems: 100
|
|
335
517
|
items:
|
|
336
518
|
type: string
|
|
337
519
|
ipAddresses:
|
|
338
520
|
type: array
|
|
339
|
-
description: Array of
|
|
521
|
+
description: Array of IPv4 or IPv6 addresses to look up PTR records for. Each address returns its own entry with an ipAddress field. An invalid address returns an entry with status false. Cannot be sent without domainNames.
|
|
340
522
|
items:
|
|
341
523
|
type: string
|
|
342
524
|
BulkDNSLookupResponse:
|
|
@@ -353,33 +535,32 @@ components:
|
|
|
353
535
|
BulkDnsLookupItem:
|
|
354
536
|
type: object
|
|
355
537
|
description: Per-domain DNS lookup result within a bulk response, containing status, timestamps, and DNS records.
|
|
538
|
+
required:
|
|
539
|
+
- status
|
|
540
|
+
- queryTime
|
|
541
|
+
- dnsRecords
|
|
356
542
|
properties:
|
|
357
543
|
status:
|
|
358
544
|
type: boolean
|
|
359
|
-
description: Indicates whether the query for this
|
|
545
|
+
description: Indicates whether the query for this entry was processed successfully. false for a hostname or IP address that could not be processed (the response is then 206). true is also returned for an unregistered domain; check domainRegistered.
|
|
360
546
|
queryTime:
|
|
361
547
|
type: string
|
|
362
548
|
description: Time at which the query was made (YYYY-MM-DD HH:mm:ss).
|
|
363
549
|
domainName:
|
|
364
|
-
type:
|
|
365
|
-
|
|
366
|
-
- 'null'
|
|
367
|
-
description: Queried domain name (present for domain lookups, null for IP lookups).
|
|
550
|
+
type: string
|
|
551
|
+
description: Queried domain name. Present for entries that came from domainNames and omitted for IP address entries.
|
|
368
552
|
domainRegistered:
|
|
369
|
-
type:
|
|
370
|
-
|
|
371
|
-
- 'null'
|
|
372
|
-
description: Indicates whether the domain is registered (present for domain lookups).
|
|
553
|
+
type: boolean
|
|
554
|
+
description: Indicates whether the domain is registered. Present for domain entries that were processed and omitted for IP address entries and entries with status false.
|
|
373
555
|
ipAddress:
|
|
374
|
-
type:
|
|
375
|
-
|
|
376
|
-
- 'null'
|
|
377
|
-
description: IP address queried (present for IP/PTR lookups).
|
|
556
|
+
type: string
|
|
557
|
+
description: IP address queried (IPv4 or IPv6). Present for entries that came from ipAddresses and omitted for domain entries.
|
|
378
558
|
dnsTypes:
|
|
379
559
|
$ref: '#/components/schemas/DnsTypes'
|
|
560
|
+
description: Map of the record types found to their IANA type codes. Omitted when the entry has no records (status false, unregistered domain, or no records found).
|
|
380
561
|
dnsRecords:
|
|
381
562
|
type: array
|
|
382
|
-
description: List of DNS records for this entry. Field presence varies by dnsType — see DnsRecord for which fields apply to which type.
|
|
563
|
+
description: List of DNS records for this entry; empty when status is false, the domain is unregistered, or no records of the requested types exist. Field presence varies by dnsType — see DnsRecord for which fields apply to which type.
|
|
383
564
|
items:
|
|
384
565
|
$ref: '#/components/schemas/DnsRecord'
|
|
385
566
|
DnsTypes:
|
|
@@ -175,6 +175,14 @@ paths:
|
|
|
175
175
|
rawText: "8.8.8.8.in-addr.arpa.\t16954\tIN\tPTR\tdns.google."
|
|
176
176
|
rRsetType: 12
|
|
177
177
|
singleName: dns.google.
|
|
178
|
+
unregisteredDomain:
|
|
179
|
+
summary: Domain not registered, or no records found (200 with domainRegistered false; credits are still charged)
|
|
180
|
+
value:
|
|
181
|
+
status: true
|
|
182
|
+
queryTime: '2026-11-20 10:10:24'
|
|
183
|
+
domainName: thisdomaindoesnotexist-zzz123.com
|
|
184
|
+
domainRegistered: false
|
|
185
|
+
dnsRecords: []
|
|
178
186
|
headers:
|
|
179
187
|
X-AF-Credits-Cost:
|
|
180
188
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -230,7 +238,6 @@ components:
|
|
|
230
238
|
required:
|
|
231
239
|
- status
|
|
232
240
|
- queryTime
|
|
233
|
-
- dnsTypes
|
|
234
241
|
- dnsRecords
|
|
235
242
|
properties:
|
|
236
243
|
status:
|
|
@@ -250,6 +257,7 @@ components:
|
|
|
250
257
|
description: IP address queried (present when ipAddress parameter is used instead of host-name).
|
|
251
258
|
dnsTypes:
|
|
252
259
|
$ref: '#/components/schemas/DnsTypes'
|
|
260
|
+
description: Map of each record type found to its IANA type code. Omitted when the domain is not registered or no records were found.
|
|
253
261
|
dnsRecords:
|
|
254
262
|
type: array
|
|
255
263
|
description: List of DNS records. Field presence varies by dnsType — see DnsRecord for which fields apply to which type.
|
|
@@ -45,7 +45,7 @@ paths:
|
|
|
45
45
|
state: New_York
|
|
46
46
|
responses:
|
|
47
47
|
'200':
|
|
48
|
-
description: Successful response — a JSON array of VAT results, one entry per country that resolved successfully, in request order. Countries that fail to resolve are omitted rather than represented as error entries.
|
|
48
|
+
description: Successful response — a JSON array of VAT results, one entry per country that resolved successfully, in request order. Countries that fail to resolve are omitted rather than represented as error entries. If none of the requested countries resolve, a 404 is returned instead.
|
|
49
49
|
content:
|
|
50
50
|
application/json:
|
|
51
51
|
schema:
|
|
@@ -90,7 +90,7 @@ paths:
|
|
|
90
90
|
X-AF-Credits-Cost:
|
|
91
91
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
92
92
|
'400':
|
|
93
|
-
description: Bad Request — Missing or
|
|
93
|
+
description: Bad Request — Missing, malformed or non-array request body, or a non-JSON Content-Type
|
|
94
94
|
content:
|
|
95
95
|
application/json:
|
|
96
96
|
schema:
|
|
@@ -104,11 +104,29 @@ paths:
|
|
|
104
104
|
path: /v1.0/vat/rates/country
|
|
105
105
|
status: 400
|
|
106
106
|
timestamp: '2026-07-27T11:46:29.315Z'
|
|
107
|
+
InvalidJsonPayload:
|
|
108
|
+
summary: Body sent with a non-JSON Content-Type (for example text/plain)
|
|
109
|
+
value:
|
|
110
|
+
message: Invalid JSON payload.
|
|
111
|
+
headers:
|
|
112
|
+
X-AF-Credits-Cost:
|
|
113
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
114
|
+
'404':
|
|
115
|
+
description: Not Found — None of the requested countries returned VAT data
|
|
116
|
+
content:
|
|
117
|
+
application/json:
|
|
118
|
+
schema:
|
|
119
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
120
|
+
examples:
|
|
121
|
+
NoVatData:
|
|
122
|
+
summary: No requested country resolved (unknown country, empty country, or an item without a country)
|
|
123
|
+
value:
|
|
124
|
+
message: No VAT data found.
|
|
107
125
|
headers:
|
|
108
126
|
X-AF-Credits-Cost:
|
|
109
127
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
110
128
|
'413':
|
|
111
|
-
description: Payload Too Large — Request body exceeds the size limit
|
|
129
|
+
description: Payload Too Large — Request body exceeds the size limit (more than 100 entries in `countries`)
|
|
112
130
|
content:
|
|
113
131
|
application/json:
|
|
114
132
|
schema:
|
|
@@ -160,7 +178,7 @@ components:
|
|
|
160
178
|
description: State or region returned for sub-national lookups. Only present when the request included a state.
|
|
161
179
|
type:
|
|
162
180
|
type: string
|
|
163
|
-
description: Tax type applied for the country or state.
|
|
181
|
+
description: Tax type applied for the country or state (for example `vat` or `hst`).
|
|
164
182
|
currency:
|
|
165
183
|
type: string
|
|
166
184
|
description: ISO 4217 currency code for the returned location. Can be an empty string for some state-level entries.
|
|
@@ -22,12 +22,11 @@ paths:
|
|
|
22
22
|
- name: format
|
|
23
23
|
in: query
|
|
24
24
|
required: false
|
|
25
|
-
description:
|
|
25
|
+
description: Response format. Currently only `json` is supported; the API returns JSON for any other accepted value.
|
|
26
26
|
schema:
|
|
27
27
|
type: string
|
|
28
28
|
enum:
|
|
29
29
|
- json
|
|
30
|
-
- xml
|
|
31
30
|
default: json
|
|
32
31
|
responses:
|
|
33
32
|
'200':
|
|
@@ -38,7 +37,7 @@ paths:
|
|
|
38
37
|
$ref: '#/components/schemas/SupportedFlagsResponse'
|
|
39
38
|
examples:
|
|
40
39
|
typicalSuccess:
|
|
41
|
-
summary: Typical successful response
|
|
40
|
+
summary: Typical successful response (first 5 of 238 countries; all 22 organizations)
|
|
42
41
|
value:
|
|
43
42
|
supported_countries:
|
|
44
43
|
- name: Luxembourg
|
|
@@ -53,23 +52,32 @@ paths:
|
|
|
53
52
|
- name: Colombia
|
|
54
53
|
iso2: CO
|
|
55
54
|
iso3: COL
|
|
56
|
-
- name:
|
|
57
|
-
iso2:
|
|
58
|
-
iso3:
|
|
55
|
+
- name: Kyrgyzstan
|
|
56
|
+
iso2: KG
|
|
57
|
+
iso3: KGZ
|
|
59
58
|
supported_organizations:
|
|
60
59
|
- Commonwealth_of_Independent_States
|
|
61
60
|
- Gulf_Cooperation_Council
|
|
62
61
|
- Arab_League
|
|
63
62
|
- Organization_of_American_States
|
|
64
63
|
- African_Union
|
|
64
|
+
- Eurasian_Economic_Union
|
|
65
65
|
- European_Union
|
|
66
66
|
- United_Nations
|
|
67
|
-
-
|
|
67
|
+
- Nordic_Council
|
|
68
|
+
- Union_of_South_American_Nations
|
|
69
|
+
- OPEC
|
|
70
|
+
- Central_American_Integration_System
|
|
68
71
|
- Association_of_Southeast_Asian_Nations
|
|
72
|
+
- Collective_Security_Treaty_Organization
|
|
73
|
+
- East_African_Community
|
|
74
|
+
- NATO
|
|
75
|
+
- Organisation_internationale_de_la_Francophonie
|
|
76
|
+
- Southern_African_Development_Community
|
|
77
|
+
- Caribbean_Community
|
|
69
78
|
- Commonwealth_of_Nations
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
79
|
+
- Turkic_Council
|
|
80
|
+
- Pacific_Community
|
|
73
81
|
components:
|
|
74
82
|
securitySchemes:
|
|
75
83
|
ApiKeyAuthHeader:
|