@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.
@@ -0,0 +1,441 @@
1
+ {
2
+ "openapi": "3.1.1",
3
+ "info": {
4
+ "title": "Disposable Email Checker API - Detect Temporary & Throwaway Email Addresses",
5
+ "version": "1.0.0",
6
+ "description": "Check a single email address for disposable/temporary domains, free webmail providers, spam-listed domains, and role-based accounts, with syntax validation and DNS record lookup (MX/A). Returns a minimal shape for syntactically invalid addresses and omits the domain/account/dns detail blocks when the domain cannot be resolved.",
7
+ "contact": {
8
+ "name": "APIFreaks Support",
9
+ "url": "https://apifreaks.com/contact",
10
+ "email": "support@apifreaks.com"
11
+ }
12
+ },
13
+ "servers": [
14
+ {
15
+ "url": "https://api.apifreaks.com/v1.0",
16
+ "description": "Disposable Email Checker API Server"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/email/disposable": {
21
+ "get": {
22
+ "tags": ["Email Validation APIs"],
23
+ "summary": "Check a single email for disposable/temporary domain",
24
+ "description": "Validates email syntax and checks the domain for disposable, free, spam, and role-account signals, plus MX/A DNS records.",
25
+ "parameters": [
26
+ {
27
+ "name": "email",
28
+ "in": "query",
29
+ "required": true,
30
+ "schema": {
31
+ "type": "string",
32
+ "format": "email"
33
+ },
34
+ "description": "Email address to check."
35
+ }
36
+ ],
37
+ "responses": {
38
+ "200": {
39
+ "description": "Successful response with disposable email check result.",
40
+ "content": {
41
+ "application/json": {
42
+ "schema": {
43
+ "$ref": "#/components/schemas/DisposableEmailCheckResponse"
44
+ },
45
+ "examples": {
46
+ "disposableDomain": {
47
+ "summary": "Disposable domain, MX present",
48
+ "value": {
49
+ "email": "test@sogetthis.com",
50
+ "validSyntax": true,
51
+ "domain": {
52
+ "disposable": true,
53
+ "free": false,
54
+ "name": "sogetthis.com",
55
+ "spam": false,
56
+ "validDomain": true
57
+ },
58
+ "account": {
59
+ "role": false
60
+ },
61
+ "dns": {
62
+ "mxRecord": ["mail.mailinator.com."]
63
+ }
64
+ }
65
+ },
66
+ "freeWebmail": {
67
+ "summary": "Free consumer webmail, not disposable",
68
+ "value": {
69
+ "email": "someone@gmail.com",
70
+ "validSyntax": true,
71
+ "domain": {
72
+ "disposable": false,
73
+ "free": true,
74
+ "name": "gmail.com",
75
+ "spam": false,
76
+ "validDomain": true
77
+ },
78
+ "account": {
79
+ "role": false
80
+ },
81
+ "dns": {
82
+ "mxRecord": [
83
+ "gmail-smtp-in.l.google.com.",
84
+ "alt1.gmail-smtp-in.l.google.com.",
85
+ "alt2.gmail-smtp-in.l.google.com.",
86
+ "alt3.gmail-smtp-in.l.google.com.",
87
+ "alt4.gmail-smtp-in.l.google.com."
88
+ ]
89
+ }
90
+ }
91
+ },
92
+ "roleAccount": {
93
+ "summary": "Role-based mailbox (support@)",
94
+ "value": {
95
+ "email": "support@microsoft.com",
96
+ "validSyntax": true,
97
+ "domain": {
98
+ "disposable": false,
99
+ "free": false,
100
+ "name": "microsoft.com",
101
+ "spam": false,
102
+ "validDomain": true
103
+ },
104
+ "account": {
105
+ "role": true
106
+ },
107
+ "dns": {
108
+ "mxRecord": ["microsoft-com.mail.protection.outlook.com."]
109
+ }
110
+ }
111
+ },
112
+ "addressRecordOnly": {
113
+ "summary": "No MX record, domain resolves via A record only",
114
+ "value": {
115
+ "email": "test@rotodirect.com",
116
+ "validSyntax": true,
117
+ "domain": {
118
+ "disposable": false,
119
+ "free": false,
120
+ "name": "rotodirect.com",
121
+ "spam": false,
122
+ "validDomain": true
123
+ },
124
+ "account": {
125
+ "role": false
126
+ },
127
+ "dns": {
128
+ "aRecord": ["166.78.44.241"]
129
+ }
130
+ }
131
+ },
132
+ "nullMxDomain": {
133
+ "summary": "Domain publishes a null MX (single \".\"), accepts no mail at all",
134
+ "value": {
135
+ "email": "test@mailblacklist.com",
136
+ "validSyntax": true,
137
+ "domain": {
138
+ "disposable": false,
139
+ "free": false,
140
+ "name": "mailblacklist.com",
141
+ "spam": false,
142
+ "validDomain": true
143
+ },
144
+ "account": {
145
+ "role": false
146
+ },
147
+ "dns": {
148
+ "mxRecord": ["."]
149
+ }
150
+ }
151
+ },
152
+ "invalidSyntax": {
153
+ "summary": "Syntactically invalid email — minimal shape, no domain/account/dns detail",
154
+ "value": {
155
+ "email": "abc",
156
+ "validSyntax": false,
157
+ "domain": {
158
+ "name": "abc",
159
+ "validDomain": false
160
+ }
161
+ }
162
+ },
163
+ "nonexistentDomain": {
164
+ "summary": "Valid syntax, domain does not exist — account block present, no dns block",
165
+ "value": {
166
+ "email": "test@xxxxxyyyyy123spam.com",
167
+ "validSyntax": true,
168
+ "domain": {
169
+ "disposable": false,
170
+ "free": false,
171
+ "name": "xxxxxyyyyy123spam.com",
172
+ "spam": false,
173
+ "validDomain": false
174
+ },
175
+ "account": {
176
+ "role": false
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ },
183
+ "headers": {
184
+ "X-AF-Credits-Cost": {
185
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
186
+ },
187
+ "X-Concurrent-Threads": {
188
+ "$ref": "#/components/headers/X-Concurrent-Threads"
189
+ },
190
+ "X-Concurrent-Threads-Active": {
191
+ "$ref": "#/components/headers/X-Concurrent-Threads-Active"
192
+ }
193
+ }
194
+ },
195
+ "400": {
196
+ "description": "Bad Request – Invalid or missing parameters",
197
+ "content": {
198
+ "application/json": {
199
+ "schema": {
200
+ "$ref": "#/components/schemas/ErrorResponse"
201
+ },
202
+ "examples": {
203
+ "missingEmail": {
204
+ "summary": "email parameter missing or empty",
205
+ "value": {
206
+ "error": "Invalid Param Exception",
207
+ "message": "please pass correct parameters",
208
+ "path": "/v1.0/email/disposable",
209
+ "status": 400,
210
+ "timestamp": "2026-10-13T10:40:11.892Z"
211
+ }
212
+ },
213
+ "missingApiKey": {
214
+ "summary": "apiKey not supplied",
215
+ "value": {
216
+ "error": "Invalid Param Exception",
217
+ "message": "Please provide apiKey",
218
+ "path": "/v1.0/email/disposable",
219
+ "status": 400,
220
+ "timestamp": "2026-10-13T10:40:12.475Z"
221
+ }
222
+ }
223
+ }
224
+ }
225
+ },
226
+ "headers": {
227
+ "X-AF-Credits-Cost": {
228
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
229
+ }
230
+ }
231
+ },
232
+ "401": {
233
+ "description": "Unauthorized – Invalid API key",
234
+ "content": {
235
+ "application/json": {
236
+ "schema": {
237
+ "$ref": "#/components/schemas/ErrorResponse"
238
+ },
239
+ "examples": {
240
+ "invalidApiKey": {
241
+ "value": {
242
+ "error": "API Access Exception",
243
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
244
+ "path": "/v1.0/email/disposable",
245
+ "status": 401,
246
+ "timestamp": "2026-10-13T10:40:13.056Z"
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
252
+ },
253
+ "404": {
254
+ "description": "Not Found – The requested resource could not be found",
255
+ "content": {
256
+ "application/json": {
257
+ "schema": {
258
+ "$ref": "#/components/schemas/ErrorResponse"
259
+ },
260
+ "examples": {
261
+ "Resource Not Found": {
262
+ "value": {
263
+ "error": "Resource Not Found",
264
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
265
+ "path": "/v1.0/email/disposablex",
266
+ "status": 404,
267
+ "timestamp": "2026-10-13T11:00:07.798Z"
268
+ }
269
+ }
270
+ }
271
+ }
272
+ },
273
+ "headers": {
274
+ "X-AF-Credits-Cost": {
275
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
276
+ }
277
+ }
278
+ }
279
+ },
280
+ "operationId": "checkDisposableEmail"
281
+ }
282
+ }
283
+ },
284
+ "components": {
285
+ "securitySchemes": {
286
+ "ApiKeyAuthHeader": {
287
+ "type": "apiKey",
288
+ "in": "header",
289
+ "name": "X-apiKey",
290
+ "description": "Pass your API key via the X-apiKey request header."
291
+ },
292
+ "ApiKeyAuthQuery": {
293
+ "type": "apiKey",
294
+ "in": "query",
295
+ "name": "apiKey",
296
+ "description": "Pass your API key via the apiKey query parameter."
297
+ }
298
+ },
299
+ "schemas": {
300
+ "DisposableEmailCheckResponse": {
301
+ "type": "object",
302
+ "required": ["email", "validSyntax", "domain"],
303
+ "properties": {
304
+ "email": {
305
+ "type": "string",
306
+ "description": "The email address submitted for the check."
307
+ },
308
+ "validSyntax": {
309
+ "type": "boolean",
310
+ "description": "Validates email address format compliance with RFC 5322 standards. When false, domain only contains name/validDomain and account/dns are omitted entirely."
311
+ },
312
+ "domain": {
313
+ "$ref": "#/components/schemas/DisposableDomainObject"
314
+ },
315
+ "account": {
316
+ "$ref": "#/components/schemas/DisposableAccountObject"
317
+ },
318
+ "dns": {
319
+ "$ref": "#/components/schemas/DisposableDnsObject"
320
+ }
321
+ },
322
+ "description": "Disposable email check response."
323
+ },
324
+ "DisposableDomainObject": {
325
+ "type": "object",
326
+ "required": ["name", "validDomain"],
327
+ "properties": {
328
+ "name": {
329
+ "type": "string",
330
+ "description": "Extracted domain component from the email address."
331
+ },
332
+ "validDomain": {
333
+ "type": "boolean",
334
+ "description": "Domain validation status confirming DNS resolution capability."
335
+ },
336
+ "disposable": {
337
+ "type": "boolean",
338
+ "description": "Classification flag identifying domains from temporary/throwaway email service providers. Omitted when validSyntax is false or the domain could not be resolved."
339
+ },
340
+ "free": {
341
+ "type": "boolean",
342
+ "description": "Classification indicating free or consumer-grade email service providers. Omitted when validSyntax is false or the domain could not be resolved."
343
+ },
344
+ "spam": {
345
+ "type": "boolean",
346
+ "description": "Reputation indicator flagging domains on spam databases. Omitted when validSyntax is false or the domain could not be resolved."
347
+ }
348
+ },
349
+ "description": "Domain-level disposable/spam/free classification for the email address."
350
+ },
351
+ "DisposableAccountObject": {
352
+ "type": "object",
353
+ "required": ["role"],
354
+ "properties": {
355
+ "role": {
356
+ "type": "boolean",
357
+ "description": "Detection flag identifying role-based email addresses (e.g., admin@, support@)."
358
+ }
359
+ },
360
+ "description": "Account-level detection details. Omitted entirely when validSyntax is false."
361
+ },
362
+ "DisposableDnsObject": {
363
+ "type": "object",
364
+ "required": [],
365
+ "properties": {
366
+ "mxRecord": {
367
+ "type": "array",
368
+ "items": {
369
+ "type": "string"
370
+ },
371
+ "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."
372
+ },
373
+ "aRecord": {
374
+ "type": "array",
375
+ "items": {
376
+ "type": "string"
377
+ },
378
+ "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."
379
+ }
380
+ },
381
+ "description": "DNS records for the email domain. Omitted entirely when validSyntax is false or the domain does not exist (NXDOMAIN)."
382
+ },
383
+ "ErrorResponse": {
384
+ "type": "object",
385
+ "description": "Standard error envelope returned by the API on failed requests.",
386
+ "required": ["message"],
387
+ "properties": {
388
+ "error": {
389
+ "type": "string",
390
+ "description": "Short error category or exception type."
391
+ },
392
+ "message": {
393
+ "type": "string",
394
+ "description": "Human-readable error message describing the failure."
395
+ },
396
+ "path": {
397
+ "type": "string",
398
+ "description": "API endpoint path that produced the error."
399
+ },
400
+ "status": {
401
+ "type": "integer",
402
+ "description": "HTTP status code returned with the error."
403
+ },
404
+ "timestamp": {
405
+ "type": "string",
406
+ "format": "date-time",
407
+ "description": "Timestamp when the error occurred (ISO 8601)."
408
+ }
409
+ }
410
+ }
411
+ },
412
+ "headers": {
413
+ "X-AF-Credits-Cost": {
414
+ "description": "Specifies the number of credits consumed by the current request. 15 credits per checked record.",
415
+ "schema": {
416
+ "type": "integer"
417
+ }
418
+ },
419
+ "X-Concurrent-Threads": {
420
+ "description": "Specifies the maximum number of concurrent requests allowed.",
421
+ "schema": {
422
+ "type": "integer"
423
+ }
424
+ },
425
+ "X-Concurrent-Threads-Active": {
426
+ "description": "Indicates the number of active concurrent requests being processed.",
427
+ "schema": {
428
+ "type": "integer"
429
+ }
430
+ }
431
+ }
432
+ },
433
+ "security": [
434
+ {
435
+ "ApiKeyAuthHeader": []
436
+ },
437
+ {
438
+ "ApiKeyAuthQuery": []
439
+ }
440
+ ]
441
+ }
@@ -109,8 +109,7 @@
109
109
  "disposable": false,
110
110
  "spam": false,
111
111
  "free": false,
112
- "validDomain": false,
113
- "catchAll": false
112
+ "validDomain": false
114
113
  },
115
114
  "account": {
116
115
  "role": false
@@ -118,18 +117,18 @@
118
117
  }
119
118
  },
120
119
  "acceptAll": {
121
- "summary": "Catch-all domain accepted the recipient — mailbox unconfirmed",
120
+ "summary": "Catch-all domain accepted the recipient, mailbox unconfirmed",
122
121
  "value": {
123
122
  "success": true,
124
- "email": "random12345@yahoo.com",
123
+ "email": "someone@mailinator.com",
125
124
  "validEmail": "accept_all",
126
125
  "validSyntax": true,
127
126
  "reason": "domain accepts all addresses.",
128
127
  "domain": {
129
- "name": "yahoo.com",
130
- "disposable": false,
128
+ "name": "mailinator.com",
129
+ "disposable": true,
131
130
  "spam": false,
132
- "free": true,
131
+ "free": false,
133
132
  "validDomain": true,
134
133
  "catchAll": true
135
134
  },
@@ -139,15 +138,14 @@
139
138
  },
140
139
  "dns": {
141
140
  "mxRecord": [
142
- "mta5.am0.yahoodns.net.",
143
- "mta6.am0.yahoodns.net.",
144
- "mta7.am0.yahoodns.net."
141
+ "mail.mailinator.com.",
142
+ "mail2.mailinator.com."
145
143
  ]
146
144
  }
147
145
  }
148
146
  },
149
147
  "nullMxDomain": {
150
- "summary": "Domain publishes a null MX (single \".\") — accepts no mail at all",
148
+ "summary": "Domain publishes a null MX (single \".\"), accepts no mail at all",
151
149
  "value": {
152
150
  "success": true,
153
151
  "email": "test@example.com",
@@ -159,8 +157,7 @@
159
157
  "disposable": true,
160
158
  "spam": false,
161
159
  "free": false,
162
- "validDomain": true,
163
- "catchAll": false
160
+ "validDomain": true
164
161
  },
165
162
  "account": {
166
163
  "role": false
@@ -171,7 +168,7 @@
171
168
  }
172
169
  },
173
170
  "noMxAddressOnly": {
174
- "summary": "Domain has no MX record but a working A record — gets a real SMTP probe",
171
+ "summary": "Domain has no MX record but a working A record, gets a real SMTP probe",
175
172
  "value": {
176
173
  "success": true,
177
174
  "email": "test@neverssl.com",
@@ -183,8 +180,7 @@
183
180
  "disposable": false,
184
181
  "spam": false,
185
182
  "free": false,
186
- "validDomain": true,
187
- "catchAll": false
183
+ "validDomain": true
188
184
  },
189
185
  "account": {
190
186
  "role": false
@@ -228,7 +224,6 @@
228
224
  "location": {
229
225
  "city": "Mountain View",
230
226
  "district": "Santa Clara",
231
- "confidence": "low",
232
227
  "zipcode": "94043-1351",
233
228
  "state_prov": "California",
234
229
  "country_name": "United States",
@@ -237,15 +232,12 @@
237
232
  "country_code2": "US",
238
233
  "country_code3": "USA",
239
234
  "country_name_official": "United States of America",
240
- "accuracy_radius": "27.42",
241
235
  "is_eu": false
242
236
  },
243
237
  "security": {
244
238
  "threat_score": 5,
245
239
  "is_tor": false,
246
240
  "is_proxy": false,
247
- "proxy_type": "",
248
- "proxy_provider": "",
249
241
  "is_anonymous": false,
250
242
  "is_known_attacker": false,
251
243
  "is_spam": false,
@@ -269,8 +261,7 @@
269
261
  "disposable": false,
270
262
  "spam": false,
271
263
  "free": true,
272
- "validDomain": true,
273
- "catchAll": false
264
+ "validDomain": true
274
265
  },
275
266
  "account": {
276
267
  "role": false
@@ -521,7 +512,7 @@
521
512
  },
522
513
  "catchAll": {
523
514
  "type": "boolean",
524
- "description": "Detection flag for domains configured to accept mail for any recipient address. true always corresponds to a top-level validEmail of accept_all."
515
+ "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."
525
516
  }
526
517
  },
527
518
  "description": "Domain validation details for the email address."
@@ -625,11 +616,11 @@
625
616
  },
626
617
  "accuracy_radius": {
627
618
  "type": "string",
628
- "description": "Geolocation precision radius."
619
+ "description": "Geolocation precision radius. Not included for every IP."
629
620
  },
630
621
  "confidence": {
631
622
  "type": "string",
632
- "description": "Confidence score for geolocation accuracy."
623
+ "description": "Confidence score for geolocation accuracy. Not included for every IP."
633
624
  },
634
625
  "is_eu": {
635
626
  "type": "boolean",
@@ -645,8 +636,6 @@
645
636
  "threat_score",
646
637
  "is_tor",
647
638
  "is_proxy",
648
- "proxy_type",
649
- "proxy_provider",
650
639
  "is_anonymous",
651
640
  "is_known_attacker",
652
641
  "is_spam",
@@ -669,11 +658,11 @@
669
658
  },
670
659
  "proxy_type": {
671
660
  "type": "string",
672
- "description": "Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS)."
661
+ "description": "Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS). Included only when is_proxy is true."
673
662
  },
674
663
  "proxy_provider": {
675
664
  "type": "string",
676
- "description": "Identified service provider operating the proxy infrastructure."
665
+ "description": "Identified service provider operating the proxy infrastructure. Included only when is_proxy is true."
677
666
  },
678
667
  "is_anonymous": {
679
668
  "type": "boolean",