@apifreaks/openapi-specs 0.4.8 → 0.4.10

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.
@@ -75,15 +75,15 @@ paths:
75
75
  name: not-an-email
76
76
  validDomain: false
77
77
  - success: true
78
- email: random12345@yahoo.com
78
+ email: someone@mailinator.com
79
79
  validEmail: accept_all
80
80
  validSyntax: true
81
81
  reason: domain accepts all addresses.
82
82
  domain:
83
- name: yahoo.com
84
- disposable: false
83
+ name: mailinator.com
84
+ disposable: true
85
85
  spam: false
86
- free: true
86
+ free: false
87
87
  validDomain: true
88
88
  catchAll: true
89
89
  account:
@@ -91,9 +91,8 @@ paths:
91
91
  fullMailBox: false
92
92
  dns:
93
93
  mxRecord:
94
- - mta5.am0.yahoodns.net.
95
- - mta6.am0.yahoodns.net.
96
- - mta7.am0.yahoodns.net.
94
+ - mail.mailinator.com.
95
+ - mail2.mailinator.com.
97
96
  - success: true
98
97
  email: test@example.com
99
98
  validEmail: invalid
@@ -105,7 +104,6 @@ paths:
105
104
  spam: false
106
105
  free: false
107
106
  validDomain: true
108
- catchAll: false
109
107
  account:
110
108
  role: false
111
109
  dns:
@@ -122,7 +120,6 @@ paths:
122
120
  spam: false
123
121
  free: false
124
122
  validDomain: true
125
- catchAll: false
126
123
  account:
127
124
  role: false
128
125
  dns:
@@ -318,7 +315,7 @@ components:
318
315
  description: Classification indicating free or consumer-grade email service providers.
319
316
  catchAll:
320
317
  type: boolean
321
- description: Detection flag for domains configured to accept mail for any recipient address. true always corresponds to a top-level validEmail of accept_all.
318
+ 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.'
322
319
  description: Domain validation details for the email address.
323
320
  AccountObject:
324
321
  type: object
@@ -395,10 +392,10 @@ components:
395
392
  description: Continental region identifier.
396
393
  accuracy_radius:
397
394
  type: string
398
- description: Geolocation precision radius.
395
+ description: Geolocation precision radius. Not included for every IP.
399
396
  confidence:
400
397
  type: string
401
- description: Confidence score for geolocation accuracy.
398
+ description: Confidence score for geolocation accuracy. Not included for every IP.
402
399
  is_eu:
403
400
  type: boolean
404
401
  description: European Union membership status.
@@ -410,8 +407,6 @@ components:
410
407
  - threat_score
411
408
  - is_tor
412
409
  - is_proxy
413
- - proxy_type
414
- - proxy_provider
415
410
  - is_anonymous
416
411
  - is_known_attacker
417
412
  - is_spam
@@ -430,10 +425,10 @@ components:
430
425
  description: Detection flag identifying IP addresses operating as proxy servers.
431
426
  proxy_type:
432
427
  type: string
433
- description: Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS).
428
+ description: Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS). Included only when is_proxy is true.
434
429
  proxy_provider:
435
430
  type: string
436
- description: Identified service provider operating the proxy infrastructure.
431
+ description: Identified service provider operating the proxy infrastructure. Included only when is_proxy is true.
437
432
  is_anonymous:
438
433
  type: boolean
439
434
  description: Anonymization detection flag for IP addresses using identity obfuscation techniques.
@@ -89,22 +89,21 @@ paths:
89
89
  spam: false
90
90
  free: false
91
91
  validDomain: false
92
- catchAll: false
93
92
  account:
94
93
  role: false
95
94
  acceptAll:
96
- summary: Catch-all domain accepted the recipient — mailbox unconfirmed
95
+ summary: Catch-all domain accepted the recipient, mailbox unconfirmed
97
96
  value:
98
97
  success: true
99
- email: random12345@yahoo.com
98
+ email: someone@mailinator.com
100
99
  validEmail: accept_all
101
100
  validSyntax: true
102
101
  reason: domain accepts all addresses.
103
102
  domain:
104
- name: yahoo.com
105
- disposable: false
103
+ name: mailinator.com
104
+ disposable: true
106
105
  spam: false
107
- free: true
106
+ free: false
108
107
  validDomain: true
109
108
  catchAll: true
110
109
  account:
@@ -112,11 +111,10 @@ paths:
112
111
  fullMailBox: false
113
112
  dns:
114
113
  mxRecord:
115
- - mta5.am0.yahoodns.net.
116
- - mta6.am0.yahoodns.net.
117
- - mta7.am0.yahoodns.net.
114
+ - mail.mailinator.com.
115
+ - mail2.mailinator.com.
118
116
  nullMxDomain:
119
- summary: Domain publishes a null MX (single ".") — accepts no mail at all
117
+ summary: Domain publishes a null MX (single "."), accepts no mail at all
120
118
  value:
121
119
  success: true
122
120
  email: test@example.com
@@ -129,14 +127,13 @@ paths:
129
127
  spam: false
130
128
  free: false
131
129
  validDomain: true
132
- catchAll: false
133
130
  account:
134
131
  role: false
135
132
  dns:
136
133
  mxRecord:
137
134
  - .
138
135
  noMxAddressOnly:
139
- summary: Domain has no MX record but a working A record — gets a real SMTP probe
136
+ summary: Domain has no MX record but a working A record, gets a real SMTP probe
140
137
  value:
141
138
  success: true
142
139
  email: test@neverssl.com
@@ -149,7 +146,6 @@ paths:
149
146
  spam: false
150
147
  free: false
151
148
  validDomain: true
152
- catchAll: false
153
149
  account:
154
150
  role: false
155
151
  dns:
@@ -185,7 +181,6 @@ paths:
185
181
  location:
186
182
  city: Mountain View
187
183
  district: Santa Clara
188
- confidence: low
189
184
  zipcode: 94043-1351
190
185
  state_prov: California
191
186
  country_name: United States
@@ -194,14 +189,11 @@ paths:
194
189
  country_code2: US
195
190
  country_code3: USA
196
191
  country_name_official: United States of America
197
- accuracy_radius: '27.42'
198
192
  is_eu: false
199
193
  security:
200
194
  threat_score: 5
201
195
  is_tor: false
202
196
  is_proxy: false
203
- proxy_type: ''
204
- proxy_provider: ''
205
197
  is_anonymous: false
206
198
  is_known_attacker: false
207
199
  is_spam: false
@@ -222,7 +214,6 @@ paths:
222
214
  spam: false
223
215
  free: true
224
216
  validDomain: true
225
- catchAll: false
226
217
  account:
227
218
  role: false
228
219
  dns:
@@ -406,7 +397,7 @@ components:
406
397
  description: Classification indicating free or consumer-grade email service providers.
407
398
  catchAll:
408
399
  type: boolean
409
- description: Detection flag for domains configured to accept mail for any recipient address. true always corresponds to a top-level validEmail of accept_all.
400
+ 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.'
410
401
  description: Domain validation details for the email address.
411
402
  AccountObject:
412
403
  type: object
@@ -483,10 +474,10 @@ components:
483
474
  description: Continental region identifier.
484
475
  accuracy_radius:
485
476
  type: string
486
- description: Geolocation precision radius.
477
+ description: Geolocation precision radius. Not included for every IP.
487
478
  confidence:
488
479
  type: string
489
- description: Confidence score for geolocation accuracy.
480
+ description: Confidence score for geolocation accuracy. Not included for every IP.
490
481
  is_eu:
491
482
  type: boolean
492
483
  description: European Union membership status.
@@ -498,8 +489,6 @@ components:
498
489
  - threat_score
499
490
  - is_tor
500
491
  - is_proxy
501
- - proxy_type
502
- - proxy_provider
503
492
  - is_anonymous
504
493
  - is_known_attacker
505
494
  - is_spam
@@ -518,10 +507,10 @@ components:
518
507
  description: Detection flag identifying IP addresses operating as proxy servers.
519
508
  proxy_type:
520
509
  type: string
521
- description: Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS).
510
+ description: Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS). Included only when is_proxy is true.
522
511
  proxy_provider:
523
512
  type: string
524
- description: Identified service provider operating the proxy infrastructure.
513
+ description: Identified service provider operating the proxy infrastructure. Included only when is_proxy is true.
525
514
  is_anonymous:
526
515
  type: boolean
527
516
  description: Anonymization detection flag for IP addresses using identity obfuscation techniques.
@@ -2,7 +2,7 @@ openapi: 3.1.1
2
2
  info:
3
3
  title: IBAN Validation API - Validate Format, Check SEPA & Return Bank Details
4
4
  version: 1.0.0
5
- description: Validate an IBAN number against country-specific format, length, and checksum rules. Supports IBANs from all SEPA and IBAN-compliant countries. Returns detailed validation results for each check — alphanumeric, supported country, length, structure, and check digit. Includes bank data such as BIC/SWIFT code, bank name, branch details, and SEPA eligibility when available.
5
+ description: Validate an IBAN number against country-specific format, length, and checksum rules. Supports IBANs from all SEPA and IBAN-compliant countries. Returns detailed validation results for each check — alphanumeric, supported country, length, structure, and check digit. Includes bank data such as BIC/SWIFT code, bank name, institution type, branch name, postal code, and SEPA eligibility when available.
6
6
  contact:
7
7
  name: APIFreaks Support
8
8
  url: https://apifreaks.com/contact
@@ -55,14 +55,17 @@ paths:
55
55
  is_iban_check_digit_valid: true
56
56
  bban: valid
57
57
  bank_data:
58
- bic: NWBKGB2LBHM
58
+ bic: NWBKGB2104T
59
59
  bank: NATIONAL WESTMINSTER BANK PLC
60
+ instit_type: FIIN
61
+ branch_name: NATIONAL WESTMINSTER BANK PLC
60
62
  bank_code: NWBK
61
63
  branch_code: '601613'
62
64
  country: United Kingdom
63
65
  country_iso2: GB
64
- city: BIRMINGHAM
65
- address: 6 BRINDLEY PLACE - BIRMINGHAM, B1
66
+ city: ALTRINCHAM
67
+ address: 23 STAMFORD NEW ROAD, GREATER
68
+ postal_code: WA141DB
66
69
  account: '31926819'
67
70
  sepa: true
68
71
  invalidIban:
@@ -80,12 +83,15 @@ paths:
80
83
  bank_data:
81
84
  bic: null
82
85
  bank: null
86
+ instit_type: null
87
+ branch_name: null
83
88
  bank_code: null
84
89
  branch_code: ''
85
90
  country: Norway
86
91
  country_iso2: 'NO'
87
92
  city: null
88
93
  address: null
94
+ postal_code: null
89
95
  account: N123
90
96
  sepa: true
91
97
  unsupportedCountry:
@@ -103,12 +109,15 @@ paths:
103
109
  bank_data:
104
110
  bic: null
105
111
  bank: null
112
+ instit_type: null
113
+ branch_name: null
106
114
  bank_code: null
107
115
  branch_code: ''
108
116
  country: null
109
117
  country_iso2: US
110
118
  city: null
111
119
  address: null
120
+ postal_code: null
112
121
  account: null
113
122
  sepa: null
114
123
  headers:
@@ -213,6 +222,16 @@ components:
213
222
  - string
214
223
  - 'null'
215
224
  description: Bank name extracted from the IBAN. Null when not resolvable.
225
+ instit_type:
226
+ type:
227
+ - string
228
+ - 'null'
229
+ description: 'Type of institution: "FIIN" (financial institution) or "NFIN" (non-financial institution). Null when not resolvable.'
230
+ branch_name:
231
+ type:
232
+ - string
233
+ - 'null'
234
+ description: Name of the branch or office. Null when not resolvable.
216
235
  bank_code:
217
236
  type:
218
237
  - string
@@ -239,6 +258,11 @@ components:
239
258
  - string
240
259
  - 'null'
241
260
  description: Bank branch address. Null when not resolvable.
261
+ postal_code:
262
+ type:
263
+ - string
264
+ - 'null'
265
+ description: Postal/ZIP code of the bank branch. Null when not resolvable.
242
266
  account:
243
267
  type:
244
268
  - string
@@ -2,7 +2,7 @@ openapi: 3.1.1
2
2
  info:
3
3
  title: SWIFT/BIC Code API - Look Up Bank Details or Find Codes by Country, Bank & City
4
4
  version: 1.0.0
5
- description: Look up a SWIFT/BIC code to retrieve bank details. Returns the bank name, address, city, country, country code, and bank code for any valid 8 or 11 character SWIFT/BIC code. Supports both headquarters and branch-level SWIFT codes.
5
+ description: Look up a SWIFT/BIC code to retrieve bank details. Returns the bank name, institution type, branch name, address, postal code, city, country, country code, and bank code for any valid 8 or 11 character SWIFT/BIC code. Supports both headquarters and branch-level SWIFT codes.
6
6
  contact:
7
7
  name: APIFreaks Support
8
8
  url: https://apifreaks.com/contact
@@ -47,11 +47,27 @@ paths:
47
47
  value:
48
48
  swiftCode: NWBKGB2LXXX
49
49
  countryCode: GB
50
- bankAddress: 250 BISHOPSGATE
50
+ bankAddress: 250 BISHOPSGATE, GREATER LONDON
51
51
  bankCode: NWBK
52
52
  bankName: NATIONAL WESTMINSTER BANK PLC
53
+ institType: FIIN
54
+ branchName: NATIONAL WESTMINSTER BANK PLC
53
55
  city: LONDON
54
56
  country: United Kingdom
57
+ postalCode: EC2M 4AA
58
+ nullablePostalCode:
59
+ summary: branchName/postalCode can be null when not resolvable
60
+ value:
61
+ swiftCode: HSBCHKHHXXX
62
+ countryCode: HK
63
+ bankAddress: HSBC MAIN BUILDING
64
+ bankCode: HSBC
65
+ bankName: THE HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED
66
+ institType: FIIN
67
+ branchName: HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE
68
+ city: CENTRAL
69
+ country: Hong Kong
70
+ postalCode: null
55
71
  headers:
56
72
  X-AF-Credits-Cost:
57
73
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -123,18 +139,32 @@ components:
123
139
  bankName:
124
140
  type: string
125
141
  description: Full name of the bank or financial institution.
142
+ institType:
143
+ type: string
144
+ description: 'Type of institution: "FIIN" (financial institution) or "NFIN" (non-financial institution).'
145
+ branchName:
146
+ type:
147
+ - string
148
+ - 'null'
149
+ description: Name of the branch or office. Null when not resolvable.
126
150
  city:
127
151
  type: string
128
152
  description: City where the bank branch is located.
129
153
  country:
130
154
  type: string
131
155
  description: Full country name where the bank is registered.
156
+ postalCode:
157
+ type:
158
+ - string
159
+ - 'null'
160
+ description: Postal/ZIP code of the bank branch. Null when not resolvable.
132
161
  required:
133
162
  - swiftCode
134
163
  - countryCode
135
164
  - bankAddress
136
165
  - bankCode
137
166
  - bankName
167
+ - institType
138
168
  - city
139
169
  - country
140
170
  description: Bank details returned for a SWIFT/BIC code lookup.
@@ -2,7 +2,7 @@ openapi: 3.1.1
2
2
  info:
3
3
  title: Bulk User Agent Parser - Multi User Agent Parsing
4
4
  version: 1.0.0
5
- description: Parse multiple User-Agent strings in a single POST request to obtain detailed browser, device, operating system, and rendering engine information for each string. Supports up to 100 User-Agent strings per request; exceeding that returns a 413, not a 400. Each entry in the response array mirrors the shape of a single User Agent Parser result --- including browser/app name and version, device hardware (name, type, brand, CPU), layout engine data, and operating system metadata --- in the same order as the request. A malformed/unparsable (but non-empty) string does not fail the batch; it simply comes back with every classification field set to `Hacker`, just like the single-lookup endpoint. An empty string or `null` anywhere in the array does fail the whole request with a `400`, not a per-item error --- there is no partial-failure array shape for this endpoint.
5
+ description: Parse multiple User-Agent strings in a single POST request to obtain detailed browser, device, operating system, and rendering engine information for each string. Supports up to 20,000 User-Agent strings per request; exceeding that returns a 413, not a 400. Each entry in the response array mirrors the shape of a single User Agent Parser result --- including browser/app name and version, device hardware (name, type, brand, CPU), layout engine data, and operating system metadata --- in the same order as the request. A malformed/unparsable (but non-empty) string does not fail the batch; it simply comes back with every classification field set to `Hacker`, just like the single-lookup endpoint. An empty string or `null` anywhere in the array does fail the whole request with a `400`, not a per-item error --- there is no partial-failure array shape for this endpoint.
6
6
  contact:
7
7
  name: APIFreaks Support
8
8
  url: https://apifreaks.com/contact
@@ -16,7 +16,7 @@ paths:
16
16
  tags:
17
17
  - User Agent APIs
18
18
  summary: Parse multiple User-Agent strings in a single request to obtain browser, device, and operating system details
19
- description: Parse up to 100 User-Agent strings simultaneously in a single request. Returns structured details about the browser, device, layout engine, and operating system for each string.
19
+ description: Parse up to 20,000 User-Agent strings simultaneously in a single request. Returns structured details about the browser, device, layout engine, and operating system for each string.
20
20
  operationId: bulkParseUserAgent
21
21
  parameters:
22
22
  - name: format
@@ -188,14 +188,14 @@ paths:
188
188
  X-AF-Credits-Cost:
189
189
  $ref: '#/components/headers/X-AF-Credits-Cost'
190
190
  '413':
191
- description: Payload Too Large — More than 100 strings in uaStrings
191
+ description: Payload Too Large — More than 20,000 strings in uaStrings
192
192
  content:
193
193
  application/json:
194
194
  schema:
195
195
  $ref: '#/components/schemas/ErrorResponse'
196
196
  examples:
197
197
  tooManyStrings:
198
- summary: uaStrings array exceeds the 100-item limit
198
+ summary: uaStrings array exceeds the 20,000-item limit
199
199
  value:
200
200
  error: Payload too large Exception
201
201
  message: Maximum request body size limit exceeded
@@ -223,8 +223,8 @@ components:
223
223
  properties:
224
224
  uaStrings:
225
225
  type: array
226
- description: Array of User-Agent strings to parse. Maximum 100 strings per request — exceeding that returns a 413.
227
- maxItems: 100
226
+ description: Array of User-Agent strings to parse. Maximum 20,000 strings per request — exceeding that returns a 413.
227
+ maxItems: 20000
228
228
  items:
229
229
  type: string
230
230
  BulkUserAgentParserResponse:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apifreaks/openapi-specs",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "description": "Public OpenAPI 3.1 specifications for all APIFreaks API products.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/specs/README.md CHANGED
@@ -4,7 +4,7 @@ OpenAPI 3.1 documents for [APIFreaks](https://apifreaks.com) API products. Each
4
4
 
5
5
  This folder is the source of truth. JSON only. YAML is produced when the npm package is built, not checked in here.
6
6
 
7
- To install the specs as a package (`getSpec`, `SpecSlug`, JSON imports), see the [repository README](../README.md).
7
+ To install the specs as a package (`getSpecJson`, `SpecSlug`, JSON imports), see the [repository README](../README.md).
8
8
 
9
9
  ## Open a spec
10
10
 
@@ -24,7 +24,7 @@ https://raw.githubusercontent.com/api-freaks/af-openapi-specs/main/specs/ip-inte
24
24
  npx openapi-typescript https://raw.githubusercontent.com/api-freaks/af-openapi-specs/main/specs/ip-intelligence/ip-locator.json -o ip-locator.ts
25
25
  ```
26
26
 
27
- The slug is the filename without `.json`. It is the identifier the npm package uses (`getSpec("ip-locator")`).
27
+ The slug is the filename without `.json`. It is the identifier the npm package uses (`getSpecJson("ip-locator")`).
28
28
 
29
29
  ## Authentication
30
30
 
@@ -97,15 +97,15 @@
97
97
  },
98
98
  {
99
99
  "success": true,
100
- "email": "random12345@yahoo.com",
100
+ "email": "someone@mailinator.com",
101
101
  "validEmail": "accept_all",
102
102
  "validSyntax": true,
103
103
  "reason": "domain accepts all addresses.",
104
104
  "domain": {
105
- "name": "yahoo.com",
106
- "disposable": false,
105
+ "name": "mailinator.com",
106
+ "disposable": true,
107
107
  "spam": false,
108
- "free": true,
108
+ "free": false,
109
109
  "validDomain": true,
110
110
  "catchAll": true
111
111
  },
@@ -115,9 +115,8 @@
115
115
  },
116
116
  "dns": {
117
117
  "mxRecord": [
118
- "mta5.am0.yahoodns.net.",
119
- "mta6.am0.yahoodns.net.",
120
- "mta7.am0.yahoodns.net."
118
+ "mail.mailinator.com.",
119
+ "mail2.mailinator.com."
121
120
  ]
122
121
  }
123
122
  },
@@ -132,8 +131,7 @@
132
131
  "disposable": true,
133
132
  "spam": false,
134
133
  "free": false,
135
- "validDomain": true,
136
- "catchAll": false
134
+ "validDomain": true
137
135
  },
138
136
  "account": {
139
137
  "role": false
@@ -153,8 +151,7 @@
153
151
  "disposable": false,
154
152
  "spam": false,
155
153
  "free": false,
156
- "validDomain": true,
157
- "catchAll": false
154
+ "validDomain": true
158
155
  },
159
156
  "account": {
160
157
  "role": false
@@ -431,7 +428,7 @@
431
428
  },
432
429
  "catchAll": {
433
430
  "type": "boolean",
434
- "description": "Detection flag for domains configured to accept mail for any recipient address. true always corresponds to a top-level validEmail of accept_all."
431
+ "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."
435
432
  }
436
433
  },
437
434
  "description": "Domain validation details for the email address."
@@ -535,11 +532,11 @@
535
532
  },
536
533
  "accuracy_radius": {
537
534
  "type": "string",
538
- "description": "Geolocation precision radius."
535
+ "description": "Geolocation precision radius. Not included for every IP."
539
536
  },
540
537
  "confidence": {
541
538
  "type": "string",
542
- "description": "Confidence score for geolocation accuracy."
539
+ "description": "Confidence score for geolocation accuracy. Not included for every IP."
543
540
  },
544
541
  "is_eu": {
545
542
  "type": "boolean",
@@ -555,8 +552,6 @@
555
552
  "threat_score",
556
553
  "is_tor",
557
554
  "is_proxy",
558
- "proxy_type",
559
- "proxy_provider",
560
555
  "is_anonymous",
561
556
  "is_known_attacker",
562
557
  "is_spam",
@@ -579,11 +574,11 @@
579
574
  },
580
575
  "proxy_type": {
581
576
  "type": "string",
582
- "description": "Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS)."
577
+ "description": "Classification of detected proxy infrastructure type (e.g. VPN, HTTP, SOCKS). Included only when is_proxy is true."
583
578
  },
584
579
  "proxy_provider": {
585
580
  "type": "string",
586
- "description": "Identified service provider operating the proxy infrastructure."
581
+ "description": "Identified service provider operating the proxy infrastructure. Included only when is_proxy is true."
587
582
  },
588
583
  "is_anonymous": {
589
584
  "type": "boolean",