@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
@@ -124,6 +124,11 @@
124
124
  }
125
125
  }
126
126
  }
127
+ },
128
+ "headers": {
129
+ "X-AF-Credits-Cost": {
130
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
131
+ }
127
132
  }
128
133
  },
129
134
  "400": {
@@ -156,6 +161,11 @@
156
161
  }
157
162
  }
158
163
  }
164
+ },
165
+ "headers": {
166
+ "X-AF-Credits-Cost": {
167
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
168
+ }
159
169
  }
160
170
  }
161
171
  }
@@ -263,6 +273,14 @@
263
273
  }
264
274
  }
265
275
  }
276
+ },
277
+ "headers": {
278
+ "X-AF-Credits-Cost": {
279
+ "description": "Specifies the number of credits consumed by the current request.",
280
+ "schema": {
281
+ "type": "integer"
282
+ }
283
+ }
266
284
  }
267
285
  },
268
286
  "security": [
@@ -91,6 +91,11 @@
91
91
  }
92
92
  }
93
93
  }
94
+ },
95
+ "headers": {
96
+ "X-AF-Credits-Cost": {
97
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
98
+ }
94
99
  }
95
100
  }
96
101
  }
@@ -153,6 +158,14 @@
153
158
  }
154
159
  }
155
160
  }
161
+ },
162
+ "headers": {
163
+ "X-AF-Credits-Cost": {
164
+ "description": "Specifies the number of credits consumed by the current request.",
165
+ "schema": {
166
+ "type": "integer"
167
+ }
168
+ }
156
169
  }
157
170
  },
158
171
  "security": [
@@ -94,6 +94,11 @@
94
94
  "$ref": "#/components/schemas/ApiResponseSchemas"
95
95
  }
96
96
  }
97
+ },
98
+ "headers": {
99
+ "X-AF-Credits-Cost": {
100
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
101
+ }
97
102
  }
98
103
  },
99
104
  "400": {
@@ -136,6 +141,11 @@
136
141
  }
137
142
  }
138
143
  }
144
+ },
145
+ "headers": {
146
+ "X-AF-Credits-Cost": {
147
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
148
+ }
139
149
  }
140
150
  },
141
151
  "404": {
@@ -158,6 +168,11 @@
158
168
  }
159
169
  }
160
170
  }
171
+ },
172
+ "headers": {
173
+ "X-AF-Credits-Cost": {
174
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
175
+ }
161
176
  }
162
177
  }
163
178
  }
@@ -214,6 +229,14 @@
214
229
  }
215
230
  }
216
231
  }
232
+ },
233
+ "headers": {
234
+ "X-AF-Credits-Cost": {
235
+ "description": "Specifies the number of credits consumed by the current request.",
236
+ "schema": {
237
+ "type": "integer"
238
+ }
239
+ }
217
240
  }
218
241
  },
219
242
  "security": [
@@ -60,6 +60,11 @@
60
60
  }
61
61
  }
62
62
  }
63
+ },
64
+ "headers": {
65
+ "X-AF-Credits-Cost": {
66
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
67
+ }
63
68
  }
64
69
  }
65
70
  }
@@ -96,6 +101,14 @@
96
101
  }
97
102
  }
98
103
  }
104
+ },
105
+ "headers": {
106
+ "X-AF-Credits-Cost": {
107
+ "description": "Specifies the number of credits consumed by the current request.",
108
+ "schema": {
109
+ "type": "integer"
110
+ }
111
+ }
99
112
  }
100
113
  },
101
114
  "security": [
@@ -96,6 +96,11 @@
96
96
  }
97
97
  }
98
98
  }
99
+ },
100
+ "headers": {
101
+ "X-AF-Credits-Cost": {
102
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
103
+ }
99
104
  }
100
105
  },
101
106
  "400": {
@@ -118,6 +123,11 @@
118
123
  }
119
124
  }
120
125
  }
126
+ },
127
+ "headers": {
128
+ "X-AF-Credits-Cost": {
129
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
130
+ }
121
131
  }
122
132
  },
123
133
  "404": {
@@ -140,6 +150,11 @@
140
150
  }
141
151
  }
142
152
  }
153
+ },
154
+ "headers": {
155
+ "X-AF-Credits-Cost": {
156
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
157
+ }
143
158
  }
144
159
  }
145
160
  }
@@ -204,6 +219,14 @@
204
219
  }
205
220
  }
206
221
  }
222
+ },
223
+ "headers": {
224
+ "X-AF-Credits-Cost": {
225
+ "description": "Specifies the number of credits consumed by the current request.",
226
+ "schema": {
227
+ "type": "integer"
228
+ }
229
+ }
207
230
  }
208
231
  },
209
232
  "security": [
@@ -375,6 +375,11 @@
375
375
  }
376
376
  }
377
377
  }
378
+ },
379
+ "headers": {
380
+ "X-AF-Credits-Cost": {
381
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
382
+ }
378
383
  }
379
384
  },
380
385
  "400": {
@@ -407,6 +412,11 @@
407
412
  }
408
413
  }
409
414
  }
415
+ },
416
+ "headers": {
417
+ "X-AF-Credits-Cost": {
418
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
419
+ }
410
420
  }
411
421
  },
412
422
  "413": {
@@ -429,6 +439,11 @@
429
439
  }
430
440
  }
431
441
  }
442
+ },
443
+ "headers": {
444
+ "X-AF-Credits-Cost": {
445
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
446
+ }
432
447
  }
433
448
  }
434
449
  }
@@ -1149,6 +1164,14 @@
1149
1164
  }
1150
1165
  }
1151
1166
  }
1167
+ },
1168
+ "headers": {
1169
+ "X-AF-Credits-Cost": {
1170
+ "description": "Specifies the number of credits consumed by the current request.",
1171
+ "schema": {
1172
+ "type": "integer"
1173
+ }
1174
+ }
1152
1175
  }
1153
1176
  },
1154
1177
  "security": [
@@ -176,6 +176,11 @@
176
176
  }
177
177
  }
178
178
  }
179
+ },
180
+ "headers": {
181
+ "X-AF-Credits-Cost": {
182
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
183
+ }
179
184
  }
180
185
  },
181
186
  "400": {
@@ -198,6 +203,11 @@
198
203
  }
199
204
  }
200
205
  }
206
+ },
207
+ "headers": {
208
+ "X-AF-Credits-Cost": {
209
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
210
+ }
201
211
  }
202
212
  }
203
213
  }
@@ -404,6 +414,14 @@
404
414
  }
405
415
  }
406
416
  }
417
+ },
418
+ "headers": {
419
+ "X-AF-Credits-Cost": {
420
+ "description": "Specifies the number of credits consumed by the current request.",
421
+ "schema": {
422
+ "type": "integer"
423
+ }
424
+ }
407
425
  }
408
426
  },
409
427
  "security": [
@@ -127,7 +127,7 @@
127
127
  "is_eu": false,
128
128
  "country_flag": "https://ipgeolocation.io/static/flags/us_64.png",
129
129
  "geoname_id": "6301403",
130
- "country_emoji": "\ud83c\uddfa\ud83c\uddf8"
130
+ "country_emoji": "🇺🇸"
131
131
  },
132
132
  "country_metadata": {
133
133
  "calling_code": "+1",
@@ -194,10 +194,15 @@
194
194
  }
195
195
  }
196
196
  }
197
+ },
198
+ "headers": {
199
+ "X-AF-Credits-Cost": {
200
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
201
+ }
197
202
  }
198
203
  },
199
204
  "400": {
200
- "description": "Bad Request \u2014 Invalid or missing parameters",
205
+ "description": "Bad Request Invalid or missing parameters",
201
206
  "content": {
202
207
  "application/json": {
203
208
  "schema": {
@@ -212,10 +217,15 @@
212
217
  }
213
218
  }
214
219
  }
220
+ },
221
+ "headers": {
222
+ "X-AF-Credits-Cost": {
223
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
224
+ }
215
225
  }
216
226
  },
217
227
  "404": {
218
- "description": "Not Found \u2014 IP address not in database",
228
+ "description": "Not Found IP address not in database",
219
229
  "content": {
220
230
  "application/json": {
221
231
  "schema": {
@@ -230,10 +240,15 @@
230
240
  }
231
241
  }
232
242
  }
243
+ },
244
+ "headers": {
245
+ "X-AF-Credits-Cost": {
246
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
247
+ }
233
248
  }
234
249
  },
235
250
  "423": {
236
- "description": "Locked \u2014 Bogon or reserved IP address",
251
+ "description": "Locked Bogon or reserved IP address",
237
252
  "content": {
238
253
  "application/json": {
239
254
  "schema": {
@@ -248,6 +263,11 @@
248
263
  }
249
264
  }
250
265
  }
266
+ },
267
+ "headers": {
268
+ "X-AF-Credits-Cost": {
269
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
270
+ }
251
271
  }
252
272
  }
253
273
  }
@@ -743,7 +763,7 @@
743
763
  },
744
764
  "current_time": {
745
765
  "type": "string",
746
- "description": "Local date/time in YYYY-MM-DD HH:mm:ss.SSS\u00b1ZZZZ format."
766
+ "description": "Local date/time in YYYY-MM-DD HH:mm:ss.SSS±ZZZZ format."
747
767
  },
748
768
  "current_time_unix": {
749
769
  "type": "number",
@@ -928,6 +948,14 @@
928
948
  }
929
949
  }
930
950
  }
951
+ },
952
+ "headers": {
953
+ "X-AF-Credits-Cost": {
954
+ "description": "Specifies the number of credits consumed by the current request.",
955
+ "schema": {
956
+ "type": "integer"
957
+ }
958
+ }
931
959
  }
932
960
  },
933
961
  "security": [
@@ -101,6 +101,11 @@
101
101
  }
102
102
  }
103
103
  }
104
+ },
105
+ "headers": {
106
+ "X-AF-Credits-Cost": {
107
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
108
+ }
104
109
  }
105
110
  },
106
111
  "400": {
@@ -119,6 +124,11 @@
119
124
  }
120
125
  }
121
126
  }
127
+ },
128
+ "headers": {
129
+ "X-AF-Credits-Cost": {
130
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
131
+ }
122
132
  }
123
133
  },
124
134
  "423": {
@@ -137,6 +147,11 @@
137
147
  }
138
148
  }
139
149
  }
150
+ },
151
+ "headers": {
152
+ "X-AF-Credits-Cost": {
153
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
154
+ }
140
155
  }
141
156
  }
142
157
  }
@@ -303,6 +318,14 @@
303
318
  }
304
319
  }
305
320
  }
321
+ },
322
+ "headers": {
323
+ "X-AF-Credits-Cost": {
324
+ "description": "Specifies the number of credits consumed by the current request.",
325
+ "schema": {
326
+ "type": "integer"
327
+ }
328
+ }
306
329
  }
307
330
  },
308
331
  "security": [
@@ -340,10 +340,15 @@
340
340
  }
341
341
  }
342
342
  }
343
+ },
344
+ "headers": {
345
+ "X-AF-Credits-Cost": {
346
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
347
+ }
343
348
  }
344
349
  },
345
350
  "400": {
346
- "description": "Bad Request \u2013 Invalid parameters provided",
351
+ "description": "Bad Request Invalid parameters provided",
347
352
  "content": {
348
353
  "application/json": {
349
354
  "schema": {
@@ -370,6 +375,11 @@
370
375
  }
371
376
  }
372
377
  }
378
+ },
379
+ "headers": {
380
+ "X-AF-Credits-Cost": {
381
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
382
+ }
373
383
  }
374
384
  },
375
385
  "404": {
@@ -388,6 +398,11 @@
388
398
  }
389
399
  }
390
400
  }
401
+ },
402
+ "headers": {
403
+ "X-AF-Credits-Cost": {
404
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
405
+ }
391
406
  }
392
407
  }
393
408
  }
@@ -427,7 +442,6 @@
427
442
  },
428
443
  "description": "Astronomy data response containing location information and astronomical data."
429
444
  },
430
-
431
445
  "AstronomyLocation": {
432
446
  "type": "object",
433
447
  "description": "Geographic location information for the astronomy calculation. The set of populated fields depends on which lookup mode the request used: (1) location param (geocode-by-address) returns location_string plus a basic field set (country_name, state_prov, city, locality, latitude, longitude, elevation); (2) lat + long params (geocode-by-coordinates) returns the same basic field set minus location_string, and locality may be an empty string when the coordinates don't resolve to a named sub-area; (3) ip param, or no location/lat/long/ip param at all (falls back to geo-IP lookup of the client's IP), returns the full geo-IP field set — continent_code, continent_name, country_code2, country_code3, country_name_official, is_eu, state_code, district, zipcode — in addition to the basic fields, but never location_string. elevation can be an empty string when elevation data is unavailable for the resolved location.",
@@ -790,6 +804,14 @@
790
804
  }
791
805
  }
792
806
  }
807
+ },
808
+ "headers": {
809
+ "X-AF-Credits-Cost": {
810
+ "description": "Specifies the number of credits consumed by the current request.",
811
+ "schema": {
812
+ "type": "integer"
813
+ }
814
+ }
793
815
  }
794
816
  },
795
817
  "security": [
@@ -85,10 +85,15 @@
85
85
  }
86
86
  }
87
87
  }
88
+ },
89
+ "headers": {
90
+ "X-AF-Credits-Cost": {
91
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
92
+ }
88
93
  }
89
94
  },
90
95
  "400": {
91
- "description": "Bad Request \u2014 Missing parameters, a file that is not a CSV, or data larger than 10 MB.",
96
+ "description": "Bad Request Missing parameters, a file that is not a CSV, or data larger than 10 MB.",
92
97
  "content": {
93
98
  "application/json": {
94
99
  "schema": {
@@ -107,10 +112,15 @@
107
112
  }
108
113
  }
109
114
  }
115
+ },
116
+ "headers": {
117
+ "X-AF-Credits-Cost": {
118
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
119
+ }
110
120
  }
111
121
  },
112
122
  "401": {
113
- "description": "Unauthorized \u2014 The API key is missing or invalid.",
123
+ "description": "Unauthorized The API key is missing or invalid.",
114
124
  "content": {
115
125
  "application/json": {
116
126
  "schema": {
@@ -129,66 +139,101 @@
129
139
  }
130
140
  }
131
141
  }
142
+ },
143
+ "headers": {
144
+ "X-AF-Credits-Cost": {
145
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
146
+ }
132
147
  }
133
148
  },
134
149
  "403": {
135
- "description": "Forbidden \u2014 The account does not have access to this template.",
150
+ "description": "Forbidden The account does not have access to this template.",
136
151
  "content": {
137
152
  "application/json": {
138
153
  "schema": {
139
154
  "$ref": "#/components/schemas/ErrorResponse"
140
155
  }
141
156
  }
157
+ },
158
+ "headers": {
159
+ "X-AF-Credits-Cost": {
160
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
161
+ }
142
162
  }
143
163
  },
144
164
  "404": {
145
- "description": "Not Found \u2014 No template matches the template_id, or the requested version does not exist.",
165
+ "description": "Not Found No template matches the template_id, or the requested version does not exist.",
146
166
  "content": {
147
167
  "application/json": {
148
168
  "schema": {
149
169
  "$ref": "#/components/schemas/ErrorResponse"
150
170
  }
151
171
  }
172
+ },
173
+ "headers": {
174
+ "X-AF-Credits-Cost": {
175
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
176
+ }
152
177
  }
153
178
  },
154
179
  "415": {
155
- "description": "Unsupported Media Type \u2014 The request Content-Type is not supported for this endpoint.",
180
+ "description": "Unsupported Media Type The request Content-Type is not supported for this endpoint.",
156
181
  "content": {
157
182
  "application/json": {
158
183
  "schema": {
159
184
  "$ref": "#/components/schemas/ErrorResponse"
160
185
  }
161
186
  }
187
+ },
188
+ "headers": {
189
+ "X-AF-Credits-Cost": {
190
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
191
+ }
162
192
  }
163
193
  },
164
194
  "422": {
165
- "description": "Unprocessable Entity \u2014 The request contains invalid or missing data.",
195
+ "description": "Unprocessable Entity The request contains invalid or missing data.",
166
196
  "content": {
167
197
  "application/json": {
168
198
  "schema": {
169
199
  "$ref": "#/components/schemas/ErrorResponse"
170
200
  }
171
201
  }
202
+ },
203
+ "headers": {
204
+ "X-AF-Credits-Cost": {
205
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
206
+ }
172
207
  }
173
208
  },
174
209
  "500": {
175
- "description": "Internal Server Error \u2014 An unexpected error occurred, or the PDF could not be generated.",
210
+ "description": "Internal Server Error An unexpected error occurred, or the PDF could not be generated.",
176
211
  "content": {
177
212
  "application/json": {
178
213
  "schema": {
179
214
  "$ref": "#/components/schemas/ErrorResponse"
180
215
  }
181
216
  }
217
+ },
218
+ "headers": {
219
+ "X-AF-Credits-Cost": {
220
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
221
+ }
182
222
  }
183
223
  },
184
224
  "504": {
185
- "description": "Gateway Timeout \u2014 The request went past the 100 second processing limit.",
225
+ "description": "Gateway Timeout The request went past the 100 second processing limit.",
186
226
  "content": {
187
227
  "application/json": {
188
228
  "schema": {
189
229
  "$ref": "#/components/schemas/ErrorResponse"
190
230
  }
191
231
  }
232
+ },
233
+ "headers": {
234
+ "X-AF-Credits-Cost": {
235
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
236
+ }
192
237
  }
193
238
  }
194
239
  },
@@ -277,6 +322,14 @@
277
322
  }
278
323
  }
279
324
  }
325
+ },
326
+ "headers": {
327
+ "X-AF-Credits-Cost": {
328
+ "description": "Specifies the number of credits consumed by the current request.",
329
+ "schema": {
330
+ "type": "integer"
331
+ }
332
+ }
280
333
  }
281
334
  },
282
335
  "security": [