@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
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"post": {
|
|
22
22
|
"tags": ["DNS APIs"],
|
|
23
23
|
"summary": "Retrieve A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME DNS records of multiple hostnames in a single request",
|
|
24
|
-
"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.",
|
|
24
|
+
"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.",
|
|
25
25
|
"operationId": "bulkDnsLookup",
|
|
26
26
|
"parameters": [
|
|
27
27
|
{
|
|
28
28
|
"name": "format",
|
|
29
29
|
"in": "query",
|
|
30
30
|
"required": false,
|
|
31
|
-
"description": "Format of the response.",
|
|
31
|
+
"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.",
|
|
32
32
|
"schema": {
|
|
33
33
|
"type": "string",
|
|
34
34
|
"enum": ["json", "xml"],
|
|
@@ -39,20 +39,15 @@
|
|
|
39
39
|
"name": "type",
|
|
40
40
|
"in": "query",
|
|
41
41
|
"required": true,
|
|
42
|
-
"
|
|
42
|
+
"style": "form",
|
|
43
|
+
"explode": false,
|
|
44
|
+
"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.",
|
|
43
45
|
"schema": {
|
|
44
|
-
"type": "
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"AAAA",
|
|
48
|
-
|
|
49
|
-
"NS",
|
|
50
|
-
"SOA",
|
|
51
|
-
"SPF",
|
|
52
|
-
"TXT",
|
|
53
|
-
"CNAME",
|
|
54
|
-
"all"
|
|
55
|
-
]
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": ["A", "AAAA", "MX", "NS", "SOA", "SPF", "TXT", "CNAME", "all"]
|
|
50
|
+
}
|
|
56
51
|
}
|
|
57
52
|
}
|
|
58
53
|
],
|
|
@@ -77,13 +72,179 @@
|
|
|
77
72
|
},
|
|
78
73
|
"responses": {
|
|
79
74
|
"200": {
|
|
80
|
-
"description": "Successful DNS lookup response. Each entry in the bulk_dns_info array corresponds to one queried domain or IP address
|
|
75
|
+
"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.",
|
|
81
76
|
"content": {
|
|
82
77
|
"application/json": {
|
|
83
78
|
"schema": {
|
|
84
79
|
"$ref": "#/components/schemas/BulkDNSLookupResponse"
|
|
85
80
|
},
|
|
86
81
|
"examples": {
|
|
82
|
+
"singleTypeCname": {
|
|
83
|
+
"summary": "Single record type (type=CNAME)",
|
|
84
|
+
"value": {
|
|
85
|
+
"bulk_dns_info": [
|
|
86
|
+
{
|
|
87
|
+
"status": true,
|
|
88
|
+
"queryTime": "2026-11-20 10:23:35",
|
|
89
|
+
"domainName": "www.github.com",
|
|
90
|
+
"domainRegistered": true,
|
|
91
|
+
"dnsTypes": {
|
|
92
|
+
"CNAME": 5
|
|
93
|
+
},
|
|
94
|
+
"dnsRecords": [
|
|
95
|
+
{
|
|
96
|
+
"name": "www.github.com",
|
|
97
|
+
"type": 5,
|
|
98
|
+
"dnsType": "CNAME",
|
|
99
|
+
"ttl": 3600,
|
|
100
|
+
"rawText": "www.github.com.\t\t3600\tIN\tCNAME\tgithub.com.",
|
|
101
|
+
"rRsetType": 5,
|
|
102
|
+
"target": "github.com."
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"allRecordTypes": {
|
|
110
|
+
"summary": "Every record type for one domain (type=all)",
|
|
111
|
+
"value": {
|
|
112
|
+
"bulk_dns_info": [
|
|
113
|
+
{
|
|
114
|
+
"status": true,
|
|
115
|
+
"queryTime": "2026-11-20 10:23:38",
|
|
116
|
+
"domainName": "example.com",
|
|
117
|
+
"domainRegistered": true,
|
|
118
|
+
"dnsTypes": {
|
|
119
|
+
"A": 1,
|
|
120
|
+
"NS": 2,
|
|
121
|
+
"SOA": 6,
|
|
122
|
+
"MX": 15,
|
|
123
|
+
"TXT": 16,
|
|
124
|
+
"AAAA": 28,
|
|
125
|
+
"SPF": 99
|
|
126
|
+
},
|
|
127
|
+
"dnsRecords": [
|
|
128
|
+
{
|
|
129
|
+
"name": "example.com",
|
|
130
|
+
"type": 1,
|
|
131
|
+
"dnsType": "A",
|
|
132
|
+
"ttl": 186,
|
|
133
|
+
"rawText": "example.com.\t\t186\tIN\tA\t104.20.23.154",
|
|
134
|
+
"rRsetType": 1,
|
|
135
|
+
"address": "104.20.23.154"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "example.com",
|
|
139
|
+
"type": 1,
|
|
140
|
+
"dnsType": "A",
|
|
141
|
+
"ttl": 186,
|
|
142
|
+
"rawText": "example.com.\t\t186\tIN\tA\t172.66.147.243",
|
|
143
|
+
"rRsetType": 1,
|
|
144
|
+
"address": "172.66.147.243"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "example.com",
|
|
148
|
+
"type": 2,
|
|
149
|
+
"dnsType": "NS",
|
|
150
|
+
"ttl": 80215,
|
|
151
|
+
"rawText": "example.com.\t\t80215\tIN\tNS\telliott.ns.cloudflare.com.",
|
|
152
|
+
"rRsetType": 2,
|
|
153
|
+
"singleName": "elliott.ns.cloudflare.com."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "example.com",
|
|
157
|
+
"type": 2,
|
|
158
|
+
"dnsType": "NS",
|
|
159
|
+
"ttl": 80215,
|
|
160
|
+
"rawText": "example.com.\t\t80215\tIN\tNS\thera.ns.cloudflare.com.",
|
|
161
|
+
"rRsetType": 2,
|
|
162
|
+
"singleName": "hera.ns.cloudflare.com."
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "example.com",
|
|
166
|
+
"type": 6,
|
|
167
|
+
"dnsType": "SOA",
|
|
168
|
+
"ttl": 1800,
|
|
169
|
+
"rawText": "example.com.\t\t1800\tIN\tSOA\telliott.ns.cloudflare.com. dns.cloudflare.com. 2420077714 10000 2400 604800 1800",
|
|
170
|
+
"rRsetType": 6,
|
|
171
|
+
"admin": "dns.cloudflare.com.",
|
|
172
|
+
"host": "elliott.ns.cloudflare.com.",
|
|
173
|
+
"expire": 604800,
|
|
174
|
+
"minimum": 1800,
|
|
175
|
+
"refresh": 10000,
|
|
176
|
+
"retry": 2400,
|
|
177
|
+
"serial": 2420077714
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "example.com",
|
|
181
|
+
"type": 15,
|
|
182
|
+
"dnsType": "MX",
|
|
183
|
+
"ttl": 96,
|
|
184
|
+
"rawText": "example.com.\t\t96\tIN\tMX\t0 .",
|
|
185
|
+
"rRsetType": 15,
|
|
186
|
+
"target": ".",
|
|
187
|
+
"priority": 0
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "example.com",
|
|
191
|
+
"type": 16,
|
|
192
|
+
"dnsType": "TXT",
|
|
193
|
+
"ttl": 300,
|
|
194
|
+
"rawText": "example.com.\t\t300\tIN\tTXT\t\"_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9\"",
|
|
195
|
+
"rRsetType": 16,
|
|
196
|
+
"strings": [
|
|
197
|
+
"_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "example.com",
|
|
202
|
+
"type": 28,
|
|
203
|
+
"dnsType": "AAAA",
|
|
204
|
+
"ttl": 18,
|
|
205
|
+
"rawText": "example.com.\t\t18\tIN\tAAAA\t2606:4700:10:0:0:0:ac42:93f3",
|
|
206
|
+
"rRsetType": 28,
|
|
207
|
+
"address": "2606:4700:10:0:0:0:ac42:93f3"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "example.com",
|
|
211
|
+
"type": 28,
|
|
212
|
+
"dnsType": "AAAA",
|
|
213
|
+
"ttl": 18,
|
|
214
|
+
"rawText": "example.com.\t\t18\tIN\tAAAA\t2606:4700:10:0:0:0:6814:179a",
|
|
215
|
+
"rRsetType": 28,
|
|
216
|
+
"address": "2606:4700:10:0:0:0:6814:179a"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "example.com",
|
|
220
|
+
"type": 99,
|
|
221
|
+
"dnsType": "SPF",
|
|
222
|
+
"ttl": 300,
|
|
223
|
+
"rawText": "example.com.\t\t300\tIN\tSPF\t\"v=spf1 -all\"",
|
|
224
|
+
"rRsetType": 99,
|
|
225
|
+
"strings": [
|
|
226
|
+
"v=spf1 -all"
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"unregisteredDomain": {
|
|
235
|
+
"summary": "Unregistered domain (200, domainRegistered false)",
|
|
236
|
+
"value": {
|
|
237
|
+
"bulk_dns_info": [
|
|
238
|
+
{
|
|
239
|
+
"status": true,
|
|
240
|
+
"queryTime": "2026-11-20 10:23:38",
|
|
241
|
+
"domainName": "nonexistent-domain-xyz123456.com",
|
|
242
|
+
"domainRegistered": false,
|
|
243
|
+
"dnsRecords": []
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
},
|
|
87
248
|
"default": {
|
|
88
249
|
"summary": "Bulk DNS lookup with domain and IP entries",
|
|
89
250
|
"value": {
|
|
@@ -341,7 +502,7 @@
|
|
|
341
502
|
}
|
|
342
503
|
},
|
|
343
504
|
"400": {
|
|
344
|
-
"description": "Bad Request — Missing type parameter or malformed request body",
|
|
505
|
+
"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)",
|
|
345
506
|
"content": {
|
|
346
507
|
"application/json": {
|
|
347
508
|
"schema": {
|
|
@@ -358,8 +519,18 @@
|
|
|
358
519
|
"message": "please pass correct parameters"
|
|
359
520
|
}
|
|
360
521
|
},
|
|
522
|
+
"invalidDnsType": {
|
|
523
|
+
"summary": "Unsupported value in the type query parameter",
|
|
524
|
+
"value": {
|
|
525
|
+
"timestamp": "2026-11-20T10:11:49.376174718Z",
|
|
526
|
+
"status": 400,
|
|
527
|
+
"error": "Invalid Param Exception",
|
|
528
|
+
"message": "Please provide correct dns records type(s) [For Technical Support: support@whoisfreaks.com]",
|
|
529
|
+
"path": "/v2.0/dns/bulk/live"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
361
532
|
"malformedBody": {
|
|
362
|
-
"summary": "Missing or malformed request body",
|
|
533
|
+
"summary": "Missing or malformed request body (missing or empty domainNames, non-array values, or a non-JSON body)",
|
|
363
534
|
"value": {
|
|
364
535
|
"error": "Invalid request body Exception",
|
|
365
536
|
"message": "Please provide data in required format in request body",
|
|
@@ -377,6 +548,78 @@
|
|
|
377
548
|
}
|
|
378
549
|
}
|
|
379
550
|
},
|
|
551
|
+
"206": {
|
|
552
|
+
"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",
|
|
553
|
+
"content": {
|
|
554
|
+
"application/json": {
|
|
555
|
+
"schema": {
|
|
556
|
+
"$ref": "#/components/schemas/BulkDNSLookupResponse"
|
|
557
|
+
},
|
|
558
|
+
"examples": {
|
|
559
|
+
"invalidIpAddress": {
|
|
560
|
+
"summary": "Invalid IP address in ipAddresses (the entry carries ipAddress, not domainName)",
|
|
561
|
+
"value": {
|
|
562
|
+
"bulk_dns_info": [
|
|
563
|
+
{
|
|
564
|
+
"status": true,
|
|
565
|
+
"queryTime": "2026-11-20 10:23:41",
|
|
566
|
+
"domainName": "example.com",
|
|
567
|
+
"domainRegistered": true,
|
|
568
|
+
"dnsTypes": {
|
|
569
|
+
"A": 1
|
|
570
|
+
},
|
|
571
|
+
"dnsRecords": [
|
|
572
|
+
{
|
|
573
|
+
"name": "example.com",
|
|
574
|
+
"type": 1,
|
|
575
|
+
"dnsType": "A",
|
|
576
|
+
"ttl": 169,
|
|
577
|
+
"rawText": "example.com.\t\t169\tIN\tA\t104.20.23.154",
|
|
578
|
+
"rRsetType": 1,
|
|
579
|
+
"address": "104.20.23.154"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "example.com",
|
|
583
|
+
"type": 1,
|
|
584
|
+
"dnsType": "A",
|
|
585
|
+
"ttl": 169,
|
|
586
|
+
"rawText": "example.com.\t\t169\tIN\tA\t172.66.147.243",
|
|
587
|
+
"rRsetType": 1,
|
|
588
|
+
"address": "172.66.147.243"
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"status": false,
|
|
594
|
+
"queryTime": "2026-11-20 10:23:41",
|
|
595
|
+
"ipAddress": "999.1.1.1",
|
|
596
|
+
"dnsRecords": []
|
|
597
|
+
}
|
|
598
|
+
]
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"unresolvedHostname": {
|
|
602
|
+
"summary": "Malformed hostname in the batch",
|
|
603
|
+
"value": {
|
|
604
|
+
"bulk_dns_info": [
|
|
605
|
+
{
|
|
606
|
+
"status": false,
|
|
607
|
+
"queryTime": "2026-11-20 10:11:50",
|
|
608
|
+
"domainName": "not a host!!",
|
|
609
|
+
"dnsRecords": []
|
|
610
|
+
}
|
|
611
|
+
]
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
"headers": {
|
|
618
|
+
"X-AF-Credits-Cost": {
|
|
619
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
},
|
|
380
623
|
"413": {
|
|
381
624
|
"description": "Payload Too Large — Request exceeds the 100-hostname batch limit",
|
|
382
625
|
"content": {
|
|
@@ -431,7 +674,7 @@
|
|
|
431
674
|
"properties": {
|
|
432
675
|
"domainNames": {
|
|
433
676
|
"type": "array",
|
|
434
|
-
"description": "List of hostnames to lookup DNS records for (
|
|
677
|
+
"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.",
|
|
435
678
|
"maxItems": 100,
|
|
436
679
|
"items": {
|
|
437
680
|
"type": "string"
|
|
@@ -439,7 +682,7 @@
|
|
|
439
682
|
},
|
|
440
683
|
"ipAddresses": {
|
|
441
684
|
"type": "array",
|
|
442
|
-
"description": "Array of
|
|
685
|
+
"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.",
|
|
443
686
|
"items": {
|
|
444
687
|
"type": "string"
|
|
445
688
|
}
|
|
@@ -463,33 +706,35 @@
|
|
|
463
706
|
"BulkDnsLookupItem": {
|
|
464
707
|
"type": "object",
|
|
465
708
|
"description": "Per-domain DNS lookup result within a bulk response, containing status, timestamps, and DNS records.",
|
|
709
|
+
"required": ["status", "queryTime", "dnsRecords"],
|
|
466
710
|
"properties": {
|
|
467
711
|
"status": {
|
|
468
712
|
"type": "boolean",
|
|
469
|
-
"description": "Indicates whether the query for this
|
|
713
|
+
"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."
|
|
470
714
|
},
|
|
471
715
|
"queryTime": {
|
|
472
716
|
"type": "string",
|
|
473
717
|
"description": "Time at which the query was made (YYYY-MM-DD HH:mm:ss)."
|
|
474
718
|
},
|
|
475
719
|
"domainName": {
|
|
476
|
-
"type":
|
|
477
|
-
"description": "Queried domain name
|
|
720
|
+
"type": "string",
|
|
721
|
+
"description": "Queried domain name. Present for entries that came from domainNames and omitted for IP address entries."
|
|
478
722
|
},
|
|
479
723
|
"domainRegistered": {
|
|
480
|
-
"type":
|
|
481
|
-
"description": "Indicates whether the domain is registered
|
|
724
|
+
"type": "boolean",
|
|
725
|
+
"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."
|
|
482
726
|
},
|
|
483
727
|
"ipAddress": {
|
|
484
|
-
"type":
|
|
485
|
-
"description": "IP address queried (
|
|
728
|
+
"type": "string",
|
|
729
|
+
"description": "IP address queried (IPv4 or IPv6). Present for entries that came from ipAddresses and omitted for domain entries."
|
|
486
730
|
},
|
|
487
731
|
"dnsTypes": {
|
|
488
|
-
"$ref": "#/components/schemas/DnsTypes"
|
|
732
|
+
"$ref": "#/components/schemas/DnsTypes",
|
|
733
|
+
"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)."
|
|
489
734
|
},
|
|
490
735
|
"dnsRecords": {
|
|
491
736
|
"type": "array",
|
|
492
|
-
"description": "List of DNS records for this entry. Field presence varies by dnsType — see DnsRecord for which fields apply to which type.",
|
|
737
|
+
"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.",
|
|
493
738
|
"items": {
|
|
494
739
|
"$ref": "#/components/schemas/DnsRecord"
|
|
495
740
|
}
|
|
@@ -220,6 +220,16 @@
|
|
|
220
220
|
}
|
|
221
221
|
]
|
|
222
222
|
}
|
|
223
|
+
},
|
|
224
|
+
"unregisteredDomain": {
|
|
225
|
+
"summary": "Domain not registered, or no records found (200 with domainRegistered false; credits are still charged)",
|
|
226
|
+
"value": {
|
|
227
|
+
"status": true,
|
|
228
|
+
"queryTime": "2026-11-20 10:10:24",
|
|
229
|
+
"domainName": "thisdomaindoesnotexist-zzz123.com",
|
|
230
|
+
"domainRegistered": false,
|
|
231
|
+
"dnsRecords": []
|
|
232
|
+
}
|
|
223
233
|
}
|
|
224
234
|
}
|
|
225
235
|
}
|
|
@@ -299,7 +309,7 @@
|
|
|
299
309
|
"schemas": {
|
|
300
310
|
"DNSLookupResponse": {
|
|
301
311
|
"type": "object",
|
|
302
|
-
"required": ["status", "queryTime", "
|
|
312
|
+
"required": ["status", "queryTime", "dnsRecords"],
|
|
303
313
|
"properties": {
|
|
304
314
|
"status": {
|
|
305
315
|
"type": "boolean",
|
|
@@ -322,7 +332,8 @@
|
|
|
322
332
|
"description": "IP address queried (present when ipAddress parameter is used instead of host-name)."
|
|
323
333
|
},
|
|
324
334
|
"dnsTypes": {
|
|
325
|
-
"$ref": "#/components/schemas/DnsTypes"
|
|
335
|
+
"$ref": "#/components/schemas/DnsTypes",
|
|
336
|
+
"description": "Map of each record type found to its IANA type code. Omitted when the domain is not registered or no records were found."
|
|
326
337
|
},
|
|
327
338
|
"dnsRecords": {
|
|
328
339
|
"type": "array",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"responses": {
|
|
66
66
|
"200": {
|
|
67
|
-
"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.",
|
|
67
|
+
"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.",
|
|
68
68
|
"content": {
|
|
69
69
|
"application/json": {
|
|
70
70
|
"schema": {
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
"400": {
|
|
127
|
-
"description": "Bad Request — Missing or
|
|
127
|
+
"description": "Bad Request — Missing, malformed or non-array request body, or a non-JSON Content-Type",
|
|
128
128
|
"content": {
|
|
129
129
|
"application/json": {
|
|
130
130
|
"schema": {
|
|
@@ -140,6 +140,35 @@
|
|
|
140
140
|
"status": 400,
|
|
141
141
|
"timestamp": "2026-07-27T11:46:29.315Z"
|
|
142
142
|
}
|
|
143
|
+
},
|
|
144
|
+
"InvalidJsonPayload": {
|
|
145
|
+
"summary": "Body sent with a non-JSON Content-Type (for example text/plain)",
|
|
146
|
+
"value": {
|
|
147
|
+
"message": "Invalid JSON payload."
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"headers": {
|
|
154
|
+
"X-AF-Credits-Cost": {
|
|
155
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"404": {
|
|
160
|
+
"description": "Not Found — None of the requested countries returned VAT data",
|
|
161
|
+
"content": {
|
|
162
|
+
"application/json": {
|
|
163
|
+
"schema": {
|
|
164
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
165
|
+
},
|
|
166
|
+
"examples": {
|
|
167
|
+
"NoVatData": {
|
|
168
|
+
"summary": "No requested country resolved (unknown country, empty country, or an item without a country)",
|
|
169
|
+
"value": {
|
|
170
|
+
"message": "No VAT data found."
|
|
171
|
+
}
|
|
143
172
|
}
|
|
144
173
|
}
|
|
145
174
|
}
|
|
@@ -151,7 +180,7 @@
|
|
|
151
180
|
}
|
|
152
181
|
},
|
|
153
182
|
"413": {
|
|
154
|
-
"description": "Payload Too Large — Request body exceeds the size limit",
|
|
183
|
+
"description": "Payload Too Large — Request body exceeds the size limit (more than 100 entries in `countries`)",
|
|
155
184
|
"content": {
|
|
156
185
|
"application/json": {
|
|
157
186
|
"schema": {
|
|
@@ -219,7 +248,7 @@
|
|
|
219
248
|
},
|
|
220
249
|
"type": {
|
|
221
250
|
"type": "string",
|
|
222
|
-
"description": "Tax type applied for the country or state."
|
|
251
|
+
"description": "Tax type applied for the country or state (for example `vat` or `hst`)."
|
|
223
252
|
},
|
|
224
253
|
"currency": {
|
|
225
254
|
"type": "string",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"name": "format",
|
|
29
29
|
"in": "query",
|
|
30
30
|
"required": false,
|
|
31
|
-
"description": "
|
|
31
|
+
"description": "Response format. Currently only `json` is supported; the API returns JSON for any other accepted value.",
|
|
32
32
|
"schema": {
|
|
33
33
|
"type": "string",
|
|
34
|
-
"enum": ["json"
|
|
34
|
+
"enum": ["json"],
|
|
35
35
|
"default": "json"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"examples": {
|
|
48
48
|
"typicalSuccess": {
|
|
49
|
-
"summary": "Typical successful response",
|
|
49
|
+
"summary": "Typical successful response (first 5 of 238 countries; all 22 organizations)",
|
|
50
50
|
"value": {
|
|
51
51
|
"supported_countries": [
|
|
52
52
|
{
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"iso3": "COL"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
"name": "
|
|
74
|
-
"iso2": "
|
|
75
|
-
"iso3": "
|
|
73
|
+
"name": "Kyrgyzstan",
|
|
74
|
+
"iso2": "KG",
|
|
75
|
+
"iso3": "KGZ"
|
|
76
76
|
}
|
|
77
77
|
],
|
|
78
78
|
"supported_organizations": [
|
|
@@ -81,21 +81,28 @@
|
|
|
81
81
|
"Arab_League",
|
|
82
82
|
"Organization_of_American_States",
|
|
83
83
|
"African_Union",
|
|
84
|
+
"Eurasian_Economic_Union",
|
|
84
85
|
"European_Union",
|
|
85
86
|
"United_Nations",
|
|
86
|
-
"
|
|
87
|
+
"Nordic_Council",
|
|
88
|
+
"Union_of_South_American_Nations",
|
|
89
|
+
"OPEC",
|
|
90
|
+
"Central_American_Integration_System",
|
|
87
91
|
"Association_of_Southeast_Asian_Nations",
|
|
88
|
-
"
|
|
92
|
+
"Collective_Security_Treaty_Organization",
|
|
93
|
+
"East_African_Community",
|
|
94
|
+
"NATO",
|
|
95
|
+
"Organisation_internationale_de_la_Francophonie",
|
|
96
|
+
"Southern_African_Development_Community",
|
|
97
|
+
"Caribbean_Community",
|
|
98
|
+
"Commonwealth_of_Nations",
|
|
99
|
+
"Turkic_Council",
|
|
100
|
+
"Pacific_Community"
|
|
89
101
|
]
|
|
90
102
|
}
|
|
91
103
|
}
|
|
92
104
|
}
|
|
93
105
|
}
|
|
94
|
-
},
|
|
95
|
-
"headers": {
|
|
96
|
-
"X-AF-Credits-Cost": {
|
|
97
|
-
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
98
|
-
}
|
|
99
106
|
}
|
|
100
107
|
}
|
|
101
108
|
}
|