@apifreaks/openapi-specs 0.2.0 → 0.3.0

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 (212) hide show
  1. package/README.md +37 -37
  2. package/dist/index.cjs +2787 -348
  3. package/dist/index.js +2787 -348
  4. package/dist/specs/commodity/commodity-fluctuation.yaml +14 -0
  5. package/dist/specs/commodity/commodity-prices.yaml +14 -0
  6. package/dist/specs/commodity/commodity-symbols.yaml +8 -0
  7. package/dist/specs/commodity/commodity-time-series.yaml +14 -0
  8. package/dist/specs/commodity/historical-commodity-prices.yaml +14 -0
  9. package/dist/specs/currency/currency-converter.yaml +14 -0
  10. package/dist/specs/currency/currency-fluctuation.yaml +14 -0
  11. package/dist/specs/currency/currency-historical-data-limit.yaml +11 -0
  12. package/dist/specs/currency/currency-rate.yaml +14 -0
  13. package/dist/specs/currency/currency-supported.yaml +11 -0
  14. package/dist/specs/currency/currency-symbols.yaml +11 -0
  15. package/dist/specs/currency/currency-time-series.yaml +14 -0
  16. package/dist/specs/currency/geolocalized-currency-conversion.yaml +14 -0
  17. package/dist/specs/currency/historical-currency-converter.yaml +14 -0
  18. package/dist/specs/currency/historical-currency-rate.yaml +14 -0
  19. package/dist/specs/dns/bulk-dns-lookup.yaml +14 -0
  20. package/dist/specs/dns/dns-history-lookup.yaml +14 -0
  21. package/dist/specs/dns/dns-lookup.yaml +11 -0
  22. package/dist/specs/dns/reverse-dns-lookup.yaml +34 -0
  23. package/dist/specs/domain/bulk-domain-checker.yaml +17 -0
  24. package/dist/specs/domain/domain-search-with-suggestions.yaml +14 -0
  25. package/dist/specs/domain/domain-search.yaml +14 -0
  26. package/dist/specs/domain/subdomain-lookup.yaml +14 -0
  27. package/dist/specs/email-validation/bulk-email-validation.yaml +17 -0
  28. package/dist/specs/email-validation/email-checker.yaml +41 -0
  29. package/dist/specs/financial/bulk-vat-rates-country.yaml +14 -0
  30. package/dist/specs/financial/financial-apis-supported-countries.yaml +8 -0
  31. package/dist/specs/financial/iban-validation.yaml +11 -0
  32. package/dist/specs/financial/swift-code-finder.yaml +11 -0
  33. package/dist/specs/financial/swift-code-lookup.yaml +14 -0
  34. package/dist/specs/financial/vat-number-validation.yaml +14 -0
  35. package/dist/specs/financial/vat-rates-by-ip.yaml +14 -0
  36. package/dist/specs/financial/vat-rates-country.yaml +14 -0
  37. package/dist/specs/general/usage-credits.yaml +11 -0
  38. package/dist/specs/geocoding/forward-geocoding.yaml +14 -0
  39. package/dist/specs/geocoding/reverse-geocoding.yaml +11 -0
  40. package/dist/specs/geodb/administrative-units-details.yaml +14 -0
  41. package/dist/specs/geodb/administrative-units-levels.yaml +14 -0
  42. package/dist/specs/geodb/administrative-units.yaml +14 -0
  43. package/dist/specs/geodb/cities.yaml +14 -0
  44. package/dist/specs/geodb/countries-details.yaml +11 -0
  45. package/dist/specs/geodb/countries.yaml +11 -0
  46. package/dist/specs/geodb/flags-supported.yaml +8 -0
  47. package/dist/specs/geodb/flags.yaml +14 -0
  48. package/dist/specs/geodb/regions.yaml +8 -0
  49. package/dist/specs/geodb/subregions.yaml +14 -0
  50. package/dist/specs/ip-intelligence/bulk-ip-lookup.yaml +14 -0
  51. package/dist/specs/ip-intelligence/bulk-ip-threat-intelligence.yaml +11 -0
  52. package/dist/specs/ip-intelligence/ip-locator.yaml +17 -0
  53. package/dist/specs/ip-intelligence/ip-threat-intelligence.yaml +14 -0
  54. package/dist/specs/other/astronomy-data.yaml +14 -0
  55. package/dist/specs/pdf/bulk-pdf-generator.yaml +32 -0
  56. package/dist/specs/pdf/delete-pdf-page.yaml +14 -0
  57. package/dist/specs/pdf/linearize-pdf.yaml +14 -0
  58. package/dist/specs/pdf/merge-pdf.yaml +14 -0
  59. package/dist/specs/pdf/pdf-compress.yaml +14 -0
  60. package/dist/specs/pdf/pdf-decrypt.yaml +14 -0
  61. package/dist/specs/pdf/pdf-encrypt.yaml +14 -0
  62. package/dist/specs/pdf/pdf-extract-pages.yaml +14 -0
  63. package/dist/specs/pdf/pdf-file-status.yaml +14 -0
  64. package/dist/specs/pdf/pdf-file.yaml +14 -0
  65. package/dist/specs/pdf/pdf-files.yaml +8 -0
  66. package/dist/specs/pdf/pdf-generator.yaml +32 -0
  67. package/dist/specs/pdf/pdf-resource-download.yaml +14 -0
  68. package/dist/specs/pdf/pdf-resource-upload-binary.yaml +14 -0
  69. package/dist/specs/pdf/pdf-resource-upload.yaml +14 -0
  70. package/dist/specs/pdf/pdf-restrict.yaml +14 -0
  71. package/dist/specs/pdf/pdf-split-pages.yaml +14 -0
  72. package/dist/specs/pdf/pdf-task-status.yaml +14 -0
  73. package/dist/specs/pdf/pdf-to-image.yaml +35 -0
  74. package/dist/specs/pdf/pdf-unrestrict.yaml +14 -0
  75. package/dist/specs/pdf/rotate-pdf-pages.yaml +14 -0
  76. package/dist/specs/phone-validation/bulk-phone-number-validation.yaml +23 -0
  77. package/dist/specs/phone-validation/phone-number-validation.yaml +20 -0
  78. package/dist/specs/scraper/web-scraper.yaml +34 -0
  79. package/dist/specs/screenshot/bulk-screenshot.yaml +34 -0
  80. package/dist/specs/screenshot/website-screenshot.yaml +34 -0
  81. package/dist/specs/ssl/ssl-certificate-chain-lookup.yaml +17 -0
  82. package/dist/specs/ssl/ssl-certificate-lookup.yaml +17 -0
  83. package/dist/specs/timezone/timezone-converter.yaml +14 -0
  84. package/dist/specs/timezone/timezone-lookup.yaml +14 -0
  85. package/dist/specs/user-agent/bulk-user-agent-parser.yaml +11 -0
  86. package/dist/specs/user-agent/user-agent-parser.yaml +11 -0
  87. package/dist/specs/weather/air-quality.yaml +14 -0
  88. package/dist/specs/weather/bulk-live-weather.yaml +11 -0
  89. package/dist/specs/weather/flood-forecast.yaml +14 -0
  90. package/dist/specs/weather/historical-weather.yaml +14 -0
  91. package/dist/specs/weather/live-weather.yaml +14 -0
  92. package/dist/specs/weather/marine-weather.yaml +14 -0
  93. package/dist/specs/weather/time-series-weather.yaml +11 -0
  94. package/dist/specs/weather/weather-forecast.yaml +11 -0
  95. package/dist/specs/whois/asn-lookup.yaml +14 -0
  96. package/dist/specs/whois/bulk-whois-lookup.yaml +17 -0
  97. package/dist/specs/whois/domain-whois-history-lookup.yaml +14 -0
  98. package/dist/specs/whois/reverse-whois.yaml +34 -0
  99. package/dist/specs/whois/whois-domain-lookup.yaml +17 -0
  100. package/dist/specs/whois/whois-ip-lookup.yaml +14 -0
  101. package/dist/specs/zip-code/bulk-zip-code-lookup.yaml +14 -0
  102. package/dist/specs/zip-code/zip-code-api.yaml +14 -0
  103. package/dist/specs/zip-code/zip-code-distance-match.yaml +14 -0
  104. package/dist/specs/zip-code/zip-code-distance.yaml +14 -0
  105. package/dist/specs/zip-code/zip-codes-by-city.yaml +14 -0
  106. package/dist/specs/zip-code/zip-codes-by-region.yaml +14 -0
  107. package/dist/specs/zip-code/zip-codes-radius-search.yaml +34 -0
  108. package/package.json +1 -1
  109. package/specs/commodity/commodity-fluctuation.json +23 -0
  110. package/specs/commodity/commodity-prices.json +23 -0
  111. package/specs/commodity/commodity-symbols.json +13 -0
  112. package/specs/commodity/commodity-time-series.json +27 -13
  113. package/specs/commodity/historical-commodity-prices.json +23 -0
  114. package/specs/currency/currency-converter.json +23 -0
  115. package/specs/currency/currency-fluctuation.json +23 -0
  116. package/specs/currency/currency-historical-data-limit.json +18 -0
  117. package/specs/currency/currency-rate.json +23 -0
  118. package/specs/currency/currency-supported.json +18 -0
  119. package/specs/currency/currency-symbols.json +18 -0
  120. package/specs/currency/currency-time-series.json +23 -0
  121. package/specs/currency/geolocalized-currency-conversion.json +23 -0
  122. package/specs/currency/historical-currency-converter.json +23 -0
  123. package/specs/currency/historical-currency-rate.json +23 -0
  124. package/specs/dns/bulk-dns-lookup.json +23 -0
  125. package/specs/dns/dns-history-lookup.json +23 -0
  126. package/specs/dns/dns-lookup.json +18 -0
  127. package/specs/dns/reverse-dns-lookup.json +61 -1
  128. package/specs/domain/bulk-domain-checker.json +28 -0
  129. package/specs/domain/domain-search-with-suggestions.json +23 -0
  130. package/specs/domain/domain-search.json +23 -0
  131. package/specs/domain/subdomain-lookup.json +23 -0
  132. package/specs/email-validation/bulk-email-validation.json +28 -0
  133. package/specs/email-validation/email-checker.json +64 -0
  134. package/specs/financial/bulk-vat-rates-country.json +23 -0
  135. package/specs/financial/financial-apis-supported-countries.json +34 -5
  136. package/specs/financial/iban-validation.json +18 -0
  137. package/specs/financial/swift-code-finder.json +31 -2
  138. package/specs/financial/swift-code-lookup.json +23 -0
  139. package/specs/financial/vat-number-validation.json +23 -0
  140. package/specs/financial/vat-rates-by-ip.json +23 -0
  141. package/specs/financial/vat-rates-country.json +23 -0
  142. package/specs/general/usage-credits.json +18 -0
  143. package/specs/geocoding/forward-geocoding.json +23 -0
  144. package/specs/geocoding/reverse-geocoding.json +18 -0
  145. package/specs/geodb/administrative-units-details.json +23 -0
  146. package/specs/geodb/administrative-units-levels.json +23 -0
  147. package/specs/geodb/administrative-units.json +23 -0
  148. package/specs/geodb/cities.json +23 -0
  149. package/specs/geodb/countries-details.json +18 -0
  150. package/specs/geodb/countries.json +18 -0
  151. package/specs/geodb/flags-supported.json +13 -0
  152. package/specs/geodb/flags.json +23 -0
  153. package/specs/geodb/regions.json +13 -0
  154. package/specs/geodb/subregions.json +23 -0
  155. package/specs/ip-intelligence/bulk-ip-lookup.json +23 -0
  156. package/specs/ip-intelligence/bulk-ip-threat-intelligence.json +18 -0
  157. package/specs/ip-intelligence/ip-locator.json +33 -5
  158. package/specs/ip-intelligence/ip-threat-intelligence.json +23 -0
  159. package/specs/other/astronomy-data.json +24 -2
  160. package/specs/pdf/bulk-pdf-generator.json +61 -8
  161. package/specs/pdf/delete-pdf-page.json +33 -21
  162. package/specs/pdf/linearize-pdf.json +31 -19
  163. package/specs/pdf/merge-pdf.json +30 -18
  164. package/specs/pdf/pdf-compress.json +32 -25
  165. package/specs/pdf/pdf-decrypt.json +32 -21
  166. package/specs/pdf/pdf-encrypt.json +31 -19
  167. package/specs/pdf/pdf-extract-pages.json +33 -21
  168. package/specs/pdf/pdf-file-status.json +23 -0
  169. package/specs/pdf/pdf-file.json +23 -0
  170. package/specs/pdf/pdf-files.json +13 -0
  171. package/specs/pdf/pdf-generator.json +61 -8
  172. package/specs/pdf/pdf-resource-download.json +23 -0
  173. package/specs/pdf/pdf-resource-upload-binary.json +29 -16
  174. package/specs/pdf/pdf-resource-upload.json +30 -19
  175. package/specs/pdf/pdf-restrict.json +32 -20
  176. package/specs/pdf/pdf-split-pages.json +33 -21
  177. package/specs/pdf/pdf-task-status.json +23 -0
  178. package/specs/pdf/pdf-to-image.json +90 -101
  179. package/specs/pdf/pdf-unrestrict.json +32 -20
  180. package/specs/pdf/rotate-pdf-pages.json +32 -20
  181. package/specs/phone-validation/bulk-phone-number-validation.json +54 -16
  182. package/specs/phone-validation/phone-number-validation.json +33 -0
  183. package/specs/scraper/web-scraper.json +53 -0
  184. package/specs/screenshot/bulk-screenshot.json +53 -0
  185. package/specs/screenshot/website-screenshot.json +53 -0
  186. package/specs/ssl/ssl-certificate-chain-lookup.json +28 -0
  187. package/specs/ssl/ssl-certificate-lookup.json +28 -0
  188. package/specs/timezone/timezone-converter.json +23 -0
  189. package/specs/timezone/timezone-lookup.json +25 -2
  190. package/specs/user-agent/bulk-user-agent-parser.json +20 -2
  191. package/specs/user-agent/user-agent-parser.json +18 -0
  192. package/specs/weather/air-quality.json +23 -0
  193. package/specs/weather/bulk-live-weather.json +18 -0
  194. package/specs/weather/flood-forecast.json +23 -0
  195. package/specs/weather/historical-weather.json +23 -0
  196. package/specs/weather/live-weather.json +23 -0
  197. package/specs/weather/marine-weather.json +23 -0
  198. package/specs/weather/time-series-weather.json +18 -0
  199. package/specs/weather/weather-forecast.json +18 -0
  200. package/specs/whois/asn-lookup.json +23 -0
  201. package/specs/whois/bulk-whois-lookup.json +28 -0
  202. package/specs/whois/domain-whois-history-lookup.json +23 -0
  203. package/specs/whois/reverse-whois.json +53 -0
  204. package/specs/whois/whois-domain-lookup.json +28 -0
  205. package/specs/whois/whois-ip-lookup.json +23 -0
  206. package/specs/zip-code/bulk-zip-code-lookup.json +23 -0
  207. package/specs/zip-code/zip-code-api.json +23 -0
  208. package/specs/zip-code/zip-code-distance-match.json +23 -0
  209. package/specs/zip-code/zip-code-distance.json +23 -0
  210. package/specs/zip-code/zip-codes-by-city.json +23 -0
  211. package/specs/zip-code/zip-codes-by-region.json +24 -7
  212. package/specs/zip-code/zip-codes-radius-search.json +53 -0
@@ -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: []
@@ -53,6 +53,9 @@ paths:
53
53
  oneOffCreditsActive: true
54
54
  oneOffAllowedCredits: 5000
55
55
  oneOffUsedCredits: 1000
56
+ headers:
57
+ X-AF-Credits-Cost:
58
+ $ref: '#/components/headers/X-AF-Credits-Cost'
56
59
  '403':
57
60
  description: Forbidden — Caller is not an organization admin
58
61
  content:
@@ -68,6 +71,9 @@ paths:
68
71
  status: 403
69
72
  error: API Access Exception
70
73
  message: You need to be organization admin to access this endpoint.
74
+ headers:
75
+ X-AF-Credits-Cost:
76
+ $ref: '#/components/headers/X-AF-Credits-Cost'
71
77
  components:
72
78
  securitySchemes:
73
79
  ApiKeyAuthHeader:
@@ -183,6 +189,11 @@ components:
183
189
  type: string
184
190
  format: date-time
185
191
  description: Timestamp when the error occurred (ISO 8601).
192
+ headers:
193
+ X-AF-Credits-Cost:
194
+ description: Specifies the number of credits consumed by the current request.
195
+ schema:
196
+ type: integer
186
197
  security:
187
198
  - ApiKeyAuthHeader: []
188
199
  - 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: []
@@ -77,6 +77,9 @@ paths:
77
77
  - Western Africa
78
78
  - Western Asia
79
79
  - Western Europe
80
+ headers:
81
+ X-AF-Credits-Cost:
82
+ $ref: '#/components/headers/X-AF-Credits-Cost'
80
83
  '400':
81
84
  description: Bad Request — Region name is not a recognized region
82
85
  content:
@@ -92,6 +95,9 @@ paths:
92
95
  status: 400
93
96
  error: Invalid Region Name provided
94
97
  message: Please provide a valid region name.
98
+ headers:
99
+ X-AF-Credits-Cost:
100
+ $ref: '#/components/headers/X-AF-Credits-Cost'
95
101
  '404':
96
102
  description: Not Found — Region is valid but has no subregions (e.g. Polar)
97
103
  content:
@@ -107,6 +113,9 @@ paths:
107
113
  status: 404
108
114
  error: No subregions exist
109
115
  message: This region does not have any subregions.
116
+ headers:
117
+ X-AF-Credits-Cost:
118
+ $ref: '#/components/headers/X-AF-Credits-Cost'
110
119
  components:
111
120
  securitySchemes:
112
121
  ApiKeyAuthHeader:
@@ -153,6 +162,11 @@ components:
153
162
  type: string
154
163
  format: date-time
155
164
  description: Timestamp when the error occurred (ISO 8601).
165
+ headers:
166
+ X-AF-Credits-Cost:
167
+ description: Specifies the number of credits consumed by the current request.
168
+ schema:
169
+ type: integer
156
170
  security:
157
171
  - ApiKeyAuthHeader: []
158
172
  - ApiKeyAuthQuery: []
@@ -315,6 +315,9 @@ paths:
315
315
  summary: Bogon, reserved, or not-in-database IP — returns an error object for that item
316
316
  value:
317
317
  - message: '''127.0.0.1'' is a bogon IP address.'
318
+ headers:
319
+ X-AF-Credits-Cost:
320
+ $ref: '#/components/headers/X-AF-Credits-Cost'
318
321
  '400':
319
322
  description: Bad Request — Invalid or missing parameters
320
323
  content:
@@ -338,6 +341,9 @@ paths:
338
341
  path: /v2.0/geolocation/lookup
339
342
  status: 400
340
343
  timestamp: '2026-07-22T13:09:02.595Z'
344
+ headers:
345
+ X-AF-Credits-Cost:
346
+ $ref: '#/components/headers/X-AF-Credits-Cost'
341
347
  '413':
342
348
  description: Payload Too Large — Request body exceeds the maximum allowed size
343
349
  content:
@@ -353,6 +359,9 @@ paths:
353
359
  path: /v2.0/geolocation/lookup
354
360
  status: 413
355
361
  timestamp: '2026-07-22T13:09:13.142Z'
362
+ headers:
363
+ X-AF-Credits-Cost:
364
+ $ref: '#/components/headers/X-AF-Credits-Cost'
356
365
  components:
357
366
  securitySchemes:
358
367
  ApiKeyAuthHeader:
@@ -890,6 +899,11 @@ components:
890
899
  $ref: '#/components/schemas/Engine'
891
900
  operating_system:
892
901
  $ref: '#/components/schemas/OperatingSystem'
902
+ headers:
903
+ X-AF-Credits-Cost:
904
+ description: Specifies the number of credits consumed by the current request.
905
+ schema:
906
+ type: integer
893
907
  security:
894
908
  - ApiKeyAuthHeader: []
895
909
  - ApiKeyAuthQuery: []
@@ -137,6 +137,9 @@ paths:
137
137
  summary: Bogon or reserved IP - returns an error object for that item
138
138
  value:
139
139
  - message: '''127.0.0.1'' is a bogon IP address.'
140
+ headers:
141
+ X-AF-Credits-Cost:
142
+ $ref: '#/components/headers/X-AF-Credits-Cost'
140
143
  '400':
141
144
  description: Bad Request - Missing, empty, or malformed request body
142
145
  content:
@@ -152,6 +155,9 @@ paths:
152
155
  path: /v1.0/ip/security
153
156
  status: 400
154
157
  timestamp: '2026-07-22T14:03:26.577Z'
158
+ headers:
159
+ X-AF-Credits-Cost:
160
+ $ref: '#/components/headers/X-AF-Credits-Cost'
155
161
  components:
156
162
  securitySchemes:
157
163
  ApiKeyAuthHeader:
@@ -305,6 +311,11 @@ components:
305
311
  cloud_provider_name:
306
312
  type: string
307
313
  description: Name of the cloud provider, if the IP address belongs to a cloud provider.
314
+ headers:
315
+ X-AF-Credits-Cost:
316
+ description: Specifies the number of credits consumed by the current request.
317
+ schema:
318
+ type: integer
308
319
  security:
309
320
  - ApiKeyAuthHeader: []
310
321
  - ApiKeyAuthQuery: []
@@ -161,6 +161,9 @@ paths:
161
161
  date_time_after: 2026-11-01 TIME 01:00
162
162
  date_time_before: 2026-11-01 TIME 02:00
163
163
  overlap: true
164
+ headers:
165
+ X-AF-Credits-Cost:
166
+ $ref: '#/components/headers/X-AF-Credits-Cost'
164
167
  '400':
165
168
  description: Bad Request — Invalid or missing parameters
166
169
  content:
@@ -172,6 +175,9 @@ paths:
172
175
  summary: Missing or invalid parameters
173
176
  value:
174
177
  message: The request was unacceptable. Typically due to missing or invalid parameters.
178
+ headers:
179
+ X-AF-Credits-Cost:
180
+ $ref: '#/components/headers/X-AF-Credits-Cost'
175
181
  '404':
176
182
  description: Not Found — IP address not in database
177
183
  content:
@@ -183,6 +189,9 @@ paths:
183
189
  summary: IP address not in database
184
190
  value:
185
191
  message: Provided IP address '255.255.255.255' doesn't exist in our database.
192
+ headers:
193
+ X-AF-Credits-Cost:
194
+ $ref: '#/components/headers/X-AF-Credits-Cost'
186
195
  '423':
187
196
  description: Locked — Bogon or reserved IP address
188
197
  content:
@@ -194,6 +203,9 @@ paths:
194
203
  summary: Bogon or reserved IP address
195
204
  value:
196
205
  message: '''127.0.0.1'' is a bogon (Internet Assigned Numbers Authority) IP address.'
206
+ headers:
207
+ X-AF-Credits-Cost:
208
+ $ref: '#/components/headers/X-AF-Credits-Cost'
197
209
  components:
198
210
  securitySchemes:
199
211
  ApiKeyAuthHeader:
@@ -703,6 +715,11 @@ components:
703
715
  type: string
704
716
  format: date-time
705
717
  description: Timestamp when the error occurred (ISO 8601).
718
+ headers:
719
+ X-AF-Credits-Cost:
720
+ description: Specifies the number of credits consumed by the current request.
721
+ schema:
722
+ type: integer
706
723
  security:
707
724
  - ApiKeyAuthHeader: []
708
725
  - ApiKeyAuthQuery: []
@@ -79,6 +79,9 @@ paths:
79
79
  is_spam: false
80
80
  is_cloud_provider: true
81
81
  cloud_provider_name: Google LLC
82
+ headers:
83
+ X-AF-Credits-Cost:
84
+ $ref: '#/components/headers/X-AF-Credits-Cost'
82
85
  '400':
83
86
  description: Bad Request — Invalid or missing IP address
84
87
  content:
@@ -90,6 +93,9 @@ paths:
90
93
  summary: Malformed IP address
91
94
  value:
92
95
  message: Provided IP address 'invalid' is not valid
96
+ headers:
97
+ X-AF-Credits-Cost:
98
+ $ref: '#/components/headers/X-AF-Credits-Cost'
93
99
  '423':
94
100
  description: Locked — Bogon or reserved IP address
95
101
  content:
@@ -101,6 +107,9 @@ paths:
101
107
  summary: Bogon or reserved IP address
102
108
  value:
103
109
  message: '''10.0.0.1'' is a bogon IP address.'
110
+ headers:
111
+ X-AF-Credits-Cost:
112
+ $ref: '#/components/headers/X-AF-Credits-Cost'
104
113
  components:
105
114
  securitySchemes:
106
115
  ApiKeyAuthHeader:
@@ -225,6 +234,11 @@ components:
225
234
  cloud_provider_name:
226
235
  type: string
227
236
  description: Cloud provider name.
237
+ headers:
238
+ X-AF-Credits-Cost:
239
+ description: Specifies the number of credits consumed by the current request.
240
+ schema:
241
+ type: integer
228
242
  security:
229
243
  - ApiKeyAuthHeader: []
230
244
  - ApiKeyAuthQuery: []