@apifreaks/openapi-specs 0.4.14 → 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": "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",
@@ -47,7 +37,7 @@
47
37
  ],
48
38
  "responses": {
49
39
  "200": {
50
- "description": "Successful response with disposable email check result.",
40
+ "description": "Successful response with disposable email check result. ip and address appear only when an ip was sent.",
51
41
  "content": {
52
42
  "application/json": {
53
43
  "schema": {
@@ -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,14 @@
328
417
  },
329
418
  "dns": {
330
419
  "$ref": "#/components/schemas/DisposableDnsObject"
420
+ },
421
+ "ip": {
422
+ "type": "string",
423
+ "format": "ip",
424
+ "description": "The IP address that was looked up. Present only when an ip was sent in the request."
425
+ },
426
+ "address": {
427
+ "$ref": "#/components/schemas/AddressObject"
331
428
  }
332
429
  },
333
430
  "description": "Disposable email check response."
@@ -418,6 +515,160 @@
418
515
  "description": "Timestamp when the error occurred (ISO 8601)."
419
516
  }
420
517
  }
518
+ },
519
+ "DisposableEmailCheckRequest": {
520
+ "type": "object",
521
+ "description": "Request body for the disposable email check.",
522
+ "required": ["email"],
523
+ "properties": {
524
+ "email": {
525
+ "type": "string",
526
+ "format": "email",
527
+ "description": "The email address to check. A malformed address still returns a normal response, with validSyntax and domain.validDomain set to false."
528
+ },
529
+ "ip": {
530
+ "type": "string",
531
+ "format": "ip",
532
+ "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."
533
+ }
534
+ }
535
+ },
536
+ "AddressObject": {
537
+ "type": "object",
538
+ "properties": {
539
+ "validIpAddress": {
540
+ "type": "boolean",
541
+ "description": "IP recognized/reachable by the geolocation provider."
542
+ },
543
+ "location": {
544
+ "$ref": "#/components/schemas/EmailLocation"
545
+ },
546
+ "security": {
547
+ "$ref": "#/components/schemas/EmailSecurity"
548
+ }
549
+ },
550
+ "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.",
551
+ "required": []
552
+ },
553
+ "EmailLocation": {
554
+ "type": "object",
555
+ "description": "Geolocation data derived from the IP address.",
556
+ "properties": {
557
+ "city": {
558
+ "type": "string",
559
+ "description": "Municipal or city name."
560
+ },
561
+ "district": {
562
+ "type": "string",
563
+ "description": "District or neighborhood."
564
+ },
565
+ "zipcode": {
566
+ "type": "string",
567
+ "description": "Postal or ZIP code."
568
+ },
569
+ "state_prov": {
570
+ "type": "string",
571
+ "description": "State or province."
572
+ },
573
+ "country_name": {
574
+ "type": "string",
575
+ "description": "Common country name."
576
+ },
577
+ "country_name_official": {
578
+ "type": "string",
579
+ "description": "Official country name."
580
+ },
581
+ "country_code2": {
582
+ "type": "string",
583
+ "description": "Two-character ISO country code."
584
+ },
585
+ "country_code3": {
586
+ "type": "string",
587
+ "description": "Three-character ISO country code."
588
+ },
589
+ "continent_name": {
590
+ "type": "string",
591
+ "description": "Continental region name."
592
+ },
593
+ "continent_code": {
594
+ "type": "string",
595
+ "description": "Continental region identifier."
596
+ },
597
+ "accuracy_radius": {
598
+ "type": "string",
599
+ "description": "Geolocation precision radius. Not included for every IP."
600
+ },
601
+ "confidence": {
602
+ "type": "string",
603
+ "description": "Confidence score for geolocation accuracy. Not included for every IP."
604
+ },
605
+ "is_eu": {
606
+ "type": "boolean",
607
+ "description": "European Union membership status."
608
+ }
609
+ },
610
+ "required": []
611
+ },
612
+ "EmailSecurity": {
613
+ "type": "object",
614
+ "description": "Threat and anonymity profile for the IP address.",
615
+ "required": [
616
+ "threat_score",
617
+ "is_tor",
618
+ "is_proxy",
619
+ "is_anonymous",
620
+ "is_known_attacker",
621
+ "is_spam",
622
+ "is_bot",
623
+ "is_cloud_provider",
624
+ "cloud_provider"
625
+ ],
626
+ "properties": {
627
+ "threat_score": {
628
+ "type": "integer",
629
+ "description": "Quantitative risk assessment score. Higher values indicate elevated security risk."
630
+ },
631
+ "is_tor": {
632
+ "type": "boolean",
633
+ "description": "Detection flag for IP addresses routed through the Tor anonymity network."
634
+ },
635
+ "is_proxy": {
636
+ "type": "boolean",
637
+ "description": "Detection flag identifying IP addresses operating as proxy servers."
638
+ },
639
+ "proxy_type": {
640
+ "type": "string",
641
+ "description": "Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS). Included only when is_proxy is true."
642
+ },
643
+ "proxy_provider": {
644
+ "type": "string",
645
+ "description": "Identified service provider operating the proxy infrastructure. Included only when is_proxy is true."
646
+ },
647
+ "is_anonymous": {
648
+ "type": "boolean",
649
+ "description": "Anonymization detection flag for IP addresses using identity obfuscation techniques."
650
+ },
651
+ "is_known_attacker": {
652
+ "type": "boolean",
653
+ "description": "Threat intelligence flag for IP addresses documented as confirmed malicious sources."
654
+ },
655
+ "is_spam": {
656
+ "type": "boolean",
657
+ "description": "Reputation flag for IP addresses associated with spam transmission."
658
+ },
659
+ "is_bot": {
660
+ "type": "boolean",
661
+ "description": "Automated traffic detection flag for IP addresses from bot networks."
662
+ },
663
+ "is_cloud_provider": {
664
+ "type": "boolean",
665
+ "description": "Infrastructure classification flag for IP addresses from cloud computing providers."
666
+ },
667
+ "cloud_provider": {
668
+ "type": "string",
669
+ "description": "Identified cloud infrastructure or hosting service provider name."
670
+ }
671
+ }
421
672
  }
422
673
  },
423
674
  "headers": {
@@ -147,7 +147,9 @@
147
147
  "network": {
148
148
  "connection_type": "",
149
149
  "route": "8.8.8.0/24",
150
- "is_anycast": true
150
+ "is_anycast": true,
151
+ "is_cdn": false,
152
+ "cdn_provider_name": ""
151
153
  },
152
154
  "currency": {
153
155
  "code": "USD",
@@ -231,7 +233,9 @@
231
233
  "network": {
232
234
  "connection_type": "",
233
235
  "route": "1.1.1.0/24",
234
- "is_anycast": true
236
+ "is_anycast": true,
237
+ "is_cdn": false,
238
+ "cdn_provider_name": ""
235
239
  },
236
240
  "currency": {
237
241
  "code": "AUD",
@@ -309,7 +313,9 @@
309
313
  "network": {
310
314
  "connection_type": "",
311
315
  "route": "8.8.8.0/24",
312
- "is_anycast": true
316
+ "is_anycast": true,
317
+ "is_cdn": false,
318
+ "cdn_provider_name": ""
313
319
  },
314
320
  "currency": {
315
321
  "code": "USD",
@@ -727,6 +733,14 @@
727
733
  "is_anycast": {
728
734
  "type": "boolean",
729
735
  "description": "true if the IP is anycast (same IP announced from multiple locations)."
736
+ },
737
+ "is_cdn": {
738
+ "type": "boolean",
739
+ "description": "true if the IP belongs to a content delivery network (CDN) or a cloud provider's network."
740
+ },
741
+ "cdn_provider_name": {
742
+ "type": "string",
743
+ "description": "CDN provider name (e.g. Cloudflare) when is_cdn is true; empty otherwise."
730
744
  }
731
745
  }
732
746
  },
@@ -815,8 +829,11 @@
815
829
  "is_anonymous",
816
830
  "is_known_attacker",
817
831
  "is_bot",
832
+ "bot_confidence_score",
833
+ "is_known_good_bot",
818
834
  "is_spam",
819
- "is_cloud_provider"
835
+ "is_cloud_provider",
836
+ "is_corporate_gateway"
820
837
  ],
821
838
  "properties": {
822
839
  "threat_score": {
@@ -889,17 +906,49 @@
889
906
  "type": "boolean",
890
907
  "description": "true if the IP is associated with bot activity."
891
908
  },
909
+ "bot_confidence_score": {
910
+ "type": "number",
911
+ "description": "Bot detection confidence from 0 to 100. 0 unless is_bot is true."
912
+ },
913
+ "bot_operator_name": {
914
+ "type": "string",
915
+ "description": "Organization running the bot, when known (mostly declared bots)."
916
+ },
917
+ "bot_type": {
918
+ "type": "string",
919
+ "description": "Kind of bot activity, when known. Declared bots (is_known_good_bot true): search_engine, ai_crawler, ai_assistant, seo_crawler, site_monitor, link_preview, feed_fetcher, archiver, ad_verification, scanner. Undeclared bots (is_known_good_bot false): scanner, scraper, exploit, credential_stuffing, brute_force, worm. New values can be added over time, so treat it as a plain string."
920
+ },
921
+ "is_known_good_bot": {
922
+ "type": "boolean",
923
+ "description": "true if the bot is a declared bot with a verifiable operator (e.g. a search engine crawler or uptime monitor)."
924
+ },
925
+ "bot_last_seen": {
926
+ "type": "string",
927
+ "description": "Last observed bot activity date in YYYY-MM-DD, when available."
928
+ },
892
929
  "is_spam": {
893
930
  "type": "boolean",
894
931
  "description": "true if the IP is associated with spam activity."
895
932
  },
896
933
  "is_cloud_provider": {
897
934
  "type": "boolean",
898
- "description": "true if the IP belongs to a cloud provider range."
935
+ "description": "true if the IP belongs to a cloud or hosting provider range."
899
936
  },
900
937
  "cloud_provider_name": {
901
938
  "type": "string",
902
- "description": "Cloud provider name."
939
+ "description": "Cloud or hosting provider name."
940
+ },
941
+ "is_corporate_gateway": {
942
+ "type": "boolean",
943
+ "description": "true if the IP is an outbound address of a corporate security gateway (SWG, SSE, or SASE)."
944
+ },
945
+ "corporate_gateway_type": {
946
+ "type": "string",
947
+ "description": "Kind of corporate gateway, when known. Known values: secure_web_gateway, browser_isolation."
948
+ },
949
+ "corporate_gateway_provider_name": {
950
+ "type": "string",
951
+ "description": "Corporate gateway provider name, when known."
903
952
  }
904
953
  }
905
954
  },
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Bulk IP Threat Intelligence API Reference",
5
5
  "version": "1.0.0",
6
- "description": "Retrieve threat intelligence and security profiles for up to 50,000 IP addresses in a single request. Each entry in the response array includes a composite 0-100 threat score plus per-signal flags for VPN, proxy, residential proxy, Tor exit node, bot, spam, and known-attacker activity, along with confidence scores and provider names where available. Use the `fields` and `excludes` query parameters to control which security signals are returned, reducing payload size for bulk workflows. A bad or bogon IP in the batch returns a per-item error object instead of failing the entire request, so you can process mixed-validity inputs in one call.",
6
+ "description": "Retrieve threat intelligence and security profiles for up to 50,000 IP addresses in a single request. Each entry in the response array includes a composite 0-100 threat score plus per-signal flags for VPN, proxy, residential proxy, Tor exit node, bot, spam, known-attacker, and corporate-gateway activity, along with confidence scores and provider names where available. Use the `fields` and `excludes` query parameters to control which security signals are returned, reducing payload size for bulk workflows. A bad or bogon IP in the batch returns a per-item error object instead of failing the entire request, so you can process mixed-validity inputs in one call.",
7
7
  "contact": {
8
8
  "name": "APIFreaks Support",
9
9
  "url": "https://apifreaks.com/contact",
@@ -103,9 +103,17 @@
103
103
  "is_anonymous": false,
104
104
  "is_known_attacker": false,
105
105
  "is_bot": false,
106
+ "bot_confidence_score": 0,
107
+ "bot_operator_name": "",
108
+ "bot_type": "",
109
+ "is_known_good_bot": false,
110
+ "bot_last_seen": "",
106
111
  "is_spam": false,
107
112
  "is_cloud_provider": true,
108
- "cloud_provider_name": "Google LLC"
113
+ "cloud_provider_name": "Google LLC",
114
+ "is_corporate_gateway": false,
115
+ "corporate_gateway_type": "",
116
+ "corporate_gateway_provider_name": ""
109
117
  }
110
118
  },
111
119
  {
@@ -127,9 +135,17 @@
127
135
  "is_anonymous": false,
128
136
  "is_known_attacker": false,
129
137
  "is_bot": false,
138
+ "bot_confidence_score": 0,
139
+ "bot_operator_name": "",
140
+ "bot_type": "",
141
+ "is_known_good_bot": false,
142
+ "bot_last_seen": "",
130
143
  "is_spam": false,
131
144
  "is_cloud_provider": true,
132
- "cloud_provider_name": "Cloudflare, Inc."
145
+ "cloud_provider_name": "Cloudflare, Inc.",
146
+ "is_corporate_gateway": false,
147
+ "corporate_gateway_type": "",
148
+ "corporate_gateway_provider_name": ""
133
149
  }
134
150
  }
135
151
  ]
@@ -159,9 +175,17 @@
159
175
  "is_anonymous": false,
160
176
  "is_known_attacker": false,
161
177
  "is_bot": false,
178
+ "bot_confidence_score": 0,
179
+ "bot_operator_name": "",
180
+ "bot_type": "",
181
+ "is_known_good_bot": false,
182
+ "bot_last_seen": "",
162
183
  "is_spam": false,
163
184
  "is_cloud_provider": true,
164
- "cloud_provider_name": "Google LLC"
185
+ "cloud_provider_name": "Google LLC",
186
+ "is_corporate_gateway": false,
187
+ "corporate_gateway_type": "",
188
+ "corporate_gateway_provider_name": ""
165
189
  }
166
190
  }
167
191
  ]
@@ -326,8 +350,11 @@
326
350
  "is_anonymous",
327
351
  "is_known_attacker",
328
352
  "is_bot",
353
+ "bot_confidence_score",
354
+ "is_known_good_bot",
329
355
  "is_spam",
330
- "is_cloud_provider"
356
+ "is_cloud_provider",
357
+ "is_corporate_gateway"
331
358
  ],
332
359
  "properties": {
333
360
  "threat_score": {
@@ -400,17 +427,49 @@
400
427
  "type": "boolean",
401
428
  "description": "Indicates whether the IP is associated with bot activity."
402
429
  },
430
+ "bot_confidence_score": {
431
+ "type": "number",
432
+ "description": "Confidence score (0-100) that the IP is used for bot activity. Set only when is_bot is true; otherwise 0."
433
+ },
434
+ "bot_operator_name": {
435
+ "type": "string",
436
+ "description": "Organization that runs the bot, when known. Usually present only for declared bots such as search engine crawlers."
437
+ },
438
+ "bot_type": {
439
+ "type": "string",
440
+ "description": "Kind of automated activity detected, when known. Declared bots (is_known_good_bot true): search_engine, ai_crawler, ai_assistant, seo_crawler, site_monitor, link_preview, feed_fetcher, archiver, ad_verification, scanner. Undeclared bots (is_known_good_bot false): scanner, scraper, exploit, credential_stuffing, brute_force, worm. New values can be added over time, so treat it as a plain string."
441
+ },
442
+ "is_known_good_bot": {
443
+ "type": "boolean",
444
+ "description": "Indicates whether the bot is a declared bot with a verifiable operator, such as a search engine crawler, uptime monitor, or security scanner."
445
+ },
446
+ "bot_last_seen": {
447
+ "type": "string",
448
+ "description": "Date (YYYY-MM-DD) the bot activity was last observed, when available."
449
+ },
403
450
  "is_spam": {
404
451
  "type": "boolean",
405
452
  "description": "Indicates whether the IP is associated with spam activity."
406
453
  },
407
454
  "is_cloud_provider": {
408
455
  "type": "boolean",
409
- "description": "Indicates whether the IP belongs to a cloud provider."
456
+ "description": "Indicates whether the IP belongs to a cloud or hosting provider."
410
457
  },
411
458
  "cloud_provider_name": {
412
459
  "type": "string",
413
- "description": "Name of the cloud provider, if the IP address belongs to a cloud provider."
460
+ "description": "Name of the cloud or hosting provider, if the IP address belongs to one."
461
+ },
462
+ "is_corporate_gateway": {
463
+ "type": "boolean",
464
+ "description": "Indicates whether the IP is an outbound address of a corporate security gateway (SWG, SSE, or SASE), meaning traffic from a company network is routed through it."
465
+ },
466
+ "corporate_gateway_type": {
467
+ "type": "string",
468
+ "description": "Kind of corporate gateway, when known. Known values: secure_web_gateway, browser_isolation."
469
+ },
470
+ "corporate_gateway_provider_name": {
471
+ "type": "string",
472
+ "description": "Name of the company that operates the gateway, such as Zscaler, when known."
414
473
  }
415
474
  }
416
475
  }