@apifreaks/openapi-specs 0.4.15 → 0.4.16

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.
@@ -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 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
+ "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` email addresses per request.",
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
- "emails": ["abc", "john@microsoft.com", "test@mailinator.com"]
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 emails array, or a null/blank entry in emails",
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
- "invalidBody": {
140
- "summary": "emails field missing, empty, or malformed",
175
+ "emptyEmailData": {
176
+ "summary": "emailData missing or empty",
141
177
  "value": {
142
- "error": "Invalid request body Exception",
143
- "message": "Please provide data in required format in request body",
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": "emails array contains a null/blank/whitespace-only entry — whole request rejected",
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": "'emails' must not contain null or blank entries.",
154
- "path": "/v2/email/disposable/bulk",
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 – emails exceeds the maximum of 100 entries per request",
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,14 @@
303
339
  },
304
340
  "dns": {
305
341
  "$ref": "#/components/schemas/DisposableDnsObject"
342
+ },
343
+ "ip": {
344
+ "type": "string",
345
+ "format": "ip",
346
+ "description": "The IP address that was looked up. Present only when an ip was sent in the request."
347
+ },
348
+ "address": {
349
+ "$ref": "#/components/schemas/AddressObject"
306
350
  }
307
351
  },
308
352
  "description": "Disposable email check result for a single item in the bulk request."
@@ -369,15 +413,15 @@
369
413
  "BulkDisposableEmailRequest": {
370
414
  "type": "object",
371
415
  "description": "Request body for bulk disposable email check.",
372
- "required": ["emails"],
416
+ "required": ["emailData"],
373
417
  "properties": {
374
- "emails": {
418
+ "emailData": {
375
419
  "type": "array",
376
- "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.",
420
+ "description": "Entries to check. Maximum 100 per request. Must not be empty, and must not contain null entries or entries without a valid email — either condition rejects the whole request with a 400.",
377
421
  "minItems": 1,
378
422
  "maxItems": 100,
379
423
  "items": {
380
- "type": "string"
424
+ "$ref": "#/components/schemas/DisposableEmailEntry"
381
425
  }
382
426
  }
383
427
  }
@@ -409,6 +453,158 @@
409
453
  "description": "Timestamp when the error occurred (ISO 8601)."
410
454
  }
411
455
  }
456
+ },
457
+ "DisposableEmailEntry": {
458
+ "type": "object",
459
+ "required": ["email"],
460
+ "properties": {
461
+ "email": {
462
+ "type": "string",
463
+ "description": "The email address to check. A malformed address still returns a normal response, with validSyntax and domain.validDomain set to false."
464
+ },
465
+ "ip": {
466
+ "type": "string",
467
+ "format": "ip",
468
+ "description": "Optional IP address to look up for location and security data, such as the IP the signup came from. An invalid or reserved IP still returns 200, with address.validIpAddress set to false."
469
+ }
470
+ }
471
+ },
472
+ "AddressObject": {
473
+ "type": "object",
474
+ "properties": {
475
+ "validIpAddress": {
476
+ "type": "boolean",
477
+ "description": "IP recognized/reachable by the geolocation provider."
478
+ },
479
+ "location": {
480
+ "$ref": "#/components/schemas/EmailLocation"
481
+ },
482
+ "security": {
483
+ "$ref": "#/components/schemas/EmailSecurity"
484
+ }
485
+ },
486
+ "description": "Geolocation and security enrichment data for the IP address. Present only when an ip was sent in the request. If the IP lookup fails, this object is omitted and the disposable email result is unaffected.",
487
+ "required": []
488
+ },
489
+ "EmailLocation": {
490
+ "type": "object",
491
+ "description": "Geolocation data derived from the IP address.",
492
+ "properties": {
493
+ "city": {
494
+ "type": "string",
495
+ "description": "Municipal or city name."
496
+ },
497
+ "district": {
498
+ "type": "string",
499
+ "description": "District or neighborhood."
500
+ },
501
+ "zipcode": {
502
+ "type": "string",
503
+ "description": "Postal or ZIP code."
504
+ },
505
+ "state_prov": {
506
+ "type": "string",
507
+ "description": "State or province."
508
+ },
509
+ "country_name": {
510
+ "type": "string",
511
+ "description": "Common country name."
512
+ },
513
+ "country_name_official": {
514
+ "type": "string",
515
+ "description": "Official country name."
516
+ },
517
+ "country_code2": {
518
+ "type": "string",
519
+ "description": "Two-character ISO country code."
520
+ },
521
+ "country_code3": {
522
+ "type": "string",
523
+ "description": "Three-character ISO country code."
524
+ },
525
+ "continent_name": {
526
+ "type": "string",
527
+ "description": "Continental region name."
528
+ },
529
+ "continent_code": {
530
+ "type": "string",
531
+ "description": "Continental region identifier."
532
+ },
533
+ "accuracy_radius": {
534
+ "type": "string",
535
+ "description": "Geolocation precision radius. Not included for every IP."
536
+ },
537
+ "confidence": {
538
+ "type": "string",
539
+ "description": "Confidence score for geolocation accuracy. Not included for every IP."
540
+ },
541
+ "is_eu": {
542
+ "type": "boolean",
543
+ "description": "European Union membership status."
544
+ }
545
+ },
546
+ "required": []
547
+ },
548
+ "EmailSecurity": {
549
+ "type": "object",
550
+ "description": "Threat and anonymity profile for the IP address.",
551
+ "required": [
552
+ "threat_score",
553
+ "is_tor",
554
+ "is_proxy",
555
+ "is_anonymous",
556
+ "is_known_attacker",
557
+ "is_spam",
558
+ "is_bot",
559
+ "is_cloud_provider",
560
+ "cloud_provider"
561
+ ],
562
+ "properties": {
563
+ "threat_score": {
564
+ "type": "integer",
565
+ "description": "Quantitative risk assessment score. Higher values indicate elevated security risk."
566
+ },
567
+ "is_tor": {
568
+ "type": "boolean",
569
+ "description": "Detection flag for IP addresses routed through the Tor anonymity network."
570
+ },
571
+ "is_proxy": {
572
+ "type": "boolean",
573
+ "description": "Detection flag identifying IP addresses operating as proxy servers."
574
+ },
575
+ "proxy_type": {
576
+ "type": "string",
577
+ "description": "Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS). Included only when is_proxy is true."
578
+ },
579
+ "proxy_provider": {
580
+ "type": "string",
581
+ "description": "Identified service provider operating the proxy infrastructure. Included only when is_proxy is true."
582
+ },
583
+ "is_anonymous": {
584
+ "type": "boolean",
585
+ "description": "Anonymization detection flag for IP addresses using identity obfuscation techniques."
586
+ },
587
+ "is_known_attacker": {
588
+ "type": "boolean",
589
+ "description": "Threat intelligence flag for IP addresses documented as confirmed malicious sources."
590
+ },
591
+ "is_spam": {
592
+ "type": "boolean",
593
+ "description": "Reputation flag for IP addresses associated with spam transmission."
594
+ },
595
+ "is_bot": {
596
+ "type": "boolean",
597
+ "description": "Automated traffic detection flag for IP addresses from bot networks."
598
+ },
599
+ "is_cloud_provider": {
600
+ "type": "boolean",
601
+ "description": "Infrastructure classification flag for IP addresses from cloud computing providers."
602
+ },
603
+ "cloud_provider": {
604
+ "type": "string",
605
+ "description": "Identified cloud infrastructure or hosting service provider name."
606
+ }
607
+ }
412
608
  }
413
609
  },
414
610
  "headers": {