@apifreaks/openapi-specs 0.4.15 → 0.4.17
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 +719 -66
- package/dist/index.js +719 -66
- package/dist/specs/email-validation/bulk-disposable-email-checker.yaml +173 -20
- package/dist/specs/email-validation/disposable-email-checker.yaml +217 -19
- package/package.json +1 -1
- package/specs/email-validation/bulk-disposable-email-checker.json +221 -21
- package/specs/email-validation/disposable-email-checker.json +280 -25
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Bulk Disposable Email Checker API - Check Multiple Emails for Disposable Domains",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
-
"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
|
|
6
|
+
"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 entry can include an optional ip to also get its geolocation and security signals. Each entry is processed independently and returned in the same order as the request. The whole request is rejected with a 400 if emailData is empty/missing or contains a null entry or an entry without a valid email. Maximum 100 entries per request.",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "APIFreaks Support",
|
|
9
9
|
"url": "https://apifreaks.com/contact",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"post": {
|
|
22
22
|
"tags": ["Email Validation APIs"],
|
|
23
23
|
"summary": "Check multiple emails for disposable/temporary domains",
|
|
24
|
-
"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`
|
|
24
|
+
"description": "Checks a bulk of email addresses (each with an optional ip) and returns a disposable email check result for each, in the same order as the request. Maximum `100` entries per request.",
|
|
25
25
|
"parameters": [
|
|
26
26
|
{
|
|
27
27
|
"name": "format",
|
|
@@ -45,7 +45,18 @@
|
|
|
45
45
|
"examples": {
|
|
46
46
|
"bulkRequest": {
|
|
47
47
|
"value": {
|
|
48
|
-
"
|
|
48
|
+
"emailData": [
|
|
49
|
+
{
|
|
50
|
+
"email": "abc"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"email": "john@microsoft.com",
|
|
54
|
+
"ip": "8.8.8.8"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"email": "test@mailinator.com"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
49
60
|
}
|
|
50
61
|
}
|
|
51
62
|
}
|
|
@@ -62,7 +73,7 @@
|
|
|
62
73
|
},
|
|
63
74
|
"examples": {
|
|
64
75
|
"mixedResults": {
|
|
65
|
-
"summary": "Mix of syntactically invalid, clean, and disposable results",
|
|
76
|
+
"summary": "Mix of syntactically invalid, clean (with ip), and disposable results",
|
|
66
77
|
"value": {
|
|
67
78
|
"disposableEmailResponse": [
|
|
68
79
|
{
|
|
@@ -88,6 +99,34 @@
|
|
|
88
99
|
},
|
|
89
100
|
"dns": {
|
|
90
101
|
"mxRecord": ["microsoft-com.mail.protection.outlook.com."]
|
|
102
|
+
},
|
|
103
|
+
"ip": "8.8.8.8",
|
|
104
|
+
"address": {
|
|
105
|
+
"validIpAddress": true,
|
|
106
|
+
"location": {
|
|
107
|
+
"city": "Mountain View",
|
|
108
|
+
"district": "Santa Clara",
|
|
109
|
+
"zipcode": "94043-1351",
|
|
110
|
+
"state_prov": "California",
|
|
111
|
+
"country_name": "United States",
|
|
112
|
+
"continent_name": "North America",
|
|
113
|
+
"continent_code": "NA",
|
|
114
|
+
"country_code2": "US",
|
|
115
|
+
"country_code3": "USA",
|
|
116
|
+
"country_name_official": "United States of America",
|
|
117
|
+
"is_eu": false
|
|
118
|
+
},
|
|
119
|
+
"security": {
|
|
120
|
+
"threat_score": 5,
|
|
121
|
+
"is_tor": false,
|
|
122
|
+
"is_proxy": false,
|
|
123
|
+
"is_anonymous": false,
|
|
124
|
+
"is_known_attacker": false,
|
|
125
|
+
"is_spam": false,
|
|
126
|
+
"is_bot": false,
|
|
127
|
+
"is_cloud_provider": true,
|
|
128
|
+
"cloud_provider": "Google LLC"
|
|
129
|
+
}
|
|
91
130
|
}
|
|
92
131
|
},
|
|
93
132
|
{
|
|
@@ -104,10 +143,7 @@
|
|
|
104
143
|
"role": false
|
|
105
144
|
},
|
|
106
145
|
"dns": {
|
|
107
|
-
"mxRecord": [
|
|
108
|
-
"mail.mailinator.com.",
|
|
109
|
-
"mail2.mailinator.com."
|
|
110
|
-
]
|
|
146
|
+
"mxRecord": ["mail.mailinator.com.", "mail2.mailinator.com."]
|
|
111
147
|
}
|
|
112
148
|
}
|
|
113
149
|
]
|
|
@@ -129,29 +165,29 @@
|
|
|
129
165
|
}
|
|
130
166
|
},
|
|
131
167
|
"400": {
|
|
132
|
-
"description": "Bad Request – Invalid request body, empty/missing
|
|
168
|
+
"description": "Bad Request – Invalid request body, empty/missing emailData, or a null entry / entry without a valid email",
|
|
133
169
|
"content": {
|
|
134
170
|
"application/json": {
|
|
135
171
|
"schema": {
|
|
136
172
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
137
173
|
},
|
|
138
174
|
"examples": {
|
|
139
|
-
"
|
|
140
|
-
"summary": "
|
|
175
|
+
"emptyEmailData": {
|
|
176
|
+
"summary": "emailData missing or empty",
|
|
141
177
|
"value": {
|
|
142
|
-
"error": "
|
|
143
|
-
"message": "Please
|
|
178
|
+
"error": "Missing or Invalid Parameters",
|
|
179
|
+
"message": "Please pass at least one entry in 'emailData'.",
|
|
144
180
|
"path": "/v1.0/email/disposable/bulk",
|
|
145
181
|
"status": 400,
|
|
146
182
|
"timestamp": "2026-10-13T10:39:42.887Z"
|
|
147
183
|
}
|
|
148
184
|
},
|
|
149
185
|
"nullOrBlankEntry": {
|
|
150
|
-
"summary": "
|
|
186
|
+
"summary": "emailData contains a null entry or an entry with a blank/missing email — whole request rejected",
|
|
151
187
|
"value": {
|
|
152
188
|
"error": "Missing or Invalid Parameters",
|
|
153
|
-
"message": "'
|
|
154
|
-
"path": "/
|
|
189
|
+
"message": "'emailData' must not contain null entries or entries without a valid 'email'.",
|
|
190
|
+
"path": "/v1.0/email/disposable/bulk",
|
|
155
191
|
"status": 400,
|
|
156
192
|
"timestamp": "2026-10-13T10:39:44.002Z"
|
|
157
193
|
}
|
|
@@ -223,7 +259,7 @@
|
|
|
223
259
|
}
|
|
224
260
|
},
|
|
225
261
|
"413": {
|
|
226
|
-
"description": "Payload Too Large –
|
|
262
|
+
"description": "Payload Too Large – emailData exceeds the maximum of 100 entries per request",
|
|
227
263
|
"content": {
|
|
228
264
|
"application/json": {
|
|
229
265
|
"schema": {
|
|
@@ -303,6 +339,16 @@
|
|
|
303
339
|
},
|
|
304
340
|
"dns": {
|
|
305
341
|
"$ref": "#/components/schemas/DisposableDnsObject"
|
|
342
|
+
},
|
|
343
|
+
"ip": {
|
|
344
|
+
"description": "The IP address that was looked up.",
|
|
345
|
+
"anyOf": [
|
|
346
|
+
{ "type": "string", "format": "ipv4" },
|
|
347
|
+
{ "type": "string", "format": "ipv6" }
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
"address": {
|
|
351
|
+
"$ref": "#/components/schemas/AddressObject"
|
|
306
352
|
}
|
|
307
353
|
},
|
|
308
354
|
"description": "Disposable email check result for a single item in the bulk request."
|
|
@@ -369,15 +415,15 @@
|
|
|
369
415
|
"BulkDisposableEmailRequest": {
|
|
370
416
|
"type": "object",
|
|
371
417
|
"description": "Request body for bulk disposable email check.",
|
|
372
|
-
"required": ["
|
|
418
|
+
"required": ["emailData"],
|
|
373
419
|
"properties": {
|
|
374
|
-
"
|
|
420
|
+
"emailData": {
|
|
375
421
|
"type": "array",
|
|
376
|
-
"description": "
|
|
422
|
+
"description": "Entries to check. Maximum 100 per request. Must not be empty, and must not contain null entries or entries without a valid email.",
|
|
377
423
|
"minItems": 1,
|
|
378
424
|
"maxItems": 100,
|
|
379
425
|
"items": {
|
|
380
|
-
"
|
|
426
|
+
"$ref": "#/components/schemas/DisposableEmailEntry"
|
|
381
427
|
}
|
|
382
428
|
}
|
|
383
429
|
}
|
|
@@ -409,6 +455,160 @@
|
|
|
409
455
|
"description": "Timestamp when the error occurred (ISO 8601)."
|
|
410
456
|
}
|
|
411
457
|
}
|
|
458
|
+
},
|
|
459
|
+
"DisposableEmailEntry": {
|
|
460
|
+
"type": "object",
|
|
461
|
+
"required": ["email"],
|
|
462
|
+
"properties": {
|
|
463
|
+
"email": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"description": "The email address to check."
|
|
466
|
+
},
|
|
467
|
+
"ip": {
|
|
468
|
+
"description": "Optional IP address to look up for location and security data, such as the IP the signup came from.",
|
|
469
|
+
"anyOf": [
|
|
470
|
+
{ "type": "string", "format": "ipv4" },
|
|
471
|
+
{ "type": "string", "format": "ipv6" }
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
"AddressObject": {
|
|
477
|
+
"type": "object",
|
|
478
|
+
"properties": {
|
|
479
|
+
"validIpAddress": {
|
|
480
|
+
"type": "boolean",
|
|
481
|
+
"description": "IP recognized/reachable by the geolocation provider."
|
|
482
|
+
},
|
|
483
|
+
"location": {
|
|
484
|
+
"$ref": "#/components/schemas/EmailLocation"
|
|
485
|
+
},
|
|
486
|
+
"security": {
|
|
487
|
+
"$ref": "#/components/schemas/EmailSecurity"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"description": "Geolocation and security enrichment data for the IP address.",
|
|
491
|
+
"required": []
|
|
492
|
+
},
|
|
493
|
+
"EmailLocation": {
|
|
494
|
+
"type": "object",
|
|
495
|
+
"description": "Geolocation data derived from the IP address.",
|
|
496
|
+
"properties": {
|
|
497
|
+
"city": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"description": "Municipal or city name."
|
|
500
|
+
},
|
|
501
|
+
"district": {
|
|
502
|
+
"type": "string",
|
|
503
|
+
"description": "District or neighborhood."
|
|
504
|
+
},
|
|
505
|
+
"zipcode": {
|
|
506
|
+
"type": "string",
|
|
507
|
+
"description": "Postal or ZIP code."
|
|
508
|
+
},
|
|
509
|
+
"state_prov": {
|
|
510
|
+
"type": "string",
|
|
511
|
+
"description": "State or province."
|
|
512
|
+
},
|
|
513
|
+
"country_name": {
|
|
514
|
+
"type": "string",
|
|
515
|
+
"description": "Common country name."
|
|
516
|
+
},
|
|
517
|
+
"country_name_official": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"description": "Official country name."
|
|
520
|
+
},
|
|
521
|
+
"country_code2": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"description": "Two-character ISO country code."
|
|
524
|
+
},
|
|
525
|
+
"country_code3": {
|
|
526
|
+
"type": "string",
|
|
527
|
+
"description": "Three-character ISO country code."
|
|
528
|
+
},
|
|
529
|
+
"continent_name": {
|
|
530
|
+
"type": "string",
|
|
531
|
+
"description": "Continental region name."
|
|
532
|
+
},
|
|
533
|
+
"continent_code": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"description": "Continental region identifier."
|
|
536
|
+
},
|
|
537
|
+
"accuracy_radius": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"description": "Geolocation precision radius. Not included for every IP."
|
|
540
|
+
},
|
|
541
|
+
"confidence": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"description": "Confidence score for geolocation accuracy. Not included for every IP."
|
|
544
|
+
},
|
|
545
|
+
"is_eu": {
|
|
546
|
+
"type": "boolean",
|
|
547
|
+
"description": "European Union membership status."
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
"required": []
|
|
551
|
+
},
|
|
552
|
+
"EmailSecurity": {
|
|
553
|
+
"type": "object",
|
|
554
|
+
"description": "Threat and anonymity profile for the IP address.",
|
|
555
|
+
"required": [
|
|
556
|
+
"threat_score",
|
|
557
|
+
"is_tor",
|
|
558
|
+
"is_proxy",
|
|
559
|
+
"is_anonymous",
|
|
560
|
+
"is_known_attacker",
|
|
561
|
+
"is_spam",
|
|
562
|
+
"is_bot",
|
|
563
|
+
"is_cloud_provider",
|
|
564
|
+
"cloud_provider"
|
|
565
|
+
],
|
|
566
|
+
"properties": {
|
|
567
|
+
"threat_score": {
|
|
568
|
+
"type": "integer",
|
|
569
|
+
"description": "Quantitative risk assessment score. Higher values indicate elevated security risk."
|
|
570
|
+
},
|
|
571
|
+
"is_tor": {
|
|
572
|
+
"type": "boolean",
|
|
573
|
+
"description": "Detection flag for IP addresses routed through the Tor anonymity network."
|
|
574
|
+
},
|
|
575
|
+
"is_proxy": {
|
|
576
|
+
"type": "boolean",
|
|
577
|
+
"description": "Detection flag identifying IP addresses operating as proxy servers."
|
|
578
|
+
},
|
|
579
|
+
"proxy_type": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"description": "Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS). Included only when is_proxy is true."
|
|
582
|
+
},
|
|
583
|
+
"proxy_provider": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"description": "Identified service provider operating the proxy infrastructure. Included only when is_proxy is true."
|
|
586
|
+
},
|
|
587
|
+
"is_anonymous": {
|
|
588
|
+
"type": "boolean",
|
|
589
|
+
"description": "Anonymization detection flag for IP addresses using identity obfuscation techniques."
|
|
590
|
+
},
|
|
591
|
+
"is_known_attacker": {
|
|
592
|
+
"type": "boolean",
|
|
593
|
+
"description": "Threat intelligence flag for IP addresses documented as confirmed malicious sources."
|
|
594
|
+
},
|
|
595
|
+
"is_spam": {
|
|
596
|
+
"type": "boolean",
|
|
597
|
+
"description": "Reputation flag for IP addresses associated with spam transmission."
|
|
598
|
+
},
|
|
599
|
+
"is_bot": {
|
|
600
|
+
"type": "boolean",
|
|
601
|
+
"description": "Automated traffic detection flag for IP addresses from bot networks."
|
|
602
|
+
},
|
|
603
|
+
"is_cloud_provider": {
|
|
604
|
+
"type": "boolean",
|
|
605
|
+
"description": "Infrastructure classification flag for IP addresses from cloud computing providers."
|
|
606
|
+
},
|
|
607
|
+
"cloud_provider": {
|
|
608
|
+
"type": "string",
|
|
609
|
+
"description": "Identified cloud infrastructure or hosting service provider name."
|
|
610
|
+
}
|
|
611
|
+
}
|
|
412
612
|
}
|
|
413
613
|
},
|
|
414
614
|
"headers": {
|