@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.
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Disposable Email Checker API - Detect Temporary & Throwaway Email Addresses",
5
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.",
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. Optionally pass an ip to also get its geolocation and security signals (same format as the Email Checker's address object).",
7
7
  "contact": {
8
8
  "name": "APIFreaks Support",
9
9
  "url": "https://apifreaks.com/contact",
@@ -18,21 +18,11 @@
18
18
  ],
19
19
  "paths": {
20
20
  "/email/disposable": {
21
- "get": {
21
+ "post": {
22
22
  "tags": ["Email Validation APIs"],
23
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.",
24
+ "description": "Validates email syntax and checks the domain for disposable, free, spam, and role-account signals, plus MX/A DNS records. Send the email (and optionally an ip) as a JSON request body. When an ip is included, the response also carries geolocation and security data for it.",
25
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
26
  {
37
27
  "name": "format",
38
28
  "in": "query",
@@ -187,6 +177,90 @@
187
177
  "role": false
188
178
  }
189
179
  }
180
+ },
181
+ "withIpAddress": {
182
+ "summary": "Email with ip — location and security data included",
183
+ "value": {
184
+ "email": "someone@gmail.com",
185
+ "validSyntax": true,
186
+ "domain": {
187
+ "disposable": false,
188
+ "free": true,
189
+ "name": "gmail.com",
190
+ "spam": false,
191
+ "validDomain": true
192
+ },
193
+ "account": {
194
+ "role": false
195
+ },
196
+ "dns": {
197
+ "mxRecord": [
198
+ "gmail-smtp-in.l.google.com.",
199
+ "alt1.gmail-smtp-in.l.google.com.",
200
+ "alt2.gmail-smtp-in.l.google.com.",
201
+ "alt3.gmail-smtp-in.l.google.com.",
202
+ "alt4.gmail-smtp-in.l.google.com."
203
+ ]
204
+ },
205
+ "ip": "8.8.8.8",
206
+ "address": {
207
+ "validIpAddress": true,
208
+ "location": {
209
+ "city": "Mountain View",
210
+ "district": "Santa Clara",
211
+ "zipcode": "94043-1351",
212
+ "state_prov": "California",
213
+ "country_name": "United States",
214
+ "continent_name": "North America",
215
+ "continent_code": "NA",
216
+ "country_code2": "US",
217
+ "country_code3": "USA",
218
+ "country_name_official": "United States of America",
219
+ "is_eu": false
220
+ },
221
+ "security": {
222
+ "threat_score": 5,
223
+ "is_tor": false,
224
+ "is_proxy": false,
225
+ "is_anonymous": false,
226
+ "is_known_attacker": false,
227
+ "is_spam": false,
228
+ "is_bot": false,
229
+ "is_cloud_provider": true,
230
+ "cloud_provider": "Google LLC"
231
+ }
232
+ }
233
+ }
234
+ },
235
+ "invalidIp": {
236
+ "summary": "Invalid or reserved IP — still 200, address.validIpAddress is false",
237
+ "value": {
238
+ "email": "someone@gmail.com",
239
+ "validSyntax": true,
240
+ "domain": {
241
+ "disposable": false,
242
+ "free": true,
243
+ "name": "gmail.com",
244
+ "spam": false,
245
+ "validDomain": true
246
+ },
247
+ "account": {
248
+ "role": false
249
+ },
250
+ "dns": {
251
+ "mxRecord": [
252
+ "gmail-smtp-in.l.google.com.",
253
+ "alt1.gmail-smtp-in.l.google.com.",
254
+ "alt2.gmail-smtp-in.l.google.com.",
255
+ "alt3.gmail-smtp-in.l.google.com.",
256
+ "alt4.gmail-smtp-in.l.google.com."
257
+ ]
258
+ },
259
+ "ip": "10.0.0.1",
260
+ "address": {
261
+ "validIpAddress": false
262
+ }
263
+ }
190
264
  }
191
265
  }
192
266
  }
@@ -204,23 +278,13 @@
204
278
  }
205
279
  },
206
280
  "400": {
207
- "description": "Bad Request – Invalid or missing parameters",
281
+ "description": "Bad Request – Missing API key",
208
282
  "content": {
209
283
  "application/json": {
210
284
  "schema": {
211
285
  "$ref": "#/components/schemas/ErrorResponse"
212
286
  },
213
287
  "examples": {
214
- "missingEmail": {
215
- "summary": "email parameter missing or empty",
216
- "value": {
217
- "error": "Invalid Param Exception",
218
- "message": "please pass correct parameters",
219
- "path": "/v1.0/email/disposable",
220
- "status": 400,
221
- "timestamp": "2026-10-13T10:40:11.892Z"
222
- }
223
- },
224
288
  "missingApiKey": {
225
289
  "summary": "apiKey not supplied",
226
290
  "value": {
@@ -288,7 +352,32 @@
288
352
  }
289
353
  }
290
354
  },
291
- "operationId": "checkDisposableEmail"
355
+ "operationId": "checkDisposableEmail",
356
+ "requestBody": {
357
+ "required": true,
358
+ "content": {
359
+ "application/json": {
360
+ "schema": {
361
+ "$ref": "#/components/schemas/DisposableEmailCheckRequest"
362
+ },
363
+ "examples": {
364
+ "emailOnly": {
365
+ "summary": "Email only",
366
+ "value": {
367
+ "email": "test@sogetthis.com"
368
+ }
369
+ },
370
+ "emailWithIp": {
371
+ "summary": "Email with the signup IP",
372
+ "value": {
373
+ "email": "someone@gmail.com",
374
+ "ip": "8.8.8.8"
375
+ }
376
+ }
377
+ }
378
+ }
379
+ }
380
+ }
292
381
  }
293
382
  }
294
383
  },
@@ -328,6 +417,16 @@
328
417
  },
329
418
  "dns": {
330
419
  "$ref": "#/components/schemas/DisposableDnsObject"
420
+ },
421
+ "ip": {
422
+ "description": "The IP address that was looked up.",
423
+ "anyOf": [
424
+ { "type": "string", "format": "ipv4" },
425
+ { "type": "string", "format": "ipv6" }
426
+ ]
427
+ },
428
+ "address": {
429
+ "$ref": "#/components/schemas/AddressObject"
331
430
  }
332
431
  },
333
432
  "description": "Disposable email check response."
@@ -418,6 +517,162 @@
418
517
  "description": "Timestamp when the error occurred (ISO 8601)."
419
518
  }
420
519
  }
520
+ },
521
+ "DisposableEmailCheckRequest": {
522
+ "type": "object",
523
+ "description": "Request body for the disposable email check.",
524
+ "required": ["email"],
525
+ "properties": {
526
+ "email": {
527
+ "type": "string",
528
+ "format": "email",
529
+ "description": "The email address to check."
530
+ },
531
+ "ip": {
532
+ "description": "Optional IP address to look up for location and security data, such as the IP the signup came from.",
533
+ "anyOf": [
534
+ { "type": "string", "format": "ipv4" },
535
+ { "type": "string", "format": "ipv6" }
536
+ ]
537
+ }
538
+ }
539
+ },
540
+ "AddressObject": {
541
+ "type": "object",
542
+ "properties": {
543
+ "validIpAddress": {
544
+ "type": "boolean",
545
+ "description": "IP recognized/reachable by the geolocation provider."
546
+ },
547
+ "location": {
548
+ "$ref": "#/components/schemas/EmailLocation"
549
+ },
550
+ "security": {
551
+ "$ref": "#/components/schemas/EmailSecurity"
552
+ }
553
+ },
554
+ "description": "Geolocation and security enrichment data for the IP address.",
555
+ "required": []
556
+ },
557
+ "EmailLocation": {
558
+ "type": "object",
559
+ "description": "Geolocation data derived from the IP address.",
560
+ "properties": {
561
+ "city": {
562
+ "type": "string",
563
+ "description": "Municipal or city name."
564
+ },
565
+ "district": {
566
+ "type": "string",
567
+ "description": "District or neighborhood."
568
+ },
569
+ "zipcode": {
570
+ "type": "string",
571
+ "description": "Postal or ZIP code."
572
+ },
573
+ "state_prov": {
574
+ "type": "string",
575
+ "description": "State or province."
576
+ },
577
+ "country_name": {
578
+ "type": "string",
579
+ "description": "Common country name."
580
+ },
581
+ "country_name_official": {
582
+ "type": "string",
583
+ "description": "Official country name."
584
+ },
585
+ "country_code2": {
586
+ "type": "string",
587
+ "description": "Two-character ISO country code."
588
+ },
589
+ "country_code3": {
590
+ "type": "string",
591
+ "description": "Three-character ISO country code."
592
+ },
593
+ "continent_name": {
594
+ "type": "string",
595
+ "description": "Continental region name."
596
+ },
597
+ "continent_code": {
598
+ "type": "string",
599
+ "description": "Continental region identifier."
600
+ },
601
+ "accuracy_radius": {
602
+ "type": "string",
603
+ "description": "Geolocation precision radius. Not included for every IP."
604
+ },
605
+ "confidence": {
606
+ "type": "string",
607
+ "description": "Confidence score for geolocation accuracy. Not included for every IP."
608
+ },
609
+ "is_eu": {
610
+ "type": "boolean",
611
+ "description": "European Union membership status."
612
+ }
613
+ },
614
+ "required": []
615
+ },
616
+ "EmailSecurity": {
617
+ "type": "object",
618
+ "description": "Threat and anonymity profile for the IP address.",
619
+ "required": [
620
+ "threat_score",
621
+ "is_tor",
622
+ "is_proxy",
623
+ "is_anonymous",
624
+ "is_known_attacker",
625
+ "is_spam",
626
+ "is_bot",
627
+ "is_cloud_provider",
628
+ "cloud_provider"
629
+ ],
630
+ "properties": {
631
+ "threat_score": {
632
+ "type": "integer",
633
+ "description": "Quantitative risk assessment score. Higher values indicate elevated security risk."
634
+ },
635
+ "is_tor": {
636
+ "type": "boolean",
637
+ "description": "Detection flag for IP addresses routed through the Tor anonymity network."
638
+ },
639
+ "is_proxy": {
640
+ "type": "boolean",
641
+ "description": "Detection flag identifying IP addresses operating as proxy servers."
642
+ },
643
+ "proxy_type": {
644
+ "type": "string",
645
+ "description": "Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS). Included only when is_proxy is true."
646
+ },
647
+ "proxy_provider": {
648
+ "type": "string",
649
+ "description": "Identified service provider operating the proxy infrastructure. Included only when is_proxy is true."
650
+ },
651
+ "is_anonymous": {
652
+ "type": "boolean",
653
+ "description": "Anonymization detection flag for IP addresses using identity obfuscation techniques."
654
+ },
655
+ "is_known_attacker": {
656
+ "type": "boolean",
657
+ "description": "Threat intelligence flag for IP addresses documented as confirmed malicious sources."
658
+ },
659
+ "is_spam": {
660
+ "type": "boolean",
661
+ "description": "Reputation flag for IP addresses associated with spam transmission."
662
+ },
663
+ "is_bot": {
664
+ "type": "boolean",
665
+ "description": "Automated traffic detection flag for IP addresses from bot networks."
666
+ },
667
+ "is_cloud_provider": {
668
+ "type": "boolean",
669
+ "description": "Infrastructure classification flag for IP addresses from cloud computing providers."
670
+ },
671
+ "cloud_provider": {
672
+ "type": "string",
673
+ "description": "Identified cloud infrastructure or hosting service provider name."
674
+ }
675
+ }
421
676
  }
422
677
  },
423
678
  "headers": {