@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
@@ -86,6 +86,9 @@ paths:
86
86
  newspapers: 0.07
87
87
  periodicals: 0.07
88
88
  broadcasting: 0
89
+ headers:
90
+ X-AF-Credits-Cost:
91
+ $ref: '#/components/headers/X-AF-Credits-Cost'
89
92
  '400':
90
93
  description: Bad Request — Missing or malformed request body
91
94
  content:
@@ -101,6 +104,9 @@ paths:
101
104
  path: /v1.0/vat/rates/country
102
105
  status: 400
103
106
  timestamp: '2026-07-27T11:46:29.315Z'
107
+ headers:
108
+ X-AF-Credits-Cost:
109
+ $ref: '#/components/headers/X-AF-Credits-Cost'
104
110
  '413':
105
111
  description: Payload Too Large — Request body exceeds the size limit
106
112
  content:
@@ -116,6 +122,9 @@ paths:
116
122
  path: /v1.0/vat/rates/country
117
123
  status: 413
118
124
  timestamp: '2026-07-27T11:46:29.925Z'
125
+ headers:
126
+ X-AF-Credits-Cost:
127
+ $ref: '#/components/headers/X-AF-Credits-Cost'
119
128
  components:
120
129
  securitySchemes:
121
130
  ApiKeyAuthHeader:
@@ -245,6 +254,11 @@ components:
245
254
  type: string
246
255
  format: date-time
247
256
  description: Timestamp when the error occurred (ISO 8601).
257
+ headers:
258
+ X-AF-Credits-Cost:
259
+ description: Specifies the number of credits consumed by the current request.
260
+ schema:
261
+ type: integer
248
262
  security:
249
263
  - ApiKeyAuthHeader: []
250
264
  - ApiKeyAuthQuery: []
@@ -65,6 +65,9 @@ paths:
65
65
  countryCode: DE
66
66
  - name: United States
67
67
  countryCode: US
68
+ headers:
69
+ X-AF-Credits-Cost:
70
+ $ref: '#/components/headers/X-AF-Credits-Cost'
68
71
  components:
69
72
  securitySchemes:
70
73
  ApiKeyAuthHeader:
@@ -147,6 +150,11 @@ components:
147
150
  countryCode:
148
151
  type: string
149
152
  description: ISO 3166-1 alpha-2 country code.
153
+ headers:
154
+ X-AF-Credits-Cost:
155
+ description: Specifies the number of credits consumed by the current request.
156
+ schema:
157
+ type: integer
150
158
  security:
151
159
  - ApiKeyAuthHeader: []
152
160
  - ApiKeyAuthQuery: []
@@ -111,6 +111,9 @@ paths:
111
111
  address: null
112
112
  account: null
113
113
  sepa: null
114
+ headers:
115
+ X-AF-Credits-Cost:
116
+ $ref: '#/components/headers/X-AF-Credits-Cost'
114
117
  '400':
115
118
  description: Bad Request
116
119
  content:
@@ -126,6 +129,9 @@ paths:
126
129
  path: /v1.0/iban/validation
127
130
  status: 400
128
131
  timestamp: '2026-07-27T11:49:29.286Z'
132
+ headers:
133
+ X-AF-Credits-Cost:
134
+ $ref: '#/components/headers/X-AF-Credits-Cost'
129
135
  operationId: validateIban
130
136
  components:
131
137
  securitySchemes:
@@ -265,6 +271,11 @@ components:
265
271
  format: date-time
266
272
  description: Timestamp when the error occurred (ISO 8601).
267
273
  description: Standard error envelope returned by the API on failed requests.
274
+ headers:
275
+ X-AF-Credits-Cost:
276
+ description: Specifies the number of credits consumed by the current request.
277
+ schema:
278
+ type: integer
268
279
  security:
269
280
  - ApiKeyAuthHeader: []
270
281
  - ApiKeyAuthQuery: []
@@ -87,6 +87,9 @@ paths:
87
87
  noMatch:
88
88
  summary: Unmatched country/bank/city — empty array, not an error
89
89
  value: []
90
+ headers:
91
+ X-AF-Credits-Cost:
92
+ $ref: '#/components/headers/X-AF-Credits-Cost'
90
93
  '400':
91
94
  description: Bad Request — Parameters supplied out of order
92
95
  content:
@@ -98,6 +101,9 @@ paths:
98
101
  summary: bank supplied without country
99
102
  value:
100
103
  message: 'Invalid query parameters. Provide parameters in sequence: country → bank → city'
104
+ headers:
105
+ X-AF-Credits-Cost:
106
+ $ref: '#/components/headers/X-AF-Credits-Cost'
101
107
  components:
102
108
  securitySchemes:
103
109
  ApiKeyAuthHeader:
@@ -141,6 +147,11 @@ components:
141
147
  type: string
142
148
  format: date-time
143
149
  description: Timestamp when the error occurred (ISO 8601).
150
+ headers:
151
+ X-AF-Credits-Cost:
152
+ description: Specifies the number of credits consumed by the current request.
153
+ schema:
154
+ type: integer
144
155
  security:
145
156
  - ApiKeyAuthHeader: []
146
157
  - ApiKeyAuthQuery: []
@@ -52,6 +52,9 @@ paths:
52
52
  bankName: NATIONAL WESTMINSTER BANK PLC
53
53
  city: LONDON
54
54
  country: United Kingdom
55
+ headers:
56
+ X-AF-Credits-Cost:
57
+ $ref: '#/components/headers/X-AF-Credits-Cost'
55
58
  '400':
56
59
  description: Bad Request
57
60
  content:
@@ -71,6 +74,9 @@ paths:
71
74
  summary: swiftCode is not 8 or 11 characters
72
75
  value:
73
76
  message: 'Bad request: SWIFT code input must be either 8 characters or 11 characters'
77
+ headers:
78
+ X-AF-Credits-Cost:
79
+ $ref: '#/components/headers/X-AF-Credits-Cost'
74
80
  '404':
75
81
  description: Not Found
76
82
  content:
@@ -82,6 +88,9 @@ paths:
82
88
  summary: SWIFT code not found
83
89
  value:
84
90
  message: No bank found with the provided SWIFT code
91
+ headers:
92
+ X-AF-Credits-Cost:
93
+ $ref: '#/components/headers/X-AF-Credits-Cost'
85
94
  operationId: lookupSwiftCode
86
95
  components:
87
96
  securitySchemes:
@@ -151,6 +160,11 @@ components:
151
160
  format: date-time
152
161
  description: Timestamp when the error occurred (ISO 8601).
153
162
  description: Standard error envelope returned by the API on failed requests.
163
+ headers:
164
+ X-AF-Credits-Cost:
165
+ description: Specifies the number of credits consumed by the current request.
166
+ schema:
167
+ type: integer
154
168
  security:
155
169
  - ApiKeyAuthHeader: []
156
170
  - ApiKeyAuthQuery: []
@@ -75,6 +75,9 @@ paths:
75
75
  company:
76
76
  company_name: EVENTURED LTD
77
77
  company_address: SUITE 10, BEAUFORT COURT, ADMIRALS WAY, LONDON, E14 9XL, GB
78
+ headers:
79
+ X-AF-Credits-Cost:
80
+ $ref: '#/components/headers/X-AF-Credits-Cost'
78
81
  '400':
79
82
  description: Bad Request
80
83
  content:
@@ -94,6 +97,9 @@ paths:
94
97
  summary: Unsupported VAT country code
95
98
  value:
96
99
  message: Unsupported VAT country code. Supported prefixes are UK/GB and EU VAT country codes.
100
+ headers:
101
+ X-AF-Credits-Cost:
102
+ $ref: '#/components/headers/X-AF-Credits-Cost'
97
103
  '404':
98
104
  description: Not Found
99
105
  content:
@@ -105,6 +111,9 @@ paths:
105
111
  summary: VAT number not found
106
112
  value:
107
113
  message: targetVrn does not match a registered company
114
+ headers:
115
+ X-AF-Credits-Cost:
116
+ $ref: '#/components/headers/X-AF-Credits-Cost'
108
117
  operationId: validateVatNumber
109
118
  components:
110
119
  securitySchemes:
@@ -200,6 +209,11 @@ components:
200
209
  format: date-time
201
210
  description: Timestamp when the error occurred (ISO 8601).
202
211
  description: Standard error envelope returned by the API on failed requests.
212
+ headers:
213
+ X-AF-Credits-Cost:
214
+ description: Specifies the number of credits consumed by the current request.
215
+ schema:
216
+ type: integer
203
217
  security:
204
218
  - ApiKeyAuthHeader: []
205
219
  - ApiKeyAuthQuery: []
@@ -66,6 +66,9 @@ paths:
66
66
  type: vat
67
67
  currency: ''
68
68
  standard_rate: 0.0825
69
+ headers:
70
+ X-AF-Credits-Cost:
71
+ $ref: '#/components/headers/X-AF-Credits-Cost'
69
72
  '400':
70
73
  description: Bad Request
71
74
  content:
@@ -77,6 +80,9 @@ paths:
77
80
  summary: Invalid IP address format
78
81
  value:
79
82
  message: Invalid IP address format. Please provide a valid IPv4 or IPv6 address.
83
+ headers:
84
+ X-AF-Credits-Cost:
85
+ $ref: '#/components/headers/X-AF-Credits-Cost'
80
86
  '404':
81
87
  description: Not Found
82
88
  content:
@@ -88,6 +94,9 @@ paths:
88
94
  summary: VAT data not found for IP
89
95
  value:
90
96
  message: No VAT data found. Please provide a valid ipAddress.
97
+ headers:
98
+ X-AF-Credits-Cost:
99
+ $ref: '#/components/headers/X-AF-Credits-Cost'
91
100
  components:
92
101
  securitySchemes:
93
102
  ApiKeyAuthHeader:
@@ -195,6 +204,11 @@ components:
195
204
  format: date-time
196
205
  description: Timestamp when the error occurred (ISO 8601).
197
206
  description: Standard error envelope returned by the API on failed requests.
207
+ headers:
208
+ X-AF-Credits-Cost:
209
+ description: Specifies the number of credits consumed by the current request.
210
+ schema:
211
+ type: integer
198
212
  security:
199
213
  - ApiKeyAuthHeader: []
200
214
  - ApiKeyAuthQuery: []
@@ -72,6 +72,9 @@ paths:
72
72
  type: vat
73
73
  currency: ''
74
74
  standard_rate: 0.04
75
+ headers:
76
+ X-AF-Credits-Cost:
77
+ $ref: '#/components/headers/X-AF-Credits-Cost'
75
78
  '400':
76
79
  description: Bad Request — Missing required country parameter
77
80
  content:
@@ -87,6 +90,9 @@ paths:
87
90
  path: /v1.0/vat/rates/country
88
91
  status: 400
89
92
  timestamp: '2026-07-27T11:45:34.183Z'
93
+ headers:
94
+ X-AF-Credits-Cost:
95
+ $ref: '#/components/headers/X-AF-Credits-Cost'
90
96
  '404':
91
97
  description: Not Found — No VAT data for the given country/state
92
98
  content:
@@ -98,6 +104,9 @@ paths:
98
104
  summary: No VAT data for the given country
99
105
  value:
100
106
  message: No VAT data found.
107
+ headers:
108
+ X-AF-Credits-Cost:
109
+ $ref: '#/components/headers/X-AF-Credits-Cost'
101
110
  components:
102
111
  securitySchemes:
103
112
  ApiKeyAuthHeader:
@@ -207,6 +216,11 @@ components:
207
216
  format: date-time
208
217
  description: Timestamp when the error occurred (ISO 8601).
209
218
  description: Standard error envelope returned by the API on failed requests.
219
+ headers:
220
+ X-AF-Credits-Cost:
221
+ description: Specifies the number of credits consumed by the current request.
222
+ schema:
223
+ type: integer
210
224
  security:
211
225
  - ApiKeyAuthHeader: []
212
226
  - ApiKeyAuthQuery: []
@@ -110,6 +110,9 @@ paths:
110
110
  - '51.5573402'
111
111
  - '-0.2817245'
112
112
  - '-0.2774831'
113
+ headers:
114
+ X-AF-Credits-Cost:
115
+ $ref: '#/components/headers/X-AF-Credits-Cost'
113
116
  '400':
114
117
  description: Bad Request — Invalid or missing parameters
115
118
  content:
@@ -149,6 +152,9 @@ paths:
149
152
  path: /v1.0/geocoder/search
150
153
  status: 400
151
154
  timestamp: '2026-07-22T14:30:11.104Z'
155
+ headers:
156
+ X-AF-Credits-Cost:
157
+ $ref: '#/components/headers/X-AF-Credits-Cost'
152
158
  '404':
153
159
  description: Not Found — No results matched the query
154
160
  content:
@@ -164,6 +170,9 @@ paths:
164
170
  path: /v1.0/geocoder/search
165
171
  status: 404
166
172
  timestamp: '2026-07-22T14:29:58.349Z'
173
+ headers:
174
+ X-AF-Credits-Cost:
175
+ $ref: '#/components/headers/X-AF-Credits-Cost'
167
176
  components:
168
177
  securitySchemes:
169
178
  ApiKeyAuthHeader:
@@ -287,6 +296,11 @@ components:
287
296
  type:
288
297
  type: string
289
298
  description: Specific kind within the category, e.g. fast_food, city, park, residential, house_number.
299
+ headers:
300
+ X-AF-Credits-Cost:
301
+ description: Specifies the number of credits consumed by the current request.
302
+ schema:
303
+ type: integer
290
304
  security:
291
305
  - ApiKeyAuthHeader: []
292
306
  - ApiKeyAuthQuery: []
@@ -76,6 +76,9 @@ paths:
76
76
  - '40.7490169'
77
77
  - '-73.9854490'
78
78
  - '-73.9853490'
79
+ headers:
80
+ X-AF-Credits-Cost:
81
+ $ref: '#/components/headers/X-AF-Credits-Cost'
79
82
  '400':
80
83
  description: Bad Request — Invalid or missing parameters
81
84
  content:
@@ -115,6 +118,9 @@ paths:
115
118
  path: /v1.0/geocoder/reverse
116
119
  status: 400
117
120
  timestamp: '2026-07-22T14:29:46.809Z'
121
+ headers:
122
+ X-AF-Credits-Cost:
123
+ $ref: '#/components/headers/X-AF-Credits-Cost'
118
124
  components:
119
125
  securitySchemes:
120
126
  ApiKeyAuthHeader:
@@ -232,6 +238,11 @@ components:
232
238
  type:
233
239
  type: string
234
240
  description: Specific kind within the category, e.g. fast_food, city, park, residential, house_number.
241
+ headers:
242
+ X-AF-Credits-Cost:
243
+ description: Specifies the number of credits consumed by the current request.
244
+ schema:
245
+ type: integer
235
246
  security:
236
247
  - ApiKeyAuthHeader: []
237
248
  - ApiKeyAuthQuery: []
@@ -66,6 +66,9 @@ paths:
66
66
  admin_level: military postal region
67
67
  country_iso3166_2: US
68
68
  country_name: United States
69
+ headers:
70
+ X-AF-Credits-Cost:
71
+ $ref: '#/components/headers/X-AF-Credits-Cost'
69
72
  '400':
70
73
  description: Bad Request — Missing country/admin_unit parameter, invalid country code, or invalid admin code
71
74
  content:
@@ -97,6 +100,9 @@ paths:
97
100
  status: 400
98
101
  error: Invalid Admin Code provided
99
102
  message: Please provide a valid admin code.
103
+ headers:
104
+ X-AF-Credits-Cost:
105
+ $ref: '#/components/headers/X-AF-Credits-Cost'
100
106
  '404':
101
107
  description: Not Found — Country is a recognized ISO 3166-1 alpha-2 code but has no published admin units (e.g. Vatican City)
102
108
  content:
@@ -112,6 +118,9 @@ paths:
112
118
  status: 404
113
119
  error: No Admin Unit present in country
114
120
  message: This Country does not have any admin units associated with it.
121
+ headers:
122
+ X-AF-Credits-Cost:
123
+ $ref: '#/components/headers/X-AF-Credits-Cost'
115
124
  components:
116
125
  securitySchemes:
117
126
  ApiKeyAuthHeader:
@@ -175,6 +184,11 @@ components:
175
184
  type: string
176
185
  format: date-time
177
186
  description: Timestamp when the error occurred (ISO 8601).
187
+ headers:
188
+ X-AF-Credits-Cost:
189
+ description: Specifies the number of credits consumed by the current request.
190
+ schema:
191
+ type: integer
178
192
  security:
179
193
  - ApiKeyAuthHeader: []
180
194
  - ApiKeyAuthQuery: []
@@ -51,6 +51,9 @@ paths:
51
51
  - district
52
52
  - state
53
53
  - military postal region
54
+ headers:
55
+ X-AF-Credits-Cost:
56
+ $ref: '#/components/headers/X-AF-Credits-Cost'
54
57
  '400':
55
58
  description: Bad Request — Missing country parameter, or country is not a valid/known ISO 3166-1 alpha-2 code
56
59
  content:
@@ -74,6 +77,9 @@ paths:
74
77
  status: 400
75
78
  error: Invalid Country Code provided
76
79
  message: Only ISO 3166-1 alpha-2 codes country codes are supported.
80
+ headers:
81
+ X-AF-Credits-Cost:
82
+ $ref: '#/components/headers/X-AF-Credits-Cost'
77
83
  '404':
78
84
  description: Not Found — Country is a recognized ISO 3166-1 alpha-2 code but has no published admin levels (e.g. Vatican City)
79
85
  content:
@@ -89,6 +95,9 @@ paths:
89
95
  status: 404
90
96
  error: No Admin Unit present in country
91
97
  message: This Country does not have any admin units associated with it.
98
+ headers:
99
+ X-AF-Credits-Cost:
100
+ $ref: '#/components/headers/X-AF-Credits-Cost'
92
101
  components:
93
102
  securitySchemes:
94
103
  ApiKeyAuthHeader:
@@ -135,6 +144,11 @@ components:
135
144
  type: string
136
145
  format: date-time
137
146
  description: Timestamp when the error occurred (ISO 8601).
147
+ headers:
148
+ X-AF-Credits-Cost:
149
+ description: Specifies the number of credits consumed by the current request.
150
+ schema:
151
+ type: integer
138
152
  security:
139
153
  - ApiKeyAuthHeader: []
140
154
  - ApiKeyAuthQuery: []
@@ -62,6 +62,9 @@ paths:
62
62
  - name: New York
63
63
  admin_code: NY
64
64
  admin_level: state
65
+ headers:
66
+ X-AF-Credits-Cost:
67
+ $ref: '#/components/headers/X-AF-Credits-Cost'
65
68
  '400':
66
69
  description: Bad Request — Missing country parameter, or country is not a valid/known ISO 3166-1 alpha-2 code
67
70
  content:
@@ -85,6 +88,9 @@ paths:
85
88
  status: 400
86
89
  error: Invalid Country Code provided
87
90
  message: Only ISO 3166-1 alpha-2 codes country codes are supported.
91
+ headers:
92
+ X-AF-Credits-Cost:
93
+ $ref: '#/components/headers/X-AF-Credits-Cost'
88
94
  '404':
89
95
  description: Not Found — Country is a recognized ISO 3166-1 alpha-2 code but has no published admin units (e.g. Vatican City)
90
96
  content:
@@ -100,6 +106,9 @@ paths:
100
106
  status: 404
101
107
  error: No Admin Unit present in country
102
108
  message: This Country does not have any admin units associated with it.
109
+ headers:
110
+ X-AF-Credits-Cost:
111
+ $ref: '#/components/headers/X-AF-Credits-Cost'
103
112
  components:
104
113
  securitySchemes:
105
114
  ApiKeyAuthHeader:
@@ -163,6 +172,11 @@ components:
163
172
  type: string
164
173
  format: date-time
165
174
  description: Timestamp when the error occurred (ISO 8601).
175
+ headers:
176
+ X-AF-Credits-Cost:
177
+ description: Specifies the number of credits consumed by the current request.
178
+ schema:
179
+ type: integer
166
180
  security:
167
181
  - ApiKeyAuthHeader: []
168
182
  - ApiKeyAuthQuery: []
@@ -69,6 +69,9 @@ paths:
69
69
  admin_code: ABE
70
70
  admin_level: council area
71
71
  iso_alpha_2: GB
72
+ headers:
73
+ X-AF-Credits-Cost:
74
+ $ref: '#/components/headers/X-AF-Credits-Cost'
72
75
  '400':
73
76
  description: Bad Request — Missing country parameter, invalid country code, or admin_unit code not found for the country
74
77
  content:
@@ -100,6 +103,9 @@ paths:
100
103
  status: 400
101
104
  error: Invalid Admin Code provided
102
105
  message: Please provide a valid admin code.
106
+ headers:
107
+ X-AF-Credits-Cost:
108
+ $ref: '#/components/headers/X-AF-Credits-Cost'
103
109
  '404':
104
110
  description: Not Found — Country is a recognized ISO 3166-1 alpha-2 code but has no cities in the database (e.g. Vatican City)
105
111
  content:
@@ -115,6 +121,9 @@ paths:
115
121
  status: 404
116
122
  error: No Cities present in country
117
123
  message: This country does not have any cities associated with it.
124
+ headers:
125
+ X-AF-Credits-Cost:
126
+ $ref: '#/components/headers/X-AF-Credits-Cost'
118
127
  components:
119
128
  securitySchemes:
120
129
  ApiKeyAuthHeader:
@@ -204,6 +213,11 @@ components:
204
213
  type: string
205
214
  format: date-time
206
215
  description: Timestamp when the error occurred (ISO 8601).
216
+ headers:
217
+ X-AF-Credits-Cost:
218
+ description: Specifies the number of credits consumed by the current request.
219
+ schema:
220
+ type: integer
207
221
  security:
208
222
  - ApiKeyAuthHeader: []
209
223
  - ApiKeyAuthQuery: []
@@ -79,6 +79,9 @@ paths:
79
79
  currency_code: NOK
80
80
  currency_name: Norwegian krone
81
81
  currency_symbol: ko
82
+ headers:
83
+ X-AF-Credits-Cost:
84
+ $ref: '#/components/headers/X-AF-Credits-Cost'
82
85
  '400':
83
86
  description: Bad Request — Missing country parameter, or country is not a valid/known ISO 3166-1 alpha-2 code
84
87
  content:
@@ -102,6 +105,9 @@ paths:
102
105
  status: 400
103
106
  error: Invalid Country Code provided
104
107
  message: Only ISO 3166-1 alpha-2 codes country codes are supported.
108
+ headers:
109
+ X-AF-Credits-Cost:
110
+ $ref: '#/components/headers/X-AF-Credits-Cost'
105
111
  components:
106
112
  securitySchemes:
107
113
  ApiKeyAuthHeader:
@@ -202,6 +208,11 @@ components:
202
208
  type: string
203
209
  format: date-time
204
210
  description: Timestamp when the error occurred (ISO 8601).
211
+ headers:
212
+ X-AF-Credits-Cost:
213
+ description: Specifies the number of credits consumed by the current request.
214
+ schema:
215
+ type: integer
205
216
  security:
206
217
  - ApiKeyAuthHeader: []
207
218
  - ApiKeyAuthQuery: []
@@ -92,6 +92,9 @@ paths:
92
92
  capital: ''
93
93
  region: Polar
94
94
  subregion: ''
95
+ headers:
96
+ X-AF-Credits-Cost:
97
+ $ref: '#/components/headers/X-AF-Credits-Cost'
95
98
  '400':
96
99
  description: Bad Request — Invalid region or subregion name
97
100
  content:
@@ -115,6 +118,9 @@ paths:
115
118
  status: 400
116
119
  error: Invalid Subregion Name provided
117
120
  message: Please provide a valid subregion name.
121
+ headers:
122
+ X-AF-Credits-Cost:
123
+ $ref: '#/components/headers/X-AF-Credits-Cost'
118
124
  components:
119
125
  securitySchemes:
120
126
  ApiKeyAuthHeader:
@@ -194,6 +200,11 @@ components:
194
200
  type: string
195
201
  format: date-time
196
202
  description: Timestamp when the error occurred (ISO 8601).
203
+ headers:
204
+ X-AF-Credits-Cost:
205
+ description: Specifies the number of credits consumed by the current request.
206
+ schema:
207
+ type: integer
197
208
  security:
198
209
  - ApiKeyAuthHeader: []
199
210
  - ApiKeyAuthQuery: []
@@ -67,6 +67,9 @@ paths:
67
67
  - NATO
68
68
  - Association_of_Southeast_Asian_Nations
69
69
  - Commonwealth_of_Nations
70
+ headers:
71
+ X-AF-Credits-Cost:
72
+ $ref: '#/components/headers/X-AF-Credits-Cost'
70
73
  components:
71
74
  securitySchemes:
72
75
  ApiKeyAuthHeader:
@@ -114,6 +117,11 @@ components:
114
117
  iso3:
115
118
  type: string
116
119
  description: ISO 3166-1 alpha-3 code.
120
+ headers:
121
+ X-AF-Credits-Cost:
122
+ description: Specifies the number of credits consumed by the current request.
123
+ schema:
124
+ type: integer
117
125
  security:
118
126
  - ApiKeyAuthHeader: []
119
127
  - ApiKeyAuthQuery: []
@@ -79,6 +79,9 @@ paths:
79
79
  image/svg+xml:
80
80
  schema:
81
81
  $ref: '#/components/schemas/ApiResponseSchemas'
82
+ headers:
83
+ X-AF-Credits-Cost:
84
+ $ref: '#/components/headers/X-AF-Credits-Cost'
82
85
  '400':
83
86
  description: Bad Request — Missing required parameter, or type/shape/format/size is not one of the allowed enum values
84
87
  content:
@@ -110,6 +113,9 @@ paths:
110
113
  status: 400
111
114
  error: Bad Request
112
115
  message: Invalid shape
116
+ headers:
117
+ X-AF-Credits-Cost:
118
+ $ref: '#/components/headers/X-AF-Credits-Cost'
113
119
  '404':
114
120
  description: Not Found — Country code or organization identifier not recognized
115
121
  content:
@@ -125,6 +131,9 @@ paths:
125
131
  status: 404
126
132
  error: Not Found
127
133
  message: 'Invalid country name or code: ZZ'
134
+ headers:
135
+ X-AF-Credits-Cost:
136
+ $ref: '#/components/headers/X-AF-Credits-Cost'
128
137
  components:
129
138
  securitySchemes:
130
139
  ApiKeyAuthHeader:
@@ -165,6 +174,11 @@ components:
165
174
  type: string
166
175
  format: date-time
167
176
  description: Timestamp when the error occurred (ISO 8601).
177
+ headers:
178
+ X-AF-Credits-Cost:
179
+ description: Specifies the number of credits consumed by the current request.
180
+ schema:
181
+ type: integer
168
182
  security:
169
183
  - ApiKeyAuthHeader: []
170
184
  - ApiKeyAuthQuery: []
@@ -47,6 +47,9 @@ paths:
47
47
  - Europe
48
48
  - Oceania
49
49
  - Polar
50
+ headers:
51
+ X-AF-Credits-Cost:
52
+ $ref: '#/components/headers/X-AF-Credits-Cost'
50
53
  components:
51
54
  securitySchemes:
52
55
  ApiKeyAuthHeader:
@@ -71,6 +74,11 @@ components:
71
74
  description: An array of region names representing all geographical regions supported by the service.
72
75
  items:
73
76
  type: string
77
+ headers:
78
+ X-AF-Credits-Cost:
79
+ description: Specifies the number of credits consumed by the current request.
80
+ schema:
81
+ type: integer
74
82
  security:
75
83
  - ApiKeyAuthHeader: []
76
84
  - ApiKeyAuthQuery: []