@apifreaks/openapi-specs 0.4.9 → 0.4.11
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 +0 -3
- package/dist/index.cjs +1539 -87
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1539 -87
- package/dist/specs/email-validation/bulk-disposable-email-checker.yaml +307 -0
- package/dist/specs/email-validation/bulk-email-validation.yaml +11 -16
- package/dist/specs/email-validation/disposable-email-checker.yaml +322 -0
- package/dist/specs/email-validation/email-checker.yaml +14 -25
- package/dist/specs/financial/iban-validation.yaml +28 -4
- package/dist/specs/financial/swift-code-lookup.yaml +32 -2
- package/package.json +1 -1
- package/specs/README.md +2 -2
- package/specs/email-validation/bulk-disposable-email-checker.json +430 -0
- package/specs/email-validation/bulk-email-validation.json +13 -18
- package/specs/email-validation/disposable-email-checker.json +441 -0
- package/specs/email-validation/email-checker.json +18 -29
- package/specs/financial/iban-validation.json +25 -4
- package/specs/financial/swift-code-lookup.json +34 -3
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
openapi: 3.1.1
|
|
2
|
+
info:
|
|
3
|
+
title: Bulk Disposable Email Checker API - Check Multiple Emails for Disposable Domains
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: Check up to 100 email addresses in a single POST request for disposable/temporary domains, free webmail providers, spam-listed domains, and role-based accounts. Each email is processed independently and returned in the same order as the request. The whole request is rejected with a 400 if the emails array is empty/missing or contains a null/blank entry. Maximum 100 email addresses per request.
|
|
6
|
+
contact:
|
|
7
|
+
name: APIFreaks Support
|
|
8
|
+
url: https://apifreaks.com/contact
|
|
9
|
+
email: support@apifreaks.com
|
|
10
|
+
servers:
|
|
11
|
+
- url: https://api.apifreaks.com/v1.0
|
|
12
|
+
description: Bulk Disposable Email Checker API Server
|
|
13
|
+
paths:
|
|
14
|
+
/email/disposable/bulk:
|
|
15
|
+
post:
|
|
16
|
+
tags:
|
|
17
|
+
- Email Validation APIs
|
|
18
|
+
summary: Check multiple emails for disposable/temporary domains
|
|
19
|
+
description: Checks a bulk of email addresses and returns a disposable email check result for each, in the same order as the request. Maximum `100` email addresses per request.
|
|
20
|
+
requestBody:
|
|
21
|
+
required: true
|
|
22
|
+
content:
|
|
23
|
+
application/json:
|
|
24
|
+
schema:
|
|
25
|
+
$ref: '#/components/schemas/BulkDisposableEmailRequest'
|
|
26
|
+
examples:
|
|
27
|
+
bulkRequest:
|
|
28
|
+
value:
|
|
29
|
+
emails:
|
|
30
|
+
- abc
|
|
31
|
+
- john@microsoft.com
|
|
32
|
+
- test@mailinator.com
|
|
33
|
+
responses:
|
|
34
|
+
'200':
|
|
35
|
+
description: Successful response. Each item corresponds to one requested email, in the same order as the request.
|
|
36
|
+
content:
|
|
37
|
+
application/json:
|
|
38
|
+
schema:
|
|
39
|
+
$ref: '#/components/schemas/BulkDisposableEmailCheckResponse'
|
|
40
|
+
examples:
|
|
41
|
+
mixedResults:
|
|
42
|
+
summary: Mix of syntactically invalid, clean, and disposable results
|
|
43
|
+
value:
|
|
44
|
+
disposableEmailResponse:
|
|
45
|
+
- email: abc
|
|
46
|
+
validSyntax: false
|
|
47
|
+
domain:
|
|
48
|
+
name: abc
|
|
49
|
+
validDomain: false
|
|
50
|
+
- email: john@microsoft.com
|
|
51
|
+
validSyntax: true
|
|
52
|
+
domain:
|
|
53
|
+
disposable: false
|
|
54
|
+
free: false
|
|
55
|
+
name: microsoft.com
|
|
56
|
+
spam: false
|
|
57
|
+
validDomain: true
|
|
58
|
+
account:
|
|
59
|
+
role: false
|
|
60
|
+
dns:
|
|
61
|
+
mxRecord:
|
|
62
|
+
- microsoft-com.mail.protection.outlook.com.
|
|
63
|
+
- email: test@mailinator.com
|
|
64
|
+
validSyntax: true
|
|
65
|
+
domain:
|
|
66
|
+
disposable: true
|
|
67
|
+
free: false
|
|
68
|
+
name: mailinator.com
|
|
69
|
+
spam: false
|
|
70
|
+
validDomain: true
|
|
71
|
+
account:
|
|
72
|
+
role: false
|
|
73
|
+
dns:
|
|
74
|
+
mxRecord:
|
|
75
|
+
- mail.mailinator.com.
|
|
76
|
+
- mail2.mailinator.com.
|
|
77
|
+
headers:
|
|
78
|
+
X-AF-Credits-Cost:
|
|
79
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
80
|
+
X-Concurrent-Threads:
|
|
81
|
+
$ref: '#/components/headers/X-Concurrent-Threads'
|
|
82
|
+
X-Concurrent-Threads-Active:
|
|
83
|
+
$ref: '#/components/headers/X-Concurrent-Threads-Active'
|
|
84
|
+
'400':
|
|
85
|
+
description: Bad Request – Invalid request body, empty/missing emails array, or a null/blank entry in emails
|
|
86
|
+
content:
|
|
87
|
+
application/json:
|
|
88
|
+
schema:
|
|
89
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
90
|
+
examples:
|
|
91
|
+
invalidBody:
|
|
92
|
+
summary: emails field missing, empty, or malformed
|
|
93
|
+
value:
|
|
94
|
+
error: Invalid request body Exception
|
|
95
|
+
message: Please provide data in required format in request body
|
|
96
|
+
path: /v1.0/email/disposable/bulk
|
|
97
|
+
status: 400
|
|
98
|
+
timestamp: '2026-10-13T10:39:42.887Z'
|
|
99
|
+
nullOrBlankEntry:
|
|
100
|
+
summary: emails array contains a null/blank/whitespace-only entry — whole request rejected
|
|
101
|
+
value:
|
|
102
|
+
error: Missing or Invalid Parameters
|
|
103
|
+
message: '''emails'' must not contain null or blank entries.'
|
|
104
|
+
path: /v2/email/disposable/bulk
|
|
105
|
+
status: 400
|
|
106
|
+
timestamp: '2026-10-13T10:39:44.002Z'
|
|
107
|
+
missingApiKey:
|
|
108
|
+
summary: apiKey not supplied
|
|
109
|
+
value:
|
|
110
|
+
error: Invalid Param Exception
|
|
111
|
+
message: Please provide apiKey
|
|
112
|
+
path: /v1.0/email/disposable/bulk
|
|
113
|
+
status: 400
|
|
114
|
+
timestamp: '2026-10-13T10:40:02.684Z'
|
|
115
|
+
headers:
|
|
116
|
+
X-AF-Credits-Cost:
|
|
117
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
118
|
+
'401':
|
|
119
|
+
description: Unauthorized – Invalid API key
|
|
120
|
+
content:
|
|
121
|
+
application/json:
|
|
122
|
+
schema:
|
|
123
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
124
|
+
examples:
|
|
125
|
+
invalidApiKey:
|
|
126
|
+
value:
|
|
127
|
+
error: API Access Exception
|
|
128
|
+
message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
|
|
129
|
+
path: /v1.0/email/disposable/bulk
|
|
130
|
+
status: 401
|
|
131
|
+
timestamp: '2026-10-13T10:40:03.166Z'
|
|
132
|
+
'404':
|
|
133
|
+
description: Not Found – The requested resource could not be found
|
|
134
|
+
content:
|
|
135
|
+
application/json:
|
|
136
|
+
schema:
|
|
137
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
138
|
+
examples:
|
|
139
|
+
Resource Not Found:
|
|
140
|
+
value:
|
|
141
|
+
error: Resource Not Found
|
|
142
|
+
message: The requested resource could not be found. Please verify the URL and try again.
|
|
143
|
+
path: /v1.0/email/disposable/bulkx
|
|
144
|
+
status: 404
|
|
145
|
+
timestamp: '2026-10-13T11:00:08.337Z'
|
|
146
|
+
headers:
|
|
147
|
+
X-AF-Credits-Cost:
|
|
148
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
149
|
+
'413':
|
|
150
|
+
description: Payload Too Large – emails exceeds the maximum of 100 entries per request
|
|
151
|
+
content:
|
|
152
|
+
application/json:
|
|
153
|
+
schema:
|
|
154
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
155
|
+
examples:
|
|
156
|
+
Payload Too Large:
|
|
157
|
+
value:
|
|
158
|
+
error: Payload too large Exception
|
|
159
|
+
message: Maximum request body size limit exceeded
|
|
160
|
+
path: /v1.0/email/disposable/bulk
|
|
161
|
+
status: 413
|
|
162
|
+
timestamp: '2026-10-13T10:39:58.052Z'
|
|
163
|
+
headers:
|
|
164
|
+
X-AF-Credits-Cost:
|
|
165
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
166
|
+
operationId: bulkCheckDisposableEmail
|
|
167
|
+
components:
|
|
168
|
+
securitySchemes:
|
|
169
|
+
ApiKeyAuthHeader:
|
|
170
|
+
type: apiKey
|
|
171
|
+
in: header
|
|
172
|
+
name: X-apiKey
|
|
173
|
+
description: Pass your API key via the X-apiKey request header.
|
|
174
|
+
ApiKeyAuthQuery:
|
|
175
|
+
type: apiKey
|
|
176
|
+
in: query
|
|
177
|
+
name: apiKey
|
|
178
|
+
description: Pass your API key via the apiKey query parameter.
|
|
179
|
+
schemas:
|
|
180
|
+
BulkDisposableEmailCheckResponse:
|
|
181
|
+
type: object
|
|
182
|
+
description: Wrapper containing the per-email results array.
|
|
183
|
+
required:
|
|
184
|
+
- disposableEmailResponse
|
|
185
|
+
properties:
|
|
186
|
+
disposableEmailResponse:
|
|
187
|
+
type: array
|
|
188
|
+
description: Array of per-email results, one entry per requested email, in the same order as the request.
|
|
189
|
+
items:
|
|
190
|
+
$ref: '#/components/schemas/DisposableEmailCheckResult'
|
|
191
|
+
DisposableEmailCheckResult:
|
|
192
|
+
type: object
|
|
193
|
+
required:
|
|
194
|
+
- email
|
|
195
|
+
- validSyntax
|
|
196
|
+
- domain
|
|
197
|
+
properties:
|
|
198
|
+
email:
|
|
199
|
+
type: string
|
|
200
|
+
description: The email address submitted for the check.
|
|
201
|
+
validSyntax:
|
|
202
|
+
type: boolean
|
|
203
|
+
description: Validates email address format compliance with RFC 5322 standards. When false, domain only contains name/validDomain and account/dns are omitted entirely.
|
|
204
|
+
domain:
|
|
205
|
+
$ref: '#/components/schemas/DisposableDomainObject'
|
|
206
|
+
account:
|
|
207
|
+
$ref: '#/components/schemas/DisposableAccountObject'
|
|
208
|
+
dns:
|
|
209
|
+
$ref: '#/components/schemas/DisposableDnsObject'
|
|
210
|
+
description: Disposable email check result for a single item in the bulk request.
|
|
211
|
+
DisposableDomainObject:
|
|
212
|
+
type: object
|
|
213
|
+
required:
|
|
214
|
+
- name
|
|
215
|
+
- validDomain
|
|
216
|
+
properties:
|
|
217
|
+
name:
|
|
218
|
+
type: string
|
|
219
|
+
description: Extracted domain component from the email address.
|
|
220
|
+
validDomain:
|
|
221
|
+
type: boolean
|
|
222
|
+
description: Domain validation status confirming DNS resolution capability.
|
|
223
|
+
disposable:
|
|
224
|
+
type: boolean
|
|
225
|
+
description: Classification flag identifying domains from temporary/throwaway email service providers. Omitted when validSyntax is false or the domain could not be resolved.
|
|
226
|
+
free:
|
|
227
|
+
type: boolean
|
|
228
|
+
description: Classification indicating free or consumer-grade email service providers. Omitted when validSyntax is false or the domain could not be resolved.
|
|
229
|
+
spam:
|
|
230
|
+
type: boolean
|
|
231
|
+
description: Reputation indicator flagging domains on spam databases. Omitted when validSyntax is false or the domain could not be resolved.
|
|
232
|
+
description: Domain-level disposable/spam/free classification for the email address.
|
|
233
|
+
DisposableAccountObject:
|
|
234
|
+
type: object
|
|
235
|
+
required:
|
|
236
|
+
- role
|
|
237
|
+
properties:
|
|
238
|
+
role:
|
|
239
|
+
type: boolean
|
|
240
|
+
description: Detection flag identifying role-based email addresses (e.g., admin@, support@).
|
|
241
|
+
description: Account-level detection details. Omitted entirely when validSyntax is false.
|
|
242
|
+
DisposableDnsObject:
|
|
243
|
+
type: object
|
|
244
|
+
required: []
|
|
245
|
+
properties:
|
|
246
|
+
mxRecord:
|
|
247
|
+
type: array
|
|
248
|
+
items:
|
|
249
|
+
type: string
|
|
250
|
+
description: Every MX hostname at the domain's lowest preference (not just one). ["."] means the domain publishes a null MX and accepts no mail at all. Absent entirely when the domain has no MX record of any kind — check aRecord in that case.
|
|
251
|
+
aRecord:
|
|
252
|
+
type: array
|
|
253
|
+
items:
|
|
254
|
+
type: string
|
|
255
|
+
description: Collection of A (Address) records for the domain. Present when the domain has no MX record but does resolve to a web server or other host.
|
|
256
|
+
description: DNS records for the email domain. Omitted entirely when validSyntax is false or the domain does not exist (NXDOMAIN).
|
|
257
|
+
BulkDisposableEmailRequest:
|
|
258
|
+
type: object
|
|
259
|
+
description: Request body for bulk disposable email check.
|
|
260
|
+
required:
|
|
261
|
+
- emails
|
|
262
|
+
properties:
|
|
263
|
+
emails:
|
|
264
|
+
type: array
|
|
265
|
+
description: Array of email addresses to check. Maximum 100 per request. Must not be empty, and must not contain null/blank entries — either condition rejects the whole request with a 400.
|
|
266
|
+
minItems: 1
|
|
267
|
+
maxItems: 100
|
|
268
|
+
items:
|
|
269
|
+
type: string
|
|
270
|
+
ErrorResponse:
|
|
271
|
+
type: object
|
|
272
|
+
description: Standard error envelope returned by the API on failed requests.
|
|
273
|
+
required:
|
|
274
|
+
- message
|
|
275
|
+
properties:
|
|
276
|
+
error:
|
|
277
|
+
type: string
|
|
278
|
+
description: Short error category or exception type.
|
|
279
|
+
message:
|
|
280
|
+
type: string
|
|
281
|
+
description: Human-readable error message describing the failure.
|
|
282
|
+
path:
|
|
283
|
+
type: string
|
|
284
|
+
description: API endpoint path that produced the error.
|
|
285
|
+
status:
|
|
286
|
+
type: integer
|
|
287
|
+
description: HTTP status code returned with the error.
|
|
288
|
+
timestamp:
|
|
289
|
+
type: string
|
|
290
|
+
format: date-time
|
|
291
|
+
description: Timestamp when the error occurred (ISO 8601).
|
|
292
|
+
headers:
|
|
293
|
+
X-AF-Credits-Cost:
|
|
294
|
+
description: Specifies the number of credits consumed by the current request. 15 credits per checked record (e.g. 3 emails = 45 credits).
|
|
295
|
+
schema:
|
|
296
|
+
type: integer
|
|
297
|
+
X-Concurrent-Threads:
|
|
298
|
+
description: Specifies the maximum number of concurrent requests allowed.
|
|
299
|
+
schema:
|
|
300
|
+
type: integer
|
|
301
|
+
X-Concurrent-Threads-Active:
|
|
302
|
+
description: Indicates the number of active concurrent requests being processed.
|
|
303
|
+
schema:
|
|
304
|
+
type: integer
|
|
305
|
+
security:
|
|
306
|
+
- ApiKeyAuthHeader: []
|
|
307
|
+
- ApiKeyAuthQuery: []
|
|
@@ -75,15 +75,15 @@ paths:
|
|
|
75
75
|
name: not-an-email
|
|
76
76
|
validDomain: false
|
|
77
77
|
- success: true
|
|
78
|
-
email:
|
|
78
|
+
email: someone@mailinator.com
|
|
79
79
|
validEmail: accept_all
|
|
80
80
|
validSyntax: true
|
|
81
81
|
reason: domain accepts all addresses.
|
|
82
82
|
domain:
|
|
83
|
-
name:
|
|
84
|
-
disposable:
|
|
83
|
+
name: mailinator.com
|
|
84
|
+
disposable: true
|
|
85
85
|
spam: false
|
|
86
|
-
free:
|
|
86
|
+
free: false
|
|
87
87
|
validDomain: true
|
|
88
88
|
catchAll: true
|
|
89
89
|
account:
|
|
@@ -91,9 +91,8 @@ paths:
|
|
|
91
91
|
fullMailBox: false
|
|
92
92
|
dns:
|
|
93
93
|
mxRecord:
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
- mta7.am0.yahoodns.net.
|
|
94
|
+
- mail.mailinator.com.
|
|
95
|
+
- mail2.mailinator.com.
|
|
97
96
|
- success: true
|
|
98
97
|
email: test@example.com
|
|
99
98
|
validEmail: invalid
|
|
@@ -105,7 +104,6 @@ paths:
|
|
|
105
104
|
spam: false
|
|
106
105
|
free: false
|
|
107
106
|
validDomain: true
|
|
108
|
-
catchAll: false
|
|
109
107
|
account:
|
|
110
108
|
role: false
|
|
111
109
|
dns:
|
|
@@ -122,7 +120,6 @@ paths:
|
|
|
122
120
|
spam: false
|
|
123
121
|
free: false
|
|
124
122
|
validDomain: true
|
|
125
|
-
catchAll: false
|
|
126
123
|
account:
|
|
127
124
|
role: false
|
|
128
125
|
dns:
|
|
@@ -318,7 +315,7 @@ components:
|
|
|
318
315
|
description: Classification indicating free or consumer-grade email service providers.
|
|
319
316
|
catchAll:
|
|
320
317
|
type: boolean
|
|
321
|
-
description:
|
|
318
|
+
description: 'Whether the domain is catch-all, meaning its mail server accepts email for any address. true: the domain accepts all addresses, and validEmail is accept_all. false: the check ran and the domain is not catch-all. This field is omitted when the check could not complete.'
|
|
322
319
|
description: Domain validation details for the email address.
|
|
323
320
|
AccountObject:
|
|
324
321
|
type: object
|
|
@@ -395,10 +392,10 @@ components:
|
|
|
395
392
|
description: Continental region identifier.
|
|
396
393
|
accuracy_radius:
|
|
397
394
|
type: string
|
|
398
|
-
description: Geolocation precision radius.
|
|
395
|
+
description: Geolocation precision radius. Not included for every IP.
|
|
399
396
|
confidence:
|
|
400
397
|
type: string
|
|
401
|
-
description: Confidence score for geolocation accuracy.
|
|
398
|
+
description: Confidence score for geolocation accuracy. Not included for every IP.
|
|
402
399
|
is_eu:
|
|
403
400
|
type: boolean
|
|
404
401
|
description: European Union membership status.
|
|
@@ -410,8 +407,6 @@ components:
|
|
|
410
407
|
- threat_score
|
|
411
408
|
- is_tor
|
|
412
409
|
- is_proxy
|
|
413
|
-
- proxy_type
|
|
414
|
-
- proxy_provider
|
|
415
410
|
- is_anonymous
|
|
416
411
|
- is_known_attacker
|
|
417
412
|
- is_spam
|
|
@@ -430,10 +425,10 @@ components:
|
|
|
430
425
|
description: Detection flag identifying IP addresses operating as proxy servers.
|
|
431
426
|
proxy_type:
|
|
432
427
|
type: string
|
|
433
|
-
description: Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS).
|
|
428
|
+
description: Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS). Included only when is_proxy is true.
|
|
434
429
|
proxy_provider:
|
|
435
430
|
type: string
|
|
436
|
-
description: Identified service provider operating the proxy infrastructure.
|
|
431
|
+
description: Identified service provider operating the proxy infrastructure. Included only when is_proxy is true.
|
|
437
432
|
is_anonymous:
|
|
438
433
|
type: boolean
|
|
439
434
|
description: Anonymization detection flag for IP addresses using identity obfuscation techniques.
|