@apifreaks/openapi-specs 0.2.0 → 0.3.1

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.
Files changed (214) hide show
  1. package/README.md +37 -38
  2. package/dist/index.cjs +5561 -2991
  3. package/dist/index.d.cts +2 -3
  4. package/dist/index.d.ts +2 -3
  5. package/dist/index.js +5561 -2991
  6. package/dist/specs/{general → billing}/usage-credits.yaml +11 -0
  7. package/dist/specs/commodity/commodity-fluctuation.yaml +14 -0
  8. package/dist/specs/commodity/commodity-prices.yaml +14 -0
  9. package/dist/specs/commodity/commodity-symbols.yaml +8 -0
  10. package/dist/specs/commodity/commodity-time-series.yaml +14 -0
  11. package/dist/specs/commodity/historical-commodity-prices.yaml +14 -0
  12. package/dist/specs/currency/currency-converter.yaml +14 -0
  13. package/dist/specs/currency/currency-fluctuation.yaml +14 -0
  14. package/dist/specs/currency/currency-historical-data-limit.yaml +11 -0
  15. package/dist/specs/currency/currency-rate.yaml +14 -0
  16. package/dist/specs/currency/currency-supported.yaml +11 -0
  17. package/dist/specs/currency/currency-symbols.yaml +11 -0
  18. package/dist/specs/currency/currency-time-series.yaml +14 -0
  19. package/dist/specs/currency/geolocalized-currency-conversion.yaml +14 -0
  20. package/dist/specs/currency/historical-currency-converter.yaml +14 -0
  21. package/dist/specs/currency/historical-currency-rate.yaml +14 -0
  22. package/dist/specs/dns/bulk-dns-lookup.yaml +14 -0
  23. package/dist/specs/dns/dns-history-lookup.yaml +14 -0
  24. package/dist/specs/dns/dns-lookup.yaml +11 -0
  25. package/dist/specs/dns/reverse-dns-lookup.yaml +34 -0
  26. package/dist/specs/domain/bulk-domain-checker.yaml +17 -0
  27. package/dist/specs/domain/domain-search-with-suggestions.yaml +14 -0
  28. package/dist/specs/domain/domain-search.yaml +14 -0
  29. package/dist/specs/domain/subdomain-lookup.yaml +14 -0
  30. package/dist/specs/email-validation/bulk-email-validation.yaml +76 -12
  31. package/dist/specs/email-validation/email-checker.yaml +93 -10
  32. package/dist/specs/financial/bulk-vat-rates-country.yaml +14 -0
  33. package/dist/specs/financial/financial-apis-supported-countries.yaml +8 -0
  34. package/dist/specs/financial/iban-validation.yaml +11 -0
  35. package/dist/specs/financial/swift-code-finder.yaml +11 -0
  36. package/dist/specs/financial/swift-code-lookup.yaml +14 -0
  37. package/dist/specs/financial/vat-number-validation.yaml +14 -0
  38. package/dist/specs/financial/vat-rates-by-ip.yaml +14 -0
  39. package/dist/specs/financial/vat-rates-country.yaml +14 -0
  40. package/dist/specs/geocoding/forward-geocoding.yaml +14 -0
  41. package/dist/specs/geocoding/reverse-geocoding.yaml +11 -0
  42. package/dist/specs/{geodb → geography}/administrative-units-details.yaml +14 -0
  43. package/dist/specs/{geodb → geography}/administrative-units-levels.yaml +14 -0
  44. package/dist/specs/{geodb → geography}/administrative-units.yaml +14 -0
  45. package/dist/specs/{geodb → geography}/cities.yaml +14 -0
  46. package/dist/specs/{geodb → geography}/countries-details.yaml +11 -0
  47. package/dist/specs/{geodb → geography}/countries.yaml +11 -0
  48. package/dist/specs/{geodb → geography}/flags-supported.yaml +8 -0
  49. package/dist/specs/{geodb → geography}/flags.yaml +14 -0
  50. package/dist/specs/{geodb → geography}/regions.yaml +8 -0
  51. package/dist/specs/{geodb → geography}/subregions.yaml +14 -0
  52. package/dist/specs/ip-intelligence/bulk-ip-lookup.yaml +14 -0
  53. package/dist/specs/ip-intelligence/bulk-ip-threat-intelligence.yaml +11 -0
  54. package/dist/specs/ip-intelligence/ip-locator.yaml +17 -0
  55. package/dist/specs/ip-intelligence/ip-threat-intelligence.yaml +14 -0
  56. package/dist/specs/pdf/bulk-pdf-generator.yaml +32 -0
  57. package/dist/specs/pdf/delete-pdf-page.yaml +14 -0
  58. package/dist/specs/pdf/linearize-pdf.yaml +14 -0
  59. package/dist/specs/pdf/merge-pdf.yaml +14 -0
  60. package/dist/specs/pdf/pdf-compress.yaml +14 -0
  61. package/dist/specs/pdf/pdf-decrypt.yaml +14 -0
  62. package/dist/specs/pdf/pdf-encrypt.yaml +14 -0
  63. package/dist/specs/pdf/pdf-extract-pages.yaml +14 -0
  64. package/dist/specs/pdf/pdf-file-status.yaml +14 -0
  65. package/dist/specs/pdf/pdf-file.yaml +14 -0
  66. package/dist/specs/pdf/pdf-files.yaml +8 -0
  67. package/dist/specs/pdf/pdf-generator.yaml +32 -0
  68. package/dist/specs/pdf/pdf-resource-download.yaml +14 -0
  69. package/dist/specs/pdf/pdf-resource-upload-binary.yaml +14 -0
  70. package/dist/specs/pdf/pdf-resource-upload.yaml +14 -0
  71. package/dist/specs/pdf/pdf-restrict.yaml +14 -0
  72. package/dist/specs/pdf/pdf-split-pages.yaml +14 -0
  73. package/dist/specs/pdf/pdf-task-status.yaml +14 -0
  74. package/dist/specs/pdf/pdf-to-image.yaml +35 -0
  75. package/dist/specs/pdf/pdf-unrestrict.yaml +14 -0
  76. package/dist/specs/pdf/rotate-pdf-pages.yaml +14 -0
  77. package/dist/specs/phone-validation/bulk-phone-number-validation.yaml +23 -0
  78. package/dist/specs/phone-validation/phone-number-validation.yaml +20 -0
  79. package/dist/specs/scraper/web-scraper.yaml +34 -0
  80. package/dist/specs/screenshot/bulk-screenshot.yaml +34 -0
  81. package/dist/specs/screenshot/website-screenshot.yaml +34 -0
  82. package/dist/specs/ssl/ssl-certificate-chain-lookup.yaml +17 -0
  83. package/dist/specs/ssl/ssl-certificate-lookup.yaml +17 -0
  84. package/dist/specs/timezone/timezone-converter.yaml +14 -0
  85. package/dist/specs/timezone/timezone-lookup.yaml +14 -0
  86. package/dist/specs/user-agent/bulk-user-agent-parser.yaml +11 -0
  87. package/dist/specs/user-agent/user-agent-parser.yaml +11 -0
  88. package/dist/specs/weather/air-quality.yaml +14 -0
  89. package/dist/specs/{other → weather}/astronomy-data.yaml +14 -0
  90. package/dist/specs/weather/bulk-live-weather.yaml +11 -0
  91. package/dist/specs/weather/flood-forecast.yaml +14 -0
  92. package/dist/specs/weather/historical-weather.yaml +14 -0
  93. package/dist/specs/weather/live-weather.yaml +14 -0
  94. package/dist/specs/weather/marine-weather.yaml +14 -0
  95. package/dist/specs/weather/time-series-weather.yaml +11 -0
  96. package/dist/specs/weather/weather-forecast.yaml +11 -0
  97. package/dist/specs/whois/asn-lookup.yaml +14 -0
  98. package/dist/specs/whois/bulk-whois-lookup.yaml +17 -0
  99. package/dist/specs/whois/domain-whois-history-lookup.yaml +14 -0
  100. package/dist/specs/whois/reverse-whois.yaml +34 -0
  101. package/dist/specs/whois/whois-domain-lookup.yaml +17 -0
  102. package/dist/specs/whois/whois-ip-lookup.yaml +14 -0
  103. package/dist/specs/zip-code/bulk-zip-code-lookup.yaml +14 -0
  104. package/dist/specs/zip-code/zip-code-api.yaml +14 -0
  105. package/dist/specs/zip-code/zip-code-distance-match.yaml +14 -0
  106. package/dist/specs/zip-code/zip-code-distance.yaml +14 -0
  107. package/dist/specs/zip-code/zip-codes-by-city.yaml +14 -0
  108. package/dist/specs/zip-code/zip-codes-by-region.yaml +14 -0
  109. package/dist/specs/zip-code/zip-codes-radius-search.yaml +34 -0
  110. package/package.json +1 -1
  111. package/specs/{general → billing}/usage-credits.json +18 -0
  112. package/specs/commodity/commodity-fluctuation.json +23 -0
  113. package/specs/commodity/commodity-prices.json +23 -0
  114. package/specs/commodity/commodity-symbols.json +13 -0
  115. package/specs/commodity/commodity-time-series.json +27 -13
  116. package/specs/commodity/historical-commodity-prices.json +23 -0
  117. package/specs/currency/currency-converter.json +23 -0
  118. package/specs/currency/currency-fluctuation.json +23 -0
  119. package/specs/currency/currency-historical-data-limit.json +18 -0
  120. package/specs/currency/currency-rate.json +23 -0
  121. package/specs/currency/currency-supported.json +18 -0
  122. package/specs/currency/currency-symbols.json +18 -0
  123. package/specs/currency/currency-time-series.json +23 -0
  124. package/specs/currency/geolocalized-currency-conversion.json +23 -0
  125. package/specs/currency/historical-currency-converter.json +23 -0
  126. package/specs/currency/historical-currency-rate.json +23 -0
  127. package/specs/dns/bulk-dns-lookup.json +23 -0
  128. package/specs/dns/dns-history-lookup.json +23 -0
  129. package/specs/dns/dns-lookup.json +18 -0
  130. package/specs/dns/reverse-dns-lookup.json +61 -1
  131. package/specs/domain/bulk-domain-checker.json +28 -0
  132. package/specs/domain/domain-search-with-suggestions.json +23 -0
  133. package/specs/domain/domain-search.json +23 -0
  134. package/specs/domain/subdomain-lookup.json +23 -0
  135. package/specs/email-validation/bulk-email-validation.json +118 -13
  136. package/specs/email-validation/email-checker.json +131 -11
  137. package/specs/financial/bulk-vat-rates-country.json +23 -0
  138. package/specs/financial/financial-apis-supported-countries.json +34 -5
  139. package/specs/financial/iban-validation.json +18 -0
  140. package/specs/financial/swift-code-finder.json +31 -2
  141. package/specs/financial/swift-code-lookup.json +23 -0
  142. package/specs/financial/vat-number-validation.json +23 -0
  143. package/specs/financial/vat-rates-by-ip.json +23 -0
  144. package/specs/financial/vat-rates-country.json +23 -0
  145. package/specs/geocoding/forward-geocoding.json +23 -0
  146. package/specs/geocoding/reverse-geocoding.json +18 -0
  147. package/specs/{geodb → geography}/administrative-units-details.json +23 -0
  148. package/specs/{geodb → geography}/administrative-units-levels.json +23 -0
  149. package/specs/{geodb → geography}/administrative-units.json +23 -0
  150. package/specs/{geodb → geography}/cities.json +23 -0
  151. package/specs/{geodb → geography}/countries-details.json +18 -0
  152. package/specs/{geodb → geography}/countries.json +18 -0
  153. package/specs/{geodb → geography}/flags-supported.json +13 -0
  154. package/specs/{geodb → geography}/flags.json +23 -0
  155. package/specs/{geodb → geography}/regions.json +13 -0
  156. package/specs/{geodb → geography}/subregions.json +23 -0
  157. package/specs/ip-intelligence/bulk-ip-lookup.json +23 -0
  158. package/specs/ip-intelligence/bulk-ip-threat-intelligence.json +18 -0
  159. package/specs/ip-intelligence/ip-locator.json +33 -5
  160. package/specs/ip-intelligence/ip-threat-intelligence.json +23 -0
  161. package/specs/pdf/bulk-pdf-generator.json +61 -8
  162. package/specs/pdf/delete-pdf-page.json +33 -21
  163. package/specs/pdf/linearize-pdf.json +31 -19
  164. package/specs/pdf/merge-pdf.json +30 -18
  165. package/specs/pdf/pdf-compress.json +32 -25
  166. package/specs/pdf/pdf-decrypt.json +32 -21
  167. package/specs/pdf/pdf-encrypt.json +31 -19
  168. package/specs/pdf/pdf-extract-pages.json +33 -21
  169. package/specs/pdf/pdf-file-status.json +23 -0
  170. package/specs/pdf/pdf-file.json +23 -0
  171. package/specs/pdf/pdf-files.json +13 -0
  172. package/specs/pdf/pdf-generator.json +61 -8
  173. package/specs/pdf/pdf-resource-download.json +23 -0
  174. package/specs/pdf/pdf-resource-upload-binary.json +29 -16
  175. package/specs/pdf/pdf-resource-upload.json +30 -19
  176. package/specs/pdf/pdf-restrict.json +32 -20
  177. package/specs/pdf/pdf-split-pages.json +33 -21
  178. package/specs/pdf/pdf-task-status.json +23 -0
  179. package/specs/pdf/pdf-to-image.json +90 -101
  180. package/specs/pdf/pdf-unrestrict.json +32 -20
  181. package/specs/pdf/rotate-pdf-pages.json +32 -20
  182. package/specs/phone-validation/bulk-phone-number-validation.json +54 -16
  183. package/specs/phone-validation/phone-number-validation.json +33 -0
  184. package/specs/scraper/web-scraper.json +53 -0
  185. package/specs/screenshot/bulk-screenshot.json +53 -0
  186. package/specs/screenshot/website-screenshot.json +53 -0
  187. package/specs/ssl/ssl-certificate-chain-lookup.json +28 -0
  188. package/specs/ssl/ssl-certificate-lookup.json +28 -0
  189. package/specs/timezone/timezone-converter.json +23 -0
  190. package/specs/timezone/timezone-lookup.json +25 -2
  191. package/specs/user-agent/bulk-user-agent-parser.json +20 -2
  192. package/specs/user-agent/user-agent-parser.json +18 -0
  193. package/specs/weather/air-quality.json +23 -0
  194. package/specs/{other → weather}/astronomy-data.json +24 -2
  195. package/specs/weather/bulk-live-weather.json +18 -0
  196. package/specs/weather/flood-forecast.json +23 -0
  197. package/specs/weather/historical-weather.json +23 -0
  198. package/specs/weather/live-weather.json +23 -0
  199. package/specs/weather/marine-weather.json +23 -0
  200. package/specs/weather/time-series-weather.json +18 -0
  201. package/specs/weather/weather-forecast.json +18 -0
  202. package/specs/whois/asn-lookup.json +23 -0
  203. package/specs/whois/bulk-whois-lookup.json +28 -0
  204. package/specs/whois/domain-whois-history-lookup.json +23 -0
  205. package/specs/whois/reverse-whois.json +53 -0
  206. package/specs/whois/whois-domain-lookup.json +28 -0
  207. package/specs/whois/whois-ip-lookup.json +23 -0
  208. package/specs/zip-code/bulk-zip-code-lookup.json +23 -0
  209. package/specs/zip-code/zip-code-api.json +23 -0
  210. package/specs/zip-code/zip-code-distance-match.json +23 -0
  211. package/specs/zip-code/zip-code-distance.json +23 -0
  212. package/specs/zip-code/zip-codes-by-city.json +23 -0
  213. package/specs/zip-code/zip-codes-by-region.json +24 -7
  214. package/specs/zip-code/zip-codes-radius-search.json +53 -0
@@ -194,6 +194,9 @@ paths:
194
194
  moonrise: '01:15'
195
195
  moonset: '12:19'
196
196
  moon_status: '-'
197
+ headers:
198
+ X-AF-Credits-Cost:
199
+ $ref: '#/components/headers/X-AF-Credits-Cost'
197
200
  '400':
198
201
  description: Bad Request --- Missing/invalid date, missing/incomplete lat+long pair, coordinates out of range, invalid IP address, invalid precision, or invalid timezone
199
202
  content:
@@ -265,6 +268,9 @@ paths:
265
268
  message: Check whether your input value is correct; timezone = NotATimezone
266
269
  error: error
267
270
  path: /v1.0/weather/historical
271
+ headers:
272
+ X-AF-Credits-Cost:
273
+ $ref: '#/components/headers/X-AF-Credits-Cost'
268
274
  '404':
269
275
  description: Not Found --- Location could not be resolved
270
276
  content:
@@ -280,6 +286,9 @@ paths:
280
286
  message: Location not found
281
287
  error: error
282
288
  path: /v1.0/weather/historical
289
+ headers:
290
+ X-AF-Credits-Cost:
291
+ $ref: '#/components/headers/X-AF-Credits-Cost'
283
292
  components:
284
293
  securitySchemes:
285
294
  ApiKeyAuthHeader:
@@ -837,6 +846,11 @@ components:
837
846
  type: string
838
847
  format: date-time
839
848
  description: Timestamp when the error occurred (ISO 8601).
849
+ headers:
850
+ X-AF-Credits-Cost:
851
+ description: Specifies the number of credits consumed by the current request.
852
+ schema:
853
+ type: integer
840
854
  security:
841
855
  - ApiKeyAuthHeader: []
842
856
  - ApiKeyAuthQuery: []
@@ -123,6 +123,9 @@ paths:
123
123
  moonrise: '12:41'
124
124
  moonset: '22:28'
125
125
  moon_status: '-'
126
+ headers:
127
+ X-AF-Credits-Cost:
128
+ $ref: '#/components/headers/X-AF-Credits-Cost'
126
129
  '400':
127
130
  description: Bad Request — Missing/incomplete lat+long pair, coordinates out of range, invalid timezone, or invalid IP address
128
131
  content:
@@ -162,6 +165,9 @@ paths:
162
165
  message: Invalid IP address
163
166
  error: invalid-params
164
167
  path: /v1.0/weather/current
168
+ headers:
169
+ X-AF-Credits-Cost:
170
+ $ref: '#/components/headers/X-AF-Credits-Cost'
165
171
  '404':
166
172
  description: Not Found — Location address could not be resolved
167
173
  content:
@@ -177,6 +183,9 @@ paths:
177
183
  message: Location not found
178
184
  error: error
179
185
  path: /v1.0/weather/current
186
+ headers:
187
+ X-AF-Credits-Cost:
188
+ $ref: '#/components/headers/X-AF-Credits-Cost'
180
189
  components:
181
190
  securitySchemes:
182
191
  ApiKeyAuthHeader:
@@ -628,6 +637,11 @@ components:
628
637
  format: date-time
629
638
  description: Timestamp when the error occurred (ISO 8601).
630
639
  description: Standard error envelope returned by the API on failed requests.
640
+ headers:
641
+ X-AF-Credits-Cost:
642
+ description: Specifies the number of credits consumed by the current request.
643
+ schema:
644
+ type: integer
631
645
  security:
632
646
  - ApiKeyAuthHeader: []
633
647
  - ApiKeyAuthQuery: []
@@ -193,6 +193,9 @@ paths:
193
193
  swell_wave_direction_dominant: 218
194
194
  swell_wave_period_max: 4.7
195
195
  swell_wave_peak_period_max: 6.3
196
+ headers:
197
+ X-AF-Credits-Cost:
198
+ $ref: '#/components/headers/X-AF-Credits-Cost'
196
199
  '400':
197
200
  description: Bad Request — invalid or incomplete parameters
198
201
  content:
@@ -248,6 +251,9 @@ paths:
248
251
  path: /v1.0/weather/marine
249
252
  status: 400
250
253
  timestamp: '2026-07-24T11:35:30.525Z'
254
+ headers:
255
+ X-AF-Credits-Cost:
256
+ $ref: '#/components/headers/X-AF-Credits-Cost'
251
257
  '404':
252
258
  description: Not Found — location could not be resolved
253
259
  content:
@@ -263,6 +269,9 @@ paths:
263
269
  message: Location not found
264
270
  error: error
265
271
  path: /v1.0/weather/marine
272
+ headers:
273
+ X-AF-Credits-Cost:
274
+ $ref: '#/components/headers/X-AF-Credits-Cost'
266
275
  components:
267
276
  securitySchemes:
268
277
  ApiKeyAuthHeader:
@@ -801,6 +810,11 @@ components:
801
810
  description: Array of minute-by-minute marine data points for the day. Present when precision=minutely.
802
811
  items:
803
812
  $ref: '#/components/schemas/MarineMinutely'
813
+ headers:
814
+ X-AF-Credits-Cost:
815
+ description: Specifies the number of credits consumed by the current request.
816
+ schema:
817
+ type: integer
804
818
  security:
805
819
  - ApiKeyAuthHeader: []
806
820
  - ApiKeyAuthQuery: []
@@ -203,6 +203,9 @@ paths:
203
203
  moonrise: '12:18'
204
204
  moonset: '23:04'
205
205
  moon_status: '-'
206
+ headers:
207
+ X-AF-Credits-Cost:
208
+ $ref: '#/components/headers/X-AF-Credits-Cost'
206
209
  '400':
207
210
  description: Bad Request — Missing/invalid parameters, invalid date range, or location could not be resolved
208
211
  content:
@@ -306,6 +309,9 @@ paths:
306
309
  message: Check whether your input value is correct; timezone = NotATimezone
307
310
  error: error
308
311
  path: /v1.0/weather/time-series
312
+ headers:
313
+ X-AF-Credits-Cost:
314
+ $ref: '#/components/headers/X-AF-Credits-Cost'
309
315
  components:
310
316
  securitySchemes:
311
317
  ApiKeyAuthHeader:
@@ -816,6 +822,11 @@ components:
816
822
  $ref: '#/components/schemas/TimeSeriesDay'
817
823
  required:
818
824
  - date
825
+ headers:
826
+ X-AF-Credits-Cost:
827
+ description: Specifies the number of credits consumed by the current request.
828
+ schema:
829
+ type: integer
819
830
  security:
820
831
  - ApiKeyAuthHeader: []
821
832
  - ApiKeyAuthQuery: []
@@ -221,6 +221,9 @@ paths:
221
221
  moonrise: '15:08'
222
222
  moonset: '00:26'
223
223
  moon_status: '-'
224
+ headers:
225
+ X-AF-Credits-Cost:
226
+ $ref: '#/components/headers/X-AF-Credits-Cost'
224
227
  '400':
225
228
  description: Bad Request — invalid, missing, or conflicting parameters
226
229
  content:
@@ -308,6 +311,9 @@ paths:
308
311
  message: Check whether your input value is correct; timezone = NotATimezone
309
312
  error: error
310
313
  path: /v1.0/weather/forecast
314
+ headers:
315
+ X-AF-Credits-Cost:
316
+ $ref: '#/components/headers/X-AF-Credits-Cost'
311
317
  components:
312
318
  securitySchemes:
313
319
  ApiKeyAuthHeader:
@@ -930,6 +936,11 @@ components:
930
936
  type: string
931
937
  format: date-time
932
938
  description: Timestamp when the error occurred (ISO 8601).
939
+ headers:
940
+ X-AF-Credits-Cost:
941
+ description: Specifies the number of credits consumed by the current request.
942
+ schema:
943
+ type: integer
933
944
  security:
934
945
  - ApiKeyAuthHeader: []
935
946
  - ApiKeyAuthQuery: []
@@ -169,6 +169,9 @@ paths:
169
169
  - zsu@nisc.sri.com
170
170
  abuseContacts: []
171
171
  legacyRoutes: []
172
+ headers:
173
+ X-AF-Credits-Cost:
174
+ $ref: '#/components/headers/X-AF-Credits-Cost'
172
175
  '400':
173
176
  description: Bad Request — Invalid asn parameter
174
177
  content:
@@ -184,6 +187,9 @@ paths:
184
187
  error: Input parameter is not valid
185
188
  message: Request-param 'asn' (ABC123) is not valid
186
189
  path: /v2.0/asn-whois
190
+ headers:
191
+ X-AF-Credits-Cost:
192
+ $ref: '#/components/headers/X-AF-Credits-Cost'
187
193
  '404':
188
194
  description: Not Found — ASN could not be found
189
195
  content:
@@ -199,6 +205,9 @@ paths:
199
205
  error: Data Not Found
200
206
  message: ASN data for 999999999 could not be found.
201
207
  path: /v2.0/asn-whois
208
+ headers:
209
+ X-AF-Credits-Cost:
210
+ $ref: '#/components/headers/X-AF-Credits-Cost'
202
211
  components:
203
212
  securitySchemes:
204
213
  ApiKeyAuthHeader:
@@ -613,6 +622,11 @@ components:
613
622
  description: Abuse-reporting contact email addresses for the ASN.
614
623
  items:
615
624
  type: string
625
+ headers:
626
+ X-AF-Credits-Cost:
627
+ description: Specifies the number of credits consumed by the current request.
628
+ schema:
629
+ type: integer
616
630
  security:
617
631
  - ApiKeyAuthHeader: []
618
632
  - ApiKeyAuthQuery: []
@@ -278,6 +278,9 @@ paths:
278
278
 
279
279
  The Registry database contains ONLY .COM, .NET, .EDU domains and
280
280
  Registrars.
281
+ headers:
282
+ X-AF-Credits-Cost:
283
+ $ref: '#/components/headers/X-AF-Credits-Cost'
281
284
  '206':
282
285
  description: Partial Content — At least one domain in the batch returned an error; other domains in the same batch still resolved successfully
283
286
  content:
@@ -513,6 +516,9 @@ paths:
513
516
 
514
517
  The Registry database contains ONLY .COM, .NET, .EDU domains and
515
518
  Registrars.
519
+ headers:
520
+ X-AF-Credits-Cost:
521
+ $ref: '#/components/headers/X-AF-Credits-Cost'
516
522
  '400':
517
523
  description: Bad Request — Missing or malformed request body
518
524
  content:
@@ -528,6 +534,9 @@ paths:
528
534
  path: /v2.0/domain/whois/live
529
535
  status: 400
530
536
  timestamp: '2026-07-23T09:28:56.641Z'
537
+ headers:
538
+ X-AF-Credits-Cost:
539
+ $ref: '#/components/headers/X-AF-Credits-Cost'
531
540
  '413':
532
541
  description: Payload Too Large — Request exceeds the 100-domain batch limit
533
542
  content:
@@ -543,6 +552,9 @@ paths:
543
552
  path: /v2.0/domain/whois/live
544
553
  status: 413
545
554
  timestamp: '2026-07-23T09:28:57.228Z'
555
+ headers:
556
+ X-AF-Credits-Cost:
557
+ $ref: '#/components/headers/X-AF-Credits-Cost'
546
558
  components:
547
559
  securitySchemes:
548
560
  ApiKeyAuthHeader:
@@ -822,6 +834,11 @@ components:
822
834
  domain_registrar:
823
835
  $ref: '#/components/schemas/DomainRegistrar'
824
836
  description: Registrar of record as recorded directly by the registry.
837
+ headers:
838
+ X-AF-Credits-Cost:
839
+ description: Specifies the number of credits consumed by the current request.
840
+ schema:
841
+ type: integer
825
842
  security:
826
843
  - ApiKeyAuthHeader: []
827
844
  - ApiKeyAuthQuery: []
@@ -159,6 +159,9 @@ paths:
159
159
 
160
160
  The Registry database contains ONLY .COM, .NET, .EDU domains and
161
161
  Registrars.
162
+ headers:
163
+ X-AF-Credits-Cost:
164
+ $ref: '#/components/headers/X-AF-Credits-Cost'
162
165
  '400':
163
166
  description: Bad Request — Invalid domainName parameter
164
167
  content:
@@ -174,6 +177,9 @@ paths:
174
177
  error: Invalid Param Exception
175
178
  message: 'Please pass domain param correct value [For Technical Support: support@whoisfreaks.com]'
176
179
  path: /v1.0/whois
180
+ headers:
181
+ X-AF-Credits-Cost:
182
+ $ref: '#/components/headers/X-AF-Credits-Cost'
177
183
  '404':
178
184
  description: Not Found — No historical WHOIS records for the domain
179
185
  content:
@@ -189,6 +195,9 @@ paths:
189
195
  error: Record Not Found
190
196
  message: Record not found
191
197
  path: /v1.0/whois
198
+ headers:
199
+ X-AF-Credits-Cost:
200
+ $ref: '#/components/headers/X-AF-Credits-Cost'
192
201
  components:
193
202
  securitySchemes:
194
203
  ApiKeyAuthHeader:
@@ -440,6 +449,11 @@ components:
440
449
  domain_registrar:
441
450
  $ref: '#/components/schemas/DomainRegistrar'
442
451
  description: Registrar of record as recorded directly by the registry.
452
+ headers:
453
+ X-AF-Credits-Cost:
454
+ description: Specifies the number of credits consumed by the current request.
455
+ schema:
456
+ type: integer
443
457
  security:
444
458
  - ApiKeyAuthHeader: []
445
459
  - ApiKeyAuthQuery: []
@@ -149,6 +149,13 @@ paths:
149
149
  name: On behalf of ipgeolocationdatabase.com OWNER
150
150
  email: 720ed14de67db24c4eb07295ecae369f9f1bfe8a4dd5cd0c51f0e4754ee24895@ipgeolocationdatabase.com.whoisproxy.org
151
151
  company_name: c/o whoisproxy.com
152
+ headers:
153
+ X-AF-Credits-Cost:
154
+ $ref: '#/components/headers/X-AF-Credits-Cost'
155
+ X-Concurrent-Threads:
156
+ $ref: '#/components/headers/X-Concurrent-Threads'
157
+ X-Concurrent-Threads-Active:
158
+ $ref: '#/components/headers/X-Concurrent-Threads-Active'
152
159
  '400':
153
160
  description: Bad Request -- Missing or invalid search parameters
154
161
  content:
@@ -164,6 +171,13 @@ paths:
164
171
  error: Invalid Param Exception
165
172
  message: Please pass param value.
166
173
  path: /v1.0/domain/whois/reverse
174
+ headers:
175
+ X-AF-Credits-Cost:
176
+ $ref: '#/components/headers/X-AF-Credits-Cost'
177
+ X-Concurrent-Threads:
178
+ $ref: '#/components/headers/X-Concurrent-Threads'
179
+ X-Concurrent-Threads-Active:
180
+ $ref: '#/components/headers/X-Concurrent-Threads-Active'
167
181
  '404':
168
182
  description: Not Found -- No domains match the search criteria
169
183
  content:
@@ -179,6 +193,13 @@ paths:
179
193
  error: Record not found
180
194
  message: Record not found.
181
195
  path: /v1.0/domain/whois/reverse
196
+ headers:
197
+ X-AF-Credits-Cost:
198
+ $ref: '#/components/headers/X-AF-Credits-Cost'
199
+ X-Concurrent-Threads:
200
+ $ref: '#/components/headers/X-Concurrent-Threads'
201
+ X-Concurrent-Threads-Active:
202
+ $ref: '#/components/headers/X-Concurrent-Threads-Active'
182
203
  components:
183
204
  securitySchemes:
184
205
  ApiKeyAuthHeader:
@@ -561,6 +582,19 @@ components:
561
582
  - string
562
583
  - 'null'
563
584
  description: Raw WHOIS output from the registry server.
585
+ headers:
586
+ X-AF-Credits-Cost:
587
+ description: Specifies the number of credits consumed by the current request.
588
+ schema:
589
+ type: integer
590
+ X-Concurrent-Threads:
591
+ description: Specifies the maximum number of concurrent requests allowed.
592
+ schema:
593
+ type: integer
594
+ X-Concurrent-Threads-Active:
595
+ description: Indicates the number of active concurrent requests being processed.
596
+ schema:
597
+ type: integer
564
598
  security:
565
599
  - ApiKeyAuthHeader: []
566
600
  - ApiKeyAuthQuery: []
@@ -251,6 +251,9 @@ paths:
251
251
  query_time: '2026-07-23 08:03:00'
252
252
  whois_server: https://tld-rdap.verisign.com/xn--tckwe/v1/
253
253
  domain_registered: 'no'
254
+ headers:
255
+ X-AF-Credits-Cost:
256
+ $ref: '#/components/headers/X-AF-Credits-Cost'
254
257
  '206':
255
258
  description: Partial Content — The response contains partial data because an error occurred while processing the request
256
259
  content:
@@ -266,6 +269,9 @@ paths:
266
269
  error: Partial Content
267
270
  message: The response contains partial data due to an error while processing the request.
268
271
  path: /v2.0/domain/whois/live
272
+ headers:
273
+ X-AF-Credits-Cost:
274
+ $ref: '#/components/headers/X-AF-Credits-Cost'
269
275
  '400':
270
276
  description: Bad Request — Missing or invalid domainName parameter
271
277
  content:
@@ -289,6 +295,9 @@ paths:
289
295
  error: Invalid Param Exception
290
296
  message: 'Please pass domain param correct value [For Technical Support: support@whoisfreaks.com]'
291
297
  path: /v2.0/whois/live
298
+ headers:
299
+ X-AF-Credits-Cost:
300
+ $ref: '#/components/headers/X-AF-Credits-Cost'
292
301
  '403':
293
302
  description: Forbidden — Domain extension not supported for live WHOIS
294
303
  content:
@@ -304,6 +313,9 @@ paths:
304
313
  error: Not Supported Domain extension
305
314
  message: We are not providing the whois of this domain extension (local)
306
315
  path: /v2.0/whois/live
316
+ headers:
317
+ X-AF-Credits-Cost:
318
+ $ref: '#/components/headers/X-AF-Credits-Cost'
307
319
  components:
308
320
  securitySchemes:
309
321
  ApiKeyAuthHeader:
@@ -532,6 +544,11 @@ components:
532
544
  domain_registrar:
533
545
  $ref: '#/components/schemas/DomainRegistrar'
534
546
  description: Registrar of record as recorded directly by the registry.
547
+ headers:
548
+ X-AF-Credits-Cost:
549
+ description: Specifies the number of credits consumed by the current request.
550
+ schema:
551
+ type: integer
535
552
  security:
536
553
  - ApiKeyAuthHeader: []
537
554
  - ApiKeyAuthQuery: []
@@ -169,6 +169,9 @@ paths:
169
169
  #
170
170
  # Copyright 1997-2026, American Registry for Internet Numbers, Ltd.
171
171
  #
172
+ headers:
173
+ X-AF-Credits-Cost:
174
+ $ref: '#/components/headers/X-AF-Credits-Cost'
172
175
  '206':
173
176
  description: Partial Content -- The WHOIS server returned an incomplete response. Some fields may be missing or truncated.
174
177
  content:
@@ -184,6 +187,9 @@ paths:
184
187
  error: Partial Response
185
188
  message: Partial response due to an error occurred while processing the request.
186
189
  path: /v1.0/ip/whois/live
190
+ headers:
191
+ X-AF-Credits-Cost:
192
+ $ref: '#/components/headers/X-AF-Credits-Cost'
187
193
  '400':
188
194
  description: Bad Request -- Missing or invalid ip parameter
189
195
  content:
@@ -207,6 +213,9 @@ paths:
207
213
  error: Input parameter is not valid
208
214
  message: Request-param 'ip' (not-an-ip) is not an IP address
209
215
  path: /v1.0/ip-whois
216
+ headers:
217
+ X-AF-Credits-Cost:
218
+ $ref: '#/components/headers/X-AF-Credits-Cost'
210
219
  components:
211
220
  securitySchemes:
212
221
  ApiKeyAuthHeader:
@@ -1118,6 +1127,11 @@ components:
1118
1127
  - string
1119
1128
  - 'null'
1120
1129
  description: WHOIS data source for this route object.
1130
+ headers:
1131
+ X-AF-Credits-Cost:
1132
+ description: Specifies the number of credits consumed by the current request.
1133
+ schema:
1134
+ type: integer
1121
1135
  security:
1122
1136
  - ApiKeyAuthHeader: []
1123
1137
  - ApiKeyAuthQuery: []
@@ -83,6 +83,9 @@ paths:
83
83
  locality: Manhattan
84
84
  latitude: 40.748436
85
85
  longitude: -73.99402
86
+ headers:
87
+ X-AF-Credits-Cost:
88
+ $ref: '#/components/headers/X-AF-Credits-Cost'
86
89
  '400':
87
90
  description: Bad Request — Malformed body, invalid country code, or over the 100-code limit
88
91
  content:
@@ -114,6 +117,9 @@ paths:
114
117
  status: 400
115
118
  error: Maximum Postal/Zip Code Limit Exceeded
116
119
  message: A maximum of 100 postal/zip codes can be processed per request.
120
+ headers:
121
+ X-AF-Credits-Cost:
122
+ $ref: '#/components/headers/X-AF-Credits-Cost'
117
123
  '404':
118
124
  description: Not Found — None of the submitted codes matched anything
119
125
  content:
@@ -129,6 +135,9 @@ paths:
129
135
  status: 404
130
136
  error: Postal/Zip Codes Not Found
131
137
  message: None of the provided postal/zip codes were found in our database.
138
+ headers:
139
+ X-AF-Credits-Cost:
140
+ $ref: '#/components/headers/X-AF-Credits-Cost'
132
141
  components:
133
142
  securitySchemes:
134
143
  ApiKeyAuthHeader:
@@ -227,6 +236,11 @@ components:
227
236
  type: string
228
237
  format: date-time
229
238
  description: Timestamp when the error occurred (ISO 8601).
239
+ headers:
240
+ X-AF-Credits-Cost:
241
+ description: Specifies the number of credits consumed by the current request.
242
+ schema:
243
+ type: integer
230
244
  security:
231
245
  - ApiKeyAuthHeader: []
232
246
  - ApiKeyAuthQuery: []
@@ -89,6 +89,9 @@ paths:
89
89
  locality: Kalia
90
90
  latitude: -1.310763
91
91
  longitude: 37.969997
92
+ headers:
93
+ X-AF-Credits-Cost:
94
+ $ref: '#/components/headers/X-AF-Credits-Cost'
92
95
  '400':
93
96
  description: Bad Request — Missing code or invalid country code
94
97
  content:
@@ -112,6 +115,9 @@ paths:
112
115
  status: 400
113
116
  error: Invalid Country Code Provided
114
117
  message: Only ISO 3166-1 alpha-2 codes country codes are supported.
118
+ headers:
119
+ X-AF-Credits-Cost:
120
+ $ref: '#/components/headers/X-AF-Credits-Cost'
115
121
  '404':
116
122
  description: Not Found — No location matches the given code
117
123
  content:
@@ -127,6 +133,9 @@ paths:
127
133
  status: 404
128
134
  error: Postal/Zip Code Not Found
129
135
  message: Provided postal/zip code was not found in our database.
136
+ headers:
137
+ X-AF-Credits-Cost:
138
+ $ref: '#/components/headers/X-AF-Credits-Cost'
130
139
  components:
131
140
  securitySchemes:
132
141
  ApiKeyAuthHeader:
@@ -211,6 +220,11 @@ components:
211
220
  type: string
212
221
  format: date-time
213
222
  description: Timestamp when the error occurred (ISO 8601).
223
+ headers:
224
+ X-AF-Credits-Cost:
225
+ description: Specifies the number of credits consumed by the current request.
226
+ schema:
227
+ type: integer
214
228
  security:
215
229
  - ApiKeyAuthHeader: []
216
230
  - ApiKeyAuthQuery: []
@@ -71,6 +71,9 @@ paths:
71
71
  value:
72
72
  result_count: 0
73
73
  results: []
74
+ headers:
75
+ X-AF-Credits-Cost:
76
+ $ref: '#/components/headers/X-AF-Credits-Cost'
74
77
  '400':
75
78
  description: Bad Request — Missing/invalid body, country, or unit, or over the 100-code limit
76
79
  content:
@@ -118,6 +121,9 @@ paths:
118
121
  status: 400
119
122
  error: Maximum Postal/Zip Code Limit Exceeded
120
123
  message: A maximum of 100 postal/zip codes can be processed per request.
124
+ headers:
125
+ X-AF-Credits-Cost:
126
+ $ref: '#/components/headers/X-AF-Credits-Cost'
121
127
  '404':
122
128
  description: Not Found — None of the submitted codes matched anything
123
129
  content:
@@ -133,6 +139,9 @@ paths:
133
139
  status: 404
134
140
  error: Postal/Zip Codes Not Found
135
141
  message: None of the provided postal/zip codes were found in our database.
142
+ headers:
143
+ X-AF-Credits-Cost:
144
+ $ref: '#/components/headers/X-AF-Credits-Cost'
136
145
  components:
137
146
  securitySchemes:
138
147
  ApiKeyAuthHeader:
@@ -234,6 +243,11 @@ components:
234
243
  type: string
235
244
  format: date-time
236
245
  description: Timestamp when the error occurred (ISO 8601).
246
+ headers:
247
+ X-AF-Credits-Cost:
248
+ description: Specifies the number of credits consumed by the current request.
249
+ schema:
250
+ type: integer
237
251
  security:
238
252
  - ApiKeyAuthHeader: []
239
253
  - ApiKeyAuthQuery: []
@@ -62,6 +62,9 @@ paths:
62
62
  distance: 3948.696
63
63
  - code: '94103'
64
64
  distance: 544.134
65
+ headers:
66
+ X-AF-Credits-Cost:
67
+ $ref: '#/components/headers/X-AF-Credits-Cost'
65
68
  '400':
66
69
  description: Bad Request — Missing/invalid body, country, or unit, or over the 100-code limit
67
70
  content:
@@ -109,6 +112,9 @@ paths:
109
112
  status: 400
110
113
  error: Maximum Postal/Zip Code Limit Exceeded
111
114
  message: A maximum of 100 postal/zip codes can be processed per request.
115
+ headers:
116
+ X-AF-Credits-Cost:
117
+ $ref: '#/components/headers/X-AF-Credits-Cost'
112
118
  '404':
113
119
  description: Not Found — None of the compare codes matched anything
114
120
  content:
@@ -124,6 +130,9 @@ paths:
124
130
  status: 404
125
131
  error: Postal/Zip Codes Not Found
126
132
  message: None of the provided postal/zip codes were found in our database.
133
+ headers:
134
+ X-AF-Credits-Cost:
135
+ $ref: '#/components/headers/X-AF-Credits-Cost'
127
136
  components:
128
137
  securitySchemes:
129
138
  ApiKeyAuthHeader:
@@ -228,6 +237,11 @@ components:
228
237
  type: string
229
238
  format: date-time
230
239
  description: Timestamp when the error occurred (ISO 8601).
240
+ headers:
241
+ X-AF-Credits-Cost:
242
+ description: Specifies the number of credits consumed by the current request.
243
+ schema:
244
+ type: integer
231
245
  security:
232
246
  - ApiKeyAuthHeader: []
233
247
  - ApiKeyAuthQuery: []